library / com.otaliastudios.opengl.draw / Gl3dDrawable

Gl3dDrawable

abstract class Gl3dDrawable : GlDrawable

Constructors

<init>

Gl3dDrawable()

Properties

coordsPerVertex

val coordsPerVertex: Int

Returns the number of position coordinates per vertex. This will be 2 or 3.

Inherited Properties

modelMatrix

val modelMatrix: FloatArray

The model matrix for this object. Defaults to the identity matrix, but can be accessed and modified.

vertexArray

abstract var vertexArray: FloatBuffer

Returns the array of vertices. To avoid allocations, this returns internal state. The caller must not modify it.

vertexArrayVersion

var vertexArrayVersion: Int

vertexCount

open val vertexCount: Int

Returns the number of vertices stored in the vertex array.

vertexStride

open val vertexStride: Int

Returns the width, in bytes, of the data for each vertex.

Inherited Functions

draw

abstract fun draw(): Unit

Draws this drawable. This function should not be called directly. Instead, this drawable should be passed to some GlProgram.

notifyVertexArrayChange

fun notifyVertexArrayChange(): Unit