VertexBufferObject

class VertexBufferObject(val gl: GL, val isStatic: Boolean, val attributes: VertexAttributes, var buffer: FloatBuffer) : Disposable

Author

Colton Daily

Constructors

Link copied to clipboard
fun VertexBufferObject(gl: GL, isStatic: Boolean, numVertices: Int, attributes: VertexAttributes)
Link copied to clipboard
fun VertexBufferObject(gl: GL, isStatic: Boolean, attributes: VertexAttributes, buffer: FloatBuffer)

Functions

Link copied to clipboard
fun bind(shader: ShaderProgram<*, *>? = null, locations: IntArray? = null)
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
fun setVertices(vertices: FloatArray, srcOffset: Int = 0, count: Int = vertices.size)
Link copied to clipboard
fun unbind(shader: ShaderProgram<*, *>? = null, locations: IntArray? = null)
Link copied to clipboard
fun updateVertices(destOffset: Int, vertices: FloatArray, srcOffset: Int = 0, count: Int = vertices.size)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val gl: GL
Link copied to clipboard
var grow: Boolean = false
Link copied to clipboard
var growFactor: Float = 2.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard