BaseProgramExecutor

abstract class BaseProgramExecutor<T>(program: Program) : ProgramExecutor<T>

Base for generated ProgramExecutor implementations.

Constructors

BaseProgramExecutor
Link copied to clipboard
common
fun BaseProgramExecutor(program: Program)

Functions

applyParams
Link copied to clipboard
common
abstract fun applyParams(gl: GlimpseAdapter, shaderParams: T)
Applies shader parameters from an instance of ShaderParams-annotated type T.
dispose
Link copied to clipboard
common
open override fun dispose()
Clears cached locations of variables.
drawMesh
Link copied to clipboard
common
abstract fun drawMesh(gl: GlimpseAdapter, mesh: Mesh)
Draws a given mesh using the program contained in the executor.
useProgram
Link copied to clipboard
common
open override fun useProgram(gl: GlimpseAdapter)
Tells the given OpenGL adapter to use the program contained in the executor.