library / com.otaliastudios.opengl.draw / Gl2dMesh

Gl2dMesh

open class Gl2dMesh : Gl2dDrawable

Constructors

<init>

Gl2dMesh()

Properties

vertexArray

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

open var vertexArray: FloatBuffer

Functions

draw

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

open fun draw(): Unit

release

open fun release(): Unit

setPoints

fun setPoints(points: List<<ERROR CLASS>>): Unit
fun setPoints(x: List<Float>, y: List<Float>): Unit