Interface GameStateProvider

All Known Implementing Classes:
NormalDebugStateProvider

public interface GameStateProvider
An object that provides a view of the current game state for shader compilation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Alter the constants for shader compilation.
    boolean
    Get the status of this game state provider.
  • Method Details

    • isTrue

      boolean isTrue()
      Get the status of this game state provider.
      Returns:
      Returning true will cause #alterConstants to be called before compiling a shader.
    • alterConstants

      void alterConstants(ShaderConstants constants)
      Alter the constants for shader compilation.
      Parameters:
      constants - The shader constants.