GlScene

open class GlScene : GlViewportAware

Scenes can be to draw GlDrawables through GlPrograms.

The advantage is that they contain information about the projectionMatrix and the viewMatrix, both of which can be accessed and modified and held by this single object.

The GlScene object will combine these two with the drawables GlDrawable.modelMatrix and pass the resulting model-view-projection matrix to the program.

Constructors

GlScene
Link copied to clipboard
common
fun GlScene()

Functions

draw
Link copied to clipboard
common
fun draw(program: GlProgram, drawable: GlDrawable)
setViewportSize
Link copied to clipboard
common
fun setViewportSize(width: Int, height: Int)

Properties

projectionMatrix
Link copied to clipboard
common
val projectionMatrix: FloatArray
viewMatrix
Link copied to clipboard
common
val viewMatrix: FloatArray
viewportHeight
Link copied to clipboard
common
var viewportHeight: Int
viewportWidth
Link copied to clipboard
common
var viewportWidth: Int