Class Compilation
java.lang.Object
dev.engine_room.flywheel.backend.compile.core.Compilation
Builder style class for compiling shaders.
Keeps track of the source files and components used to compile a shader, and interprets/pretty prints any errors that occur.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendComponent(SourceComponent component) compile(ShaderType shaderType, String name) static booleancompiledSuccessfully(int handle) voidvoidvoidenableExtension(String ext) voidrequireExtension(String ext) voidversion(GlslVersion version)
-
Field Details
-
DUMP_SHADER_SOURCE
public static final boolean DUMP_SHADER_SOURCE
-
-
Constructor Details
-
Compilation
public Compilation()
-
-
Method Details
-
compile
-
version
-
enableExtension
-
requireExtension
-
define
-
define
-
appendComponent
-
compiledSuccessfully
public static boolean compiledSuccessfully(int handle)
-