Class BaseIntShaderProvider

All Implemented Interfaces:
IObserver, IntShaderProvider
Direct Known Subclasses:
DefaultIntShaderProvider, DepthIntShaderProvider

public abstract class BaseIntShaderProvider extends Object implements IntShaderProvider, IObserver
  • Field Details

    • shaders

      protected com.badlogic.gdx.utils.Array<IntShader> shaders
  • Constructor Details

    • BaseIntShaderProvider

      public BaseIntShaderProvider()
  • Method Details

    • getShader

      public IntShader getShader(IntRenderable renderable)
      Description copied from interface: IntShaderProvider
      Returns a IntShader for the given IntRenderable. The RenderInstance may already contain a IntShader, in which case the provider may decide to return that.
      Specified by:
      getShader in interface IntShaderProvider
      renderable - the Renderable
      the IntShader to be used for the RenderInstance
    • createShader

      protected abstract IntShader createShader(IntRenderable renderable)
    • dispose

      public void dispose()
      Description copied from interface: IntShaderProvider
      Disposes all resources created by the provider
      Specified by:
      dispose in interface IntShaderProvider
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.