library / com.otaliastudios.opengl.draw / Gl2dMesh

Gl2dMesh

open class Gl2dMesh : Gl2dDrawable

Constructors

<init>

Gl2dMesh()

Properties

vertexArray

open var vertexArray: FloatBuffer

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

Inherited Properties

coordsPerVertex

val coordsPerVertex: Int

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

Functions

draw

open fun draw(): Unit

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

setPoints

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

Inherited Functions

getBounds

fun getBounds(rect: RectF): Unit