Package heronarts.glx
Class GLXWindow
java.lang.Object
heronarts.glx.GLXWindow
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintfloatfloatfloatfloatfloatfloatfloatvoidmain()voidsetMouseCursor(GLXWindow.MouseCursor mouseCursor) protected voidsetShouldClose(boolean shouldClose) protected voidsetWindowSize(int windowWidth, int windowHeight)
-
Field Details
-
flags
-
preferences
-
-
Constructor Details
-
GLXWindow
-
-
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
-
main
public void main()
-