Class ShaderLoader
java.lang.Object
lol.trq.helios.shader.ShaderLoader
Compiles and links programs from preprocessed sources, and reloads them.
Compile and link failures throw a ShaderException whose message carries the driver log with
file:line locations. reloadAll() rebuilds every program from its sources; a program that fails to
rebuild keeps its last good version.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShaderLoader
Creates a loader.- Parameters:
gl- the backendresolver- loads source files
-
-
Method Details
-
load
Loads a program.- Parameters:
vertex- the vertex shader entry filefragment- the fragment shader entry filedefines- defines injected into both stages- Returns:
- the linked program
- Throws:
ShaderException- on a preprocess, compile or link failure
-
reloadAll
-