Class AbstractSimpleOverlay

  • Direct Known Subclasses:
    SimpleMenuOverlay, SimpleMessageOverlay

    public abstract class AbstractSimpleOverlay
    extends java.lang.Object
    Renderer for simple overlays. TODO: make color configurable?
    Erich Schubert
    • Field Summary

      Modifier and Type Field Description
      (package private) int height
      Screen ratio.
      (package private) int width
      Screen ratio.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void render​( gl)
      Main render method
      (package private) abstract void renderContents​( gl)
      Render the actual overlay contents.
      void setSize​(int width, int height)
      Set screen ratio.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • width

        int width
        Screen ratio.
      • height

        int height
        Screen ratio.
    • Constructor Detail

      • AbstractSimpleOverlay

        public AbstractSimpleOverlay()
    • Method Detail

      • render

        public final void render​( gl)
        Main render method
        gl - GL context
      • renderContents

        abstract void renderContents​( gl)
        Render the actual overlay contents.
        gl - GL context
      • setSize

        public void setSize​(int width,
                            int height)
        Set screen ratio.
        width - Screen width
        height - Screen height