AbstractConstructor for the GfxApp class
Boolean value to enable/disable the stencil buffer
Coordinates asynchronous loading of external assets.
The camera used by the GfxApp instance.
The renderer used by the GfxApp instance.
A boolean indicating whether the GfxApp should continue to run in the background.
The scene used by the GfxApp instance.
AbstractcreateAbstract method to be implemented by any subclass of GfxApp. Creates the scene for the application.
Converts mouse coordinates to normalized device coordinates
The x coordinate of the mouse
The y coordinate of the mouse
The normalized device coordinates
Returns true if the application is paused
True if the application is paused, false otherwise
Late update method to be called just before drawing the scene. Optional method - subclasses do not need to override it.
Time elapsed since the last update call (in seconds)
Method called after all assets are loaded before entering main loop. Optional method - subclasses do not need to override it.
Handles focus events to pause and resume the application
The FocusEvent
Handles focus events to pause and resume the application
The FocusEvent
Method called when a key is pressed. Subclasses can override this method to handle the event.
The KeyboardEvent object associated with the key press
Method called when a key is released. Subclasses can override this method to handle the event.
The KeyboardEvent object associated with the key release
Method called when the mouse is clicked. Subclasses can override this method to handle the event.
The MouseEvent object associated with the mouse click
Method called when the mouse is moved. Subclasses can override this method to handle the event.
The MouseEvent object associated with the mouse movement
Method called when the mouse is released. Subclasses can override this method to handle the event.
The MouseEvent object associated with the mouse release
Method called when the mouse wheel is moved. Subclasses can override this method to handle the event.
The WheelEvent object associated with the mouse wheel movement
Creates a simulated mouse up event for touch input
Creates a simulated mouse move event for touch input
Creates a simulated mouse down event for touch input
Pauses the application
Resizes the viewport of the GfxApp
Resumes the application
Creates the scene and starts the program
AbstractupdateAbstract method to be implemented by any subclass of GfxApp. Updates the application's state with the given deltaTime.
Time elapsed since the last update call (in seconds)
StaticgetGets the singleton instance of the GfxApp class.
The singleton instance of the GfxApp class.
The base class for a GopherGfx application.