Package playn.scene

Class SceneGame

java.lang.Object
playn.core.Game
playn.scene.SceneGame

public abstract class SceneGame extends Game
A simple class for games which wish to use a single scene graph.
  • Field Details

    • defaultBatch

      public final QuadBatch defaultBatch
    • viewSurf

      public final Surface viewSurf
    • rootLayer

      public final RootLayer rootLayer
  • Constructor Details

    • SceneGame

      public SceneGame(Platform plat, int updateRate)
  • Method Details

    • setClearColor

      public void setClearColor(float red, float green, float blue, float alpha)
      Configures the color to which the frame buffer is cleared prior to painting the scene graph.
    • setClearColor

      public void setClearColor(int argb)
      Configures the color to which the frame buffer is cleared prior to painting the scene graph.