GlRect

open class GlRect : Gl2dDrawable

Functions

draw
Link copied to clipboard
common
open override fun draw()
Draws this drawable.
getBounds
Link copied to clipboard
common
fun getBounds(rect: RectF)
release
Link copied to clipboard
common
open fun release()
setRect
Link copied to clipboard
common
fun setRect(rect: RectF)
fun setRect(left: Float, top: Float, right: Float, bottom: Float)
setVertexArray
Link copied to clipboard
common
open fun setVertexArray(rect: RectF)
open fun setVertexArray(array: FloatArray)
setViewportSize
Link copied to clipboard
common
fun setViewportSize(width: Int, height: Int)

Properties

coordsPerVertex
Link copied to clipboard
common
override val coordsPerVertex: Int = 2
Returns the number of position coordinates per vertex.
modelMatrix
Link copied to clipboard
common
val modelMatrix: FloatArray
The model matrix for this object.
vertexArray
Link copied to clipboard
common
open override var vertexArray: FloatBuffer
Returns the array of vertices.
vertexArrayVersion
Link copied to clipboard
common
var vertexArrayVersion: Int = 0
vertexCount
Link copied to clipboard
common
open val vertexCount: Int
Returns the number of vertices stored in the vertex array.
vertexStride
Link copied to clipboard
common
open val vertexStride: Int
Returns the width, in bytes, of the data for each vertex.
viewportHeight
Link copied to clipboard
common
var viewportHeight: Int
viewportWidth
Link copied to clipboard
common
var viewportWidth: Int