GlTextureProgram

open class GlTextureProgram : GlProgram

Base implementation for a GlProgram that draws textures.

Constructors

GlTextureProgram
Link copied to clipboard
common
fun GlTextureProgram(vertexShader: String = SIMPLE_VERTEX_SHADER, fragmentShader: String = SIMPLE_FRAGMENT_SHADER, vertexPositionName: String = "aPosition", vertexMvpMatrixName: String = "uMVPMatrix", textureCoordsName: String? = "aTextureCoord", textureTransformName: String? = "uTexMatrix")
GlTextureProgram
Link copied to clipboard
common
fun GlTextureProgram(handle: Int, vertexPositionName: String = "aPosition", vertexMvpMatrixName: String = "uMVPMatrix", textureCoordsName: String? = "aTextureCoord", textureTransformName: String? = "uTexMatrix")

Types

Companion
Link copied to clipboard
common
object Companion

Functions

bind
Link copied to clipboard
common
open override fun bind()
draw
Link copied to clipboard
common
fun draw(drawable: GlDrawable, modelViewProjectionMatrix: FloatArray = drawable.modelMatrix)
onDraw
Link copied to clipboard
common
open fun onDraw(drawable: GlDrawable)
onPostDraw
Link copied to clipboard
common
open override fun onPostDraw(drawable: GlDrawable)
onPreDraw
Link copied to clipboard
common
open override fun onPreDraw(drawable: GlDrawable, modelViewProjectionMatrix: FloatArray)
release
Link copied to clipboard
common
open override fun release()
unbind
Link copied to clipboard
common
open override fun unbind()

Properties

handle
Link copied to clipboard
common
val handle: Int
texture
Link copied to clipboard
common
var texture: GlTexture? = null
If not null, GlTextureProgram will care about the texture lifecycle: binding, unbinding and destroying.
textureTransform
Link copied to clipboard
common
var textureTransform: FloatArray