RenderProgram class

represents program (Fragment + Vertex Shader) running on the GPU with an API to invoke it.

Inheritance

Constructors

RenderProgram(String name, ChronosGL _cgl, ShaderObject _shaderObjectV, ShaderObject _shaderObjectF)

Properties

debug bool
getter/setter pairinherited
enabled bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shaderObjectF ShaderObject
no setter
shaderObjectV ShaderObject
no setter

Methods

Draw(MeshData md, List<UniformGroup> uniforms, [List<DrawStats>? stats]) → void
getContext() ChronosGL
GetTransformBindingIndex(String canonical) int
HasCompatibleAttributesTo(RenderProgram other) bool
If you want to re-use meshes across programs you can use this predicate to assert that two programs are compatible.
HasDownwardCompatibleAttributesTo(RenderProgram other) bool
If you want to re-use meshes across programs you can use this predicate to assert that any mesh for other will work for this.
MakeMeshData(String name, int drawMode) MeshData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
UninitializedInputs() List<String>

Operators

operator ==(Object other) bool
The equality operator.
inherited