4#include "Platform/Graphics/PlatformDisplay.hpp"
27 bool Resize(
unsigned short newWidth,
unsigned short newHeight);
38 Display(
unsigned short width,
unsigned short height,
const std::string&
name);
40 bool Pl_Resize(
unsigned short newWidth,
unsigned short newHeight);
41 void Pl_PresentDisplay();
44 void Pl_DeInitialize();
47 inline static std::vector<Display>
Displays = std::vector<Display>();
64 static Display Pl_RegisterDisplay(
unsigned short width,
unsigned short height,
const std::string&
name,
bool* success);
bool Resize(unsigned short newWidth, unsigned short newHeight)
Viewport viewport
The contained viewport of the Display. Render to the viewport to render to the Display.
Definition Display.hpp:23
void PresentDisplay()
Present and update all changes made to the contained Viewport (via rendering).
void DeInitialize()
De-initializes the Display and its graphics.
static Display * RegisterDisplay(unsigned short width=0, unsigned short height=0, const std::string &name="Window")
Registers a new display.
unsigned short height
Height of the Display in pixels.
Definition Display.hpp:19
PlatformDisplay platformDisplay
Private platform-dependent data.
Definition Display.hpp:25
unsigned short width
Width of the Display in pixels.
Definition Display.hpp:18
std::string name
Name of the display. Will be shown to the user on platforms that allow.
Definition Display.hpp:20
static std::vector< Display > Displays
A list of all displays in existence. Displays MUST be registered to this list upon creation.
Definition Display.hpp:47
Represents a singular renderable area. These can be used as textures, or blit to Displays to present ...
Definition Viewport.hpp:13
Functionality relating to drawing graphics to the screen.
Definition Display.hpp:9