abstract class GlDrawable : GlViewportAware
GlDrawable() |
abstract 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. |
var viewportHeight: Int |
|
var viewportWidth: Int |
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 |
fun ensureViewportSize(): Unit |
|
open fun onViewportSizeChanged(): Unit |
|
fun setViewportSize(width: Int, height: Int): Unit |
abstract class Gl2dDrawable : GlDrawable |
|
abstract class Gl3dDrawable : GlDrawable |