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::Window & | getWindow (Graphics::Id id) |
void | closeWindow (Graphics::Id id) |
bool | isRunning () const |
Graphics::Window & | createWindow (Utility::String const &title, Math::Point2D< unsigned int > const &position, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr) |
Graphics::Window & | createWindow (Utility::String const &title, Math::Vector2D< unsigned int > const &size, unsigned int style, Graphics::ContextAttributes const &attr) |
void | removeWindow (Graphics::Id const &id) |
GraphicsSystem & | operator= (GraphicsSystem const &sys)=delete |
GraphicsSystem & | operator= (GraphicsSystem &&sys)=delete |
Manage the graphics sub system.
NRE::System::GraphicsSystem::GraphicsSystem | ( | ) |
Construct the sub system
|
delete |
Copy forbidden
sys | the graphics system to copy |
|
delete |
Move forbidden
sys | the graphics system to move |
NRE::System::GraphicsSystem::~GraphicsSystem | ( | ) |
GraphicsSystem Deconstructor
void NRE::System::GraphicsSystem::closeWindow | ( | Graphics::Id | id | ) |
Close a specific window
id | the 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
title | the window title |
position | the window top-left corner position |
size | the window size |
style | the window style |
attr | the window context attributes |
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
title | the window title |
size | the window size |
style | the window style |
attr | the window context attributes |
Graphics::Window& NRE::System::GraphicsSystem::getWindow | ( | Graphics::Id | id | ) |
Query a specific window
id | the window id |
bool NRE::System::GraphicsSystem::isRunning | ( | ) | const |
|
delete |
Copy forbidden
sys | the object to copy into this |
|
delete |
Move forbidden
sys | the object to move into this |
void NRE::System::GraphicsSystem::removeWindow | ( | Graphics::Id const & | id | ) |
Remove the window corresponding to the given id
id | the window to remove |