abstract class Gl3dDrawable : GlDrawable
Gl3dDrawable() |
val coordsPerVertex: Int
Returns the number of position coordinates per vertex. This will be 2 or 3. |
val modelMatrix: FloatArray
The model matrix for this object. Defaults to the identity matrix, but can be accessed and modified. |
|
abstract var vertexArray: FloatBuffer
Returns the array of vertices. To avoid allocations, this returns internal state. The caller must not modify it. |
|
var vertexArrayVersion: Int |
|
open val vertexCount: Int
Returns the number of vertices stored in the vertex array. |
|
open val vertexStride: Int
Returns the width, in bytes, of the data for each vertex. |
abstract fun draw(): Unit
Draws this drawable. This function should not be called directly. Instead, this drawable should be passed to some GlProgram. |
|
fun notifyVertexArrayChange(): Unit |