Class: Shader
This page documents the methods and fields available in the Shader class.
Members
| Signature | Description |
|---|---|
Builder() | Performs the Builder operation. |
Builder(Engine) | Performs the Builder operation using the provided parameters (engine). |
Builder(String, String) | Performs the Builder operation using the provided parameters (vertexCode, fragmentCode). |
activateGeometryShader(boolean) | Performs the activateGeometryShader operation using the provided parameters (value). |
compileFragment() | Performs the compileFragment operation. |
compileGeometry() | Performs the compileGeometry operation. |
compileVertex() | Performs the compileVertex operation. |
create() | Creates a new Shader. |
createProgram() | Creates a new program. |
getFragmentCode() | Returns the current fragment code. |
getGeometryCode() | Returns the current geometry code. |
getVertexCode() | Returns the current vertex code. |
isGeometryShaderActive() | Returns whether geometry shader active is true. |
onError(String) | Performs the onError operation using the provided parameters (message). |
onError(String) | Performs the onError operation using the provided parameters (message). |
onError(String) | Performs the onError operation using the provided parameters (message). |
onError(String, String) | Performs the onError operation using the provided parameters (programError, shaderError). |
setFragmentCode(FragmentGLSLFile) | Sets or updates the fragment code. |
setFragmentCode(FragmentShader) | Sets or updates the fragment code. |
setFragmentCode(String) | Sets or updates the fragment code. |
setGeometryCode(GeometryGLSLFile) | Sets or updates the geometry code. |
setGeometryCode(GeometryShader) | Sets or updates the geometry code. |
setGeometryCode(String) | Sets or updates the geometry code. |
setVertexCode(String) | Sets or updates the vertex code. |
setVertexCode(VertexGLSLFile) | Sets or updates the vertex code. |
setVertexCode(VertexShader) | Sets or updates the vertex code. |
tryCompileFragment(CompileErrorListener) | Performs the tryCompileFragment operation using the provided parameters (compileErrorListener). |
tryCompileGeometry(CompileErrorListener) | Performs the tryCompileGeometry operation using the provided parameters (compileErrorListener). |
tryCompileVertex(CompileErrorListener) | Performs the tryCompileVertex operation using the provided parameters (compileErrorListener). |
tryCreate(ShaderErrorListener) | Performs the tryCreate operation using the provided parameters (shaderErrorListener). |