NRE::System::Application Class Referenceabstract

Manage an user application. More...

#include <NRE_Application.hpp>

Inheritance diagram for NRE::System::Application:
DevApplication

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 ()
 
Applicationoperator= (Application const &app)=delete
 
Applicationoperator= (Application &&app)=delete
 

Detailed Description

Manage an user application.

Constructor & Destructor Documentation

NRE::System::Application::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

Parameters
titlethe window title
positionthe window position
sizethe window size
stylethe window style
attrthe 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

Parameters
titlethe window title
sizethe window size
stylethe window style
attrthe window OpenGL Context attributes
NRE::System::Application::Application ( Application const &  app)
delete

Copy forbidden

Parameters
appthe application to copy
NRE::System::Application::Application ( Application &&  app)
delete

Move forbidden

Parameters
appthe application to copy
virtual NRE::System::Application::~Application ( )
virtual

Application Deconstructor

Member Function Documentation

template<class T >
void NRE::System::Application::addHandler ( typename Event::EventHandler< T >::Handler &&  handler)

Add an event handler

Parameters
handlerthe event handler function
virtual void NRE::System::Application::create ( )
pure virtual

Called at the application's creation

Implemented in DevApplication.

virtual void NRE::System::Application::destroy ( )
pure virtual

Called at application's destruction

Implemented in DevApplication.

void NRE::System::Application::NREmain ( )

The application entry point

Application& NRE::System::Application::operator= ( Application const &  app)
delete

Copy forbidden

Parameters
appthe object to copy into this
Returns
the reference of himself
Application& NRE::System::Application::operator= ( Application &&  app)
delete

Move forbidden

Parameters
appthe object to move into this
Returns
the reference of himself
virtual void NRE::System::Application::render ( )
pure virtual

Called after application's update, every frame

Implemented in DevApplication.

virtual void NRE::System::Application::update ( )
pure virtual

Called before application's render, every frame

Implemented in DevApplication.


The documentation for this class was generated from the following file: