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