Class Shader.ShaderSource

All Implemented Interfaces:
Enclosing class:

public static class Shader.ShaderSource extends NativeObject
Shader source describes a shader object in OpenGL. Each shader source is assigned a certain pipeline which it controls (described by its type).
  • Constructor Details

  • Method Details

    • setName

      public void setName(String name)
    • getName

      public String getName()
    • getType

      public Shader.ShaderType getType()
    • getLanguage

      public String getLanguage()
    • setLanguage

      public void setLanguage(String language)
    • setSource

      public void setSource(String source)
    • setDefines

      public void setDefines(String defines)
    • getSource

      public String getSource()
    • getDefines

      public String getDefines()
    • getUniqueId

      public long getUniqueId()
      Description copied from class: NativeObject
      Returns a unique ID for this NativeObject. No other NativeObject shall have the same ID.
      Specified by:
      getUniqueId in class NativeObject
      unique ID for this NativeObject.
    • toString

      public String toString()
      toString in class NativeObject
    • resetObject

      public void resetObject()
      Description copied from class: NativeObject
      Called when the GL context is restarted to reset all IDs. Prevents "white textures" on display restart.
      Specified by:
      resetObject in class NativeObject
    • deleteObject

      public void deleteObject(Object rendererObject)
      Description copied from class: NativeObject
      Deletes the GL object from the GPU when it is no longer used. Called automatically by the GL object manager.
      Specified by:
      deleteObject in class NativeObject
      rendererObject - The renderer to be used to delete the object
    • createDestructableClone

      public NativeObject createDestructableClone()
      Description copied from class: NativeObject
      Creates a shallow clone of this GL Object. The deleteObject method should be functional for this object.
      Specified by:
      createDestructableClone in class NativeObject
      a new instance