library / com.otaliastudios.opengl.draw / GlRect

GlRect

open class GlRect : Gl2dDrawable

Constructors

<init>

GlRect()

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

setRect

fun setRect(rect: <ERROR CLASS>): Unit
fun setRect(left: Float, top: Float, right: Float, bottom: Float): Unit

setVertexArray

open fun setVertexArray(array: FloatArray): Unit
open fun setVertexArray(rect: <ERROR CLASS>): Unit