Exemple #1
0
  /** Setup GL to start rendering the GUI. It assumes default GL state. */
  public boolean startRendering() {
    if (width <= 0 || height <= 0) {
      return false;
    }

    prepareForRendering();
    setupGLState();
    RenderScale.doscale();
    return true;
  }
Exemple #2
0
 /** Resume rendering after a call to {@link #pauseRendering()}. */
 public void resumeRendering() {
   hasScissor = false;
   setupGLState();
   RenderScale.doscale();
   setClipRect();
 }
Exemple #3
0
 /**
  * Call to revert the GL state to the state before calling {@link #startRendering()}.
  *
  * @see #resumeRendering()
  */
 public void pauseRendering() {
   RenderScale.descale();
   revertGLState();
 }
Exemple #4
0
 public void endRendering() {
   renderSWCursor();
   RenderScale.descale();
   revertGLState();
 }