NRE::System::GraphicsSystem Class Reference

Manage the graphics sub system. More...

#include <NRE_GraphicsSystem.hpp>

Public Member Functions

 GraphicsSystem ()
 
 GraphicsSystem (GraphicsSystem const &sys)=delete
 
 GraphicsSystem (GraphicsSystem &&sys)=delete
 
 ~GraphicsSystem ()
 
Graphics::WindowgetWindow (Graphics::Id id)
 
void closeWindow (Graphics::Id id)
 
bool isRunning () const
 
Graphics::WindowcreateWindow (Utility::String const &title, Math::Point2D< unsigned int > const &position, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr)
 
Graphics::WindowcreateWindow (Utility::String const &title, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr)
 
void removeWindow (Graphics::Id const &id)
 
GraphicsSystemoperator= (GraphicsSystem const &sys)=delete
 
GraphicsSystemoperator= (GraphicsSystem &&sys)=delete
 

Detailed Description

Manage the graphics sub system.

Constructor & Destructor Documentation

NRE::System::GraphicsSystem::GraphicsSystem ( )

Construct the sub system

NRE::System::GraphicsSystem::GraphicsSystem ( GraphicsSystem const &  sys)
delete

Copy forbidden

Parameters
systhe graphics system to copy
NRE::System::GraphicsSystem::GraphicsSystem ( GraphicsSystem &&  sys)
delete

Move forbidden

Parameters
systhe graphics system to move
NRE::System::GraphicsSystem::~GraphicsSystem ( )

GraphicsSystem Deconstructor

Member Function Documentation

void NRE::System::GraphicsSystem::closeWindow ( Graphics::Id  id)

Close a specific window

Parameters
idthe window id
Graphics::Window& NRE::System::GraphicsSystem::createWindow ( Utility::String const &  title,
Math::Point2D< unsigned int > const &  position,
Math::Vector2D< unsigned int > const &  size,
unsigned int  style,
Graphics::ContextAttributes const &  attr 
)

Create a window and register it in the system

Parameters
titlethe window title
positionthe window top-left corner position
sizethe window size
stylethe window style
attrthe window context attributes
Returns
the created window
Graphics::Window& NRE::System::GraphicsSystem::createWindow ( Utility::String const &  title,
Math::Vector2D< unsigned int > const &  size,
unsigned int  style,
Graphics::ContextAttributes const &  attr 
)

Create a window and register it in the system

Parameters
titlethe window title
sizethe window size
stylethe window style
attrthe window context attributes
Returns
the created window
Graphics::Window& NRE::System::GraphicsSystem::getWindow ( Graphics::Id  id)

Query a specific window

Parameters
idthe window id
Returns
the corresponding window
bool NRE::System::GraphicsSystem::isRunning ( ) const
Returns
if at least one window is opened
GraphicsSystem& NRE::System::GraphicsSystem::operator= ( GraphicsSystem const &  sys)
delete

Copy forbidden

Parameters
systhe object to copy into this
Returns
the reference of himself
GraphicsSystem& NRE::System::GraphicsSystem::operator= ( GraphicsSystem &&  sys)
delete

Move forbidden

Parameters
systhe object to move into this
Returns
the reference of himself
void NRE::System::GraphicsSystem::removeWindow ( Graphics::Id const &  id)

Remove the window corresponding to the given id

Parameters
idthe window to remove

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