Main entry point and handler for nCine applications.
More...
#include <Application.h>
|
|
const AppConfiguration & | appConfiguration () const |
| | Returns the configuration used to initialize the application.
|
| |
|
IDebugOverlay::DisplaySettings & | debugOverlaySettings () |
| | Returns the run-time debug overlay settings, if debug overlay is available.
|
| |
|
const float * | timings () const |
| | Returns all timings.
|
| |
|
IGfxDevice & | gfxDevice () |
| | Returns the graphics device instance.
|
| |
|
IInputManager & | inputManager () |
| | Returns the input manager instance.
|
| |
|
unsigned long int | numFrames () const |
| | Returns the total number of frames already rendered.
|
| |
| float | frameTime () const |
| | Returns the time in seconds that last frame took to complete.
|
| |
|
IFrameTimer & | frameTimer () |
| | Returns the frame timer interface.
|
| |
|
float | width () const |
| | Returns the drawable screen width as a float number.
|
| |
|
float | height () const |
| | Returns the drawable screen height as a float number.
|
| |
|
Vector2f | resolution () const |
| | Returns the drawable screen resolution as a Vector2f object.
|
| |
|
int | widthInt () const |
| | Returns the drawable screen width as an integer number.
|
| |
|
int | heightInt () const |
| | Returns the drawable screen height as an integer number.
|
| |
|
Vector2i | resolutionInt () const |
| | Returns the drawable screen resolution as a Vector2i object.
|
| |
| bool | isSuspended () const |
| | Returns the value of the suspension flag.
|
| |
|
void | setSuspended (bool suspended) |
| | Sets the suspension flag value.
|
| |
| bool | autoSuspension () const |
| | Returns the value of the auto-suspension flag.
|
| |
|
void | setAutoSuspension (bool autoSuspension) |
| | Sets the auto-suspension flag value.
|
| |
|
void | quit () |
| | Asks the application to quit as soon as possible (by raising the quit flag)
|
| |
|
bool | shouldQuit () const |
| | Returns the value of the quit flag.
|
| |
|
bool | hasFocus () const |
| | Returns the focus flag value.
|
| |
|
|
void | initCommon () |
| | Must be called before giving control to the application.
|
| |
|
void | step () |
| | A single step of the game loop made to render a frame.
|
| |
|
void | shutdownCommon () |
| | Must be called before exiting to shut down the application.
|
| |
|
void | suspend () |
| | Called when the application gets suspended.
|
| |
|
void | resume () |
| | Called when the application resumes execution.
|
| |
|
virtual void | setFocus (bool hasFocus) |
| | Sets the focus flag.
|
| |
| bool | resizeScreenViewport (int width, int height) |
| | Resizes the screen viewport, if it exists.
|
| |
| bool | updateScalingFactor () |
| | Checks if the window scaling factor has changed this frame.
|
| |
|
|
class | PCApplication |
| |
|
class | AndroidApplication |
| |
|
class | Viewport |
| |
|
class | GlfwInputManager |
| |
|
class | QtWidget |
| |
Main entry point and handler for nCine applications.
◆ autoSuspension()
| bool ncine::Application::autoSuspension |
( |
| ) |
const |
|
inline |
Returns the value of the auto-suspension flag.
If true the application will be suspended when it loses focus
◆ frameTime()
| float ncine::Application::frameTime |
( |
| ) |
const |
Returns the time in seconds that last frame took to complete.
- Note
- Also called delta time. */
◆ isSuspended()
| bool ncine::Application::isSuspended |
( |
| ) |
const |
|
inline |
Returns the value of the suspension flag.
If true the application is suspended, it will neither update nor receive events
◆ resizeScreenViewport()
| bool ncine::Application::resizeScreenViewport |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
protected |
Resizes the screen viewport, if it exists.
- Note
- It will also call the
onResizeWindow() callback if the size has really changed
◆ updateScalingFactor()
| bool ncine::Application::updateScalingFactor |
( |
| ) |
|
|
protected |
Checks if the window scaling factor has changed this frame.
- Note
- It will also call the
onChangeScalingFactor() callback if the factor has really changed
The documentation for this class was generated from the following files: