ShaderFactory class abstract

Builds GLSL programs with optional preprocessor defines and attribute bindings.

This factory provides methods to compile and link GLSL shader programs, allowing for the injection of preprocessor defines and explicit attribute bindings.

Constructors

ShaderFactory.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

compile(RenderingContext gl, {required String vertexSource, required String fragmentSource, Map<String, String> defines = const {}, Map<String, int> attribBindings = const {}}) → Program
Compiles and links a program. Throws on compile/link errors.