Class OGLProgramShader

java.lang.Object
com.blackrook.gloop.opengl.OGLObject
com.blackrook.gloop.opengl.gl2.OGLProgramShader

public class OGLProgramShader extends OGLObject
A single GLSL shader in a program pipeline.
Author:
Matthew Tropiano
  • Field Details

    • UNDELETED_IDS

      protected static int[] UNDELETED_IDS
      List of OpenGL object ids that were not deleted properly.
    • UNDELETED_LENGTH

      protected static int UNDELETED_LENGTH
      Amount of OpenGL object ids that were not deleted properly.
    • type

      protected ShaderType type
      Shader type.
    • log

      protected String log
      Compile log.
  • Method Details

    • free

      protected void free()
      Description copied from class: OGLObject
      Destroys this object (deallocates it on OpenAL). This is called by destroy().
      Specified by:
      free in class OGLObject
    • getType

      public ShaderType getType()
      Returns:
      the shader program type.
    • getLog

      public String getLog()
      Returns:
      the log from this program's compiling.
    • destroyUndeleted

      public static int destroyUndeleted()
      Destroys undeleted programs abandoned from destroyed Java objects.

      This is automatically called by OGLSystem after every frame and should NEVER be called manually!

      Returns:
      the amount of objects deleted.
    • finalize

      public void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable