Manage an user application. More...
#include <NRE_Application.hpp>
Public Member Functions | |
Application ()=delete | |
Application (Utility::String const &title, Math::Point2D< unsigned int > const &position, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr=Graphics::ContextAttributes()) | |
Application (Utility::String const &title, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr=Graphics::ContextAttributes()) | |
Application (Application const &app)=delete | |
Application (Application &&app)=delete | |
virtual | ~Application () |
virtual void | create ()=0 |
virtual void | update ()=0 |
virtual void | render ()=0 |
virtual void | destroy ()=0 |
template<class T > | |
void | addHandler (typename Event::EventHandler< T >::Handler &&handler) |
void | NREmain () |
Application & | operator= (Application const &app)=delete |
Application & | operator= (Application &&app)=delete |
Manage an user application.
|
delete |
No default constructor
NRE::System::Application::Application | ( | Utility::String const & | title, |
Math::Point2D< unsigned int > const & | position, | ||
Math::Vector2D< unsigned int > const & | size, | ||
unsigned int | style, | ||
Graphics::ContextAttributes const & | attr = Graphics::ContextAttributes() |
||
) |
Create the application from the window attributes
title | the window title |
position | the window position |
size | the window size |
style | the window style |
attr | the window OpenGL Context attributes |
NRE::System::Application::Application | ( | Utility::String const & | title, |
Math::Vector2D< unsigned int > const & | size, | ||
unsigned int | style, | ||
Graphics::ContextAttributes const & | attr = Graphics::ContextAttributes() |
||
) |
Create the application from the window attributes
title | the window title |
size | the window size |
style | the window style |
attr | the window OpenGL Context attributes |
|
delete |
Copy forbidden
app | the application to copy |
|
delete |
Move forbidden
app | the application to copy |
|
virtual |
Application Deconstructor
void NRE::System::Application::addHandler | ( | typename Event::EventHandler< T >::Handler && | handler | ) |
Add an event handler
handler | the event handler function |
|
pure virtual |
Called at the application's creation
Implemented in DevApplication.
|
pure virtual |
Called at application's destruction
Implemented in DevApplication.
void NRE::System::Application::NREmain | ( | ) |
The application entry point
|
delete |
Copy forbidden
app | the object to copy into this |
|
delete |
Move forbidden
app | the object to move into this |
|
pure virtual |
Called after application's update, every frame
Implemented in DevApplication.
|
pure virtual |
Called before application's render, every frame
Implemented in DevApplication.