/** 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; }
/** Resume rendering after a call to {@link #pauseRendering()}. */ public void resumeRendering() { hasScissor = false; setupGLState(); RenderScale.doscale(); setClipRect(); }
/** * Call to revert the GL state to the state before calling {@link #startRendering()}. * * @see #resumeRendering() */ public void pauseRendering() { RenderScale.descale(); revertGLState(); }
public void endRendering() { renderSWCursor(); RenderScale.descale(); revertGLState(); }