abstract class Gl2dDrawable : GlDrawable
Gl2dDrawable() |
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. |
fun getBounds(rect: RectF): Unit |
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 |
open class Gl2dMesh : Gl2dDrawable |
|
open class GlPolygon : Gl2dDrawable |
|
open class GlRect : Gl2dDrawable |
|
open class GlRoundRect : Gl2dDrawable |