Class TessellationShaderProgram

java.lang.Object
gaiasky.util.gdx.shader.ExtShaderProgram
gaiasky.util.gdx.shader.TessellationShaderProgram
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class TessellationShaderProgram extends ExtShaderProgram
  • Field Details

    • prependTessControlCode

      public static String prependTessControlCode
      Code that is always added to the tessellation shaders, typically used to inject a #version line. Note that this is added as-is, you should include a newline (`\n`) if needed.
    • prependTessEvaluationCode

      public static String prependTessEvaluationCode
  • Constructor Details

    • TessellationShaderProgram

      public TessellationShaderProgram(String vertexShader, String tessellationControlShader, String tessellationEvaluationShader, String fragmentShader)
  • Method Details

    • invalidateAllShaderPrograms

      public static void invalidateAllShaderPrograms(com.badlogic.gdx.Application app)
      Invalidates all shaders so the next time they are used new handles are generated
    • clearAllShaderPrograms

      public static void clearAllShaderPrograms(com.badlogic.gdx.Application app)
    • getManagedStatus

      public static String getManagedStatus()
    • getNumManagedShaderPrograms

      public static int getNumManagedShaderPrograms()
      Returns:
      the number of managed shader programs currently loaded
    • dispose

      public void dispose()
      Description copied from class: ExtShaderProgram
      Disposes all resources associated with this shader. Must be called when the shader is no longer used.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class ExtShaderProgram