commonMain.org.openrndr.draw.VertexBufferShadow.kt Maven / Gradle / Ivy
package org.openrndr.draw
interface VertexBufferShadow {
val vertexBuffer: VertexBuffer
fun upload(offsetInBytes: Int = 0, sizeInBytes: Int = vertexBuffer.vertexCount * vertexBuffer.vertexFormat.size)
fun uploadElements(elementOffset: Int = 0, elementCount: Int = vertexBuffer.vertexCount) {
upload(elementOffset * vertexBuffer.vertexFormat.size, elementCount * vertexBuffer.vertexFormat.size)
}
fun download()
fun destroy()
fun writer(): BufferWriter
}