public final class GLSLSource extends ShaderSource
Constructor and Description |
---|
GLSLSource() |
Modifier and Type | Method and Description |
---|---|
void |
defineInclude(java.lang.String fileName,
java.lang.String content)
Define virtual file for #include in GLSL source code
|
java.lang.String |
getComputeShader()
Gets the source code of the compute shader.
|
java.lang.String |
getFragmentShader()
Gets the source code of the fragment shader.
|
java.lang.String |
getGeometryShader()
Gets the source code of the geometry shader.
|
java.lang.String |
getVertexShader()
Gets the source code of the vertex shader
|
void |
setComputeShader(java.lang.String value)
Sets the source code of the compute shader.
|
void |
setFragmentShader(java.lang.String value)
Sets the source code of the fragment shader.
|
void |
setGeometryShader(java.lang.String value)
Sets the source code of the geometry shader.
|
void |
setVertexShader(java.lang.String value)
Sets the source code of the vertex shader
|
public java.lang.String getComputeShader()
public void setComputeShader(java.lang.String value)
value
- New valuepublic java.lang.String getGeometryShader()
public void setGeometryShader(java.lang.String value)
value
- New valuepublic java.lang.String getVertexShader()
public void setVertexShader(java.lang.String value)
value
- New valuepublic java.lang.String getFragmentShader()
public void setFragmentShader(java.lang.String value)
value
- New valuepublic void defineInclude(java.lang.String fileName, java.lang.String content)
fileName
- File name of the virtual filecontent
-