Class GLSLSource


  • public final class GLSLSource
    extends ShaderSource
    The source code of shaders in GLSL
    • Constructor Summary

      Constructors 
      Constructor Description
      GLSLSource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GLSLSource

        public GLSLSource()
    • Method Detail

      • getComputeShader

        public java.lang.String getComputeShader()
        Gets the source code of the compute shader.
      • setComputeShader

        public void setComputeShader​(java.lang.String value)
        Sets the source code of the compute shader.
        Parameters:
        value - New value
      • getGeometryShader

        public java.lang.String getGeometryShader()
        Gets the source code of the geometry shader.
      • setGeometryShader

        public void setGeometryShader​(java.lang.String value)
        Sets the source code of the geometry shader.
        Parameters:
        value - New value
      • getVertexShader

        public java.lang.String getVertexShader()
        Gets the source code of the vertex shader
      • setVertexShader

        public void setVertexShader​(java.lang.String value)
        Sets the source code of the vertex shader
        Parameters:
        value - New value
      • getFragmentShader

        public java.lang.String getFragmentShader()
        Gets the source code of the fragment shader.
      • setFragmentShader

        public void setFragmentShader​(java.lang.String value)
        Sets the source code of the fragment shader.
        Parameters:
        value - New value
      • defineInclude

        public void defineInclude​(java.lang.String fileName,
                                  java.lang.String content)
        Define virtual file for #include in GLSL source code
        Parameters:
        fileName - File name of the virtual file
        content -