BaseProgramExecutor

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

Base for generated ProgramExecutor implementations.

Constructors

Link copied to clipboard
fun BaseProgramExecutor(program: Program)

Functions

Link copied to clipboard
abstract fun applyParams(gl: GlimpseAdapter, shaderParams: T)

Applies shader parameters from an instance of ShaderParams-annotated type T.

Link copied to clipboard
open override fun dispose()

Clears cached locations of variables.

open override fun dispose(gl: GlimpseAdapter)

Clears cached locations of variables and disposes the program.

Link copied to clipboard
abstract fun drawMesh(gl: GlimpseAdapter, mesh: Mesh)

Draws a given mesh using the program contained in the executor.

Link copied to clipboard
open override fun useProgram(gl: GlimpseAdapter)

Tells the given OpenGL adapter to use the program contained in the executor.

Properties

Link copied to clipboard
open override val isDisposed: Boolean

true if this object has been disposed.