Package heronarts.glx

Class GLXWindow

java.lang.Object
heronarts.glx.GLXWindow

public class GLXWindow extends Object
The GLXWindow class takes care of running a windowed application using GLFW. This *must* to be run on the main thread (on Mac the JVM will have to be started with -XstartOnFirstThread to ensure this). This class therefore *owns* the main thread, and its main() method is in charge of the overall program lifecycle.
  • Field Details

  • Constructor Details

    • GLXWindow

      public GLXWindow(GLX.Flags flags)
  • Method Details

    • getUIWidth

      public float getUIWidth()
    • getUIHeight

      public float getUIHeight()
    • getFrameBufferWidth

      public int getFrameBufferWidth()
    • getFrameBufferHeight

      public int getFrameBufferHeight()
    • getUIContentScaleX

      public float getUIContentScaleX()
    • getUIContentScaleY

      public float getUIContentScaleY()
    • getUIZoom

      public float getUIZoom()
    • getSystemContentScaleX

      public float getSystemContentScaleX()
    • getSystemContentScaleY

      public float getSystemContentScaleY()
    • setShouldClose

      protected void setShouldClose(boolean shouldClose)
    • setWindowSize

      protected void setWindowSize(int windowWidth, int windowHeight)
    • setMouseCursor

      public void setMouseCursor(GLXWindow.MouseCursor mouseCursor)
    • main

      public void main()