![]() |
Middle Europe Productions Library
alpha 1.3.3
|
Core information related to the SFML Window functionalities. As well as context settings. More...
#include <WindowData.h>
Public Member Functions | |
| WindowData (const char *title, const sf::Vector2u &mainResolution={ 1280, 720 }, U_int32 style=sf::Style::Default, sf::ContextSettings settings=sf::ContextSettings()) | |
| void | initWindow () |
| sf::RenderWindow & | getRenderWindow () |
| sf::ContextSettings & | getContext () |
| sf::View & | getMepView () |
| void | changeResolution (const sf::Vector2u &newRes) |
| const sf::Vector2u & | getLaunchResolution () const |
| const sf::Vector2u | getWindowSize () const |
| void | setResolution (const sf::Vector2u &res) |
| sf::Vector2u | getResolution () const |
| virtual void | onResize () |
Protected Attributes | |
| sf::View | m_view |
| sf::Vector2u | m_resolution |
| const sf::Vector2u | m_launchResolution |
| sf::ContextSettings | m_settings |
| sf::Color | m_backgroundColor = sf::Color::Black |
| std::string | m_title |
| U_int32 | m_style |
Core information related to the SFML Window functionalities. As well as context settings.
Holds information about window. Avalible operations:
Window - main window.
m_view - main view port.
m_resolution - master resolution
m_settings - main context of a window.
|
inline |
|
inline |
Changes the resolution of a window.
| [in] | newRes | : sf::Vector2u |
|
inline |
Returns a reference to the sf::ContextSettings
|
inline |
Outputs the lunch re
|
inline |
Returns a reference to the master sf::View
|
inline |
Returns a reference to the sf::RenderWindow
|
inline |
Output the current resolution of a window.
|
inline |
Returns the actual size of a window if you are using MEP::Template::Hub size == resolution.
|
inline |
Creates the window.
|
inlinevirtual |
A method from sf::Window.
Reimplemented in MEP::Template::Application.
|
inline |
Sets the resolution of a window. Warning setResolution does not update the resolution use updateResolution() if you want to commit changes.
|
protected |
Color of a background of the window.
|
protected |
Lunching resloution of the code.
|
protected |
Resolution of a window.
|
protected |
Setting of a context. Antialiasing etc.
|
protected |
Style of the window.
|
protected |
Title of the window.
|
protected |
Master view (can be changed in a MEP::Window::BaseWindow