|
Foundation
|
Application base class. Handles initialization and shutdown of the native platform, and windowing management. More...
#include <Application.hpp>
Public Member Functions | |
| template<typename T = float> | |
| T | GetApplicationTime () const |
| Returns a high-resolution time in seconds since the application started. | |
| size_t | GetApplicationCounter () const |
| Returns a high-resolution time in nanoseconds since the application started. | |
| NativeApplication () | |
| virtual | ~NativeApplication () |
Static Public Member Functions | |
| static NativeWindow | CreateNativeWindow (uint32_t width, uint32_t height, const char *title) |
| Creates a window with the specified width, height, and title. | |
Private Attributes | |
| int | mInitialized = 0 |
| size_t | mStartCounter = 0 |
Application base class. Handles initialization and shutdown of the native platform, and windowing management.
| Foundation::Native::NativeApplication::NativeApplication | ( | ) |
|
virtual |
|
static |
Creates a window with the specified width, height, and title.
|
inline |
Returns a high-resolution time in nanoseconds since the application started.
|
inline |
Returns a high-resolution time in seconds since the application started.
| T | The return type. Must be a floating-point type. Default is float. |
|
private |
|
private |