Interface ShaderBuilder

All Known Subinterfaces:
FPFragmentBuilder, VertexGeomBuilder, XPFragmentBuilder
All Known Implementing Classes:
FragmentShaderBuilder, ShaderBuilderBase, VertexShaderBuilder

public interface ShaderBuilder
Interface for all shaders builders.
  • Method Details

    • codeAppend

      void codeAppend(String str)
      Writes the specified string to one of the shaders.
    • codeAppendf

      void codeAppendf(String format, Object... args)
      Writes a formatted string to one of the shaders using the specified format string and arguments.
      See Also:
    • codePrependf

      void codePrependf(String format, Object... args)
      Similar to codeAppendf(String, Object...), but writes at the beginning.
    • getMangledName

      String getMangledName(String baseName)
      Generates a mangled name for a helper function in the fragment shader. Will give consistent results if called more than once.