ProgramExecutor

interface ProgramExecutor<T> : GlimpseDisposable

An interface implemented by program executors.

Program executors are not intended to be implemented manually. Instead, they should be generated from classes annotated with ShaderParams.

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
abstract fun dispose()

Disposes the program executor.

abstract fun dispose(gl: GlimpseAdapter)

Disposes this object and its resources using given OpenGL adapter.

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
abstract fun useProgram(gl: GlimpseAdapter)

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

Properties

Link copied to clipboard
abstract val isDisposed: Boolean

true if this object has been disposed.

Inheritors

Link copied to clipboard