TeaPacket v0.0.1
Multiplatform Game Engine
|
Represents a singular renderable area. These can be used as textures, or blit to Displays to present to the user. More...
#include <Viewport.hpp>
Public Member Functions | |
Viewport (unsigned short width, unsigned short height) | |
void | Initialize () |
Initializes the Viewport using its parameters. | |
void | DeInitialize () |
De-Initializes the Viewport. Must be called. | |
Static Public Member Functions | |
static Viewport | CreateViewport (unsigned short width, unsigned short height) |
Public Attributes | |
unsigned short | width |
The width of the viewport. | |
unsigned short | height |
The height of the viewport. | |
PlatformViewport | platformViewport |
Platform data. | |
Texture | texture |
The contained Texture of the viewport. May be used as a resource elsewhere. | |
Static Public Attributes | |
static std::vector< Viewport > | Viewports = std::vector<Viewport>() |
A list of all existing viewports. | |
Represents a singular renderable area. These can be used as textures, or blit to Displays to present to the user.
TeaPacket::Graphics::Viewport::Viewport | ( | unsigned short | width, |
unsigned short | height ) |
|
static |
void TeaPacket::Graphics::Viewport::DeInitialize | ( | ) |
De-Initializes the Viewport. Must be called.
void TeaPacket::Graphics::Viewport::Initialize | ( | ) |
Initializes the Viewport using its parameters.
unsigned short TeaPacket::Graphics::Viewport::height |
The height of the viewport.
PlatformViewport TeaPacket::Graphics::Viewport::platformViewport |
Platform data.
Texture TeaPacket::Graphics::Viewport::texture |
The contained Texture of the viewport. May be used as a resource elsewhere.
|
inlinestatic |
A list of all existing viewports.
unsigned short TeaPacket::Graphics::Viewport::width |
The width of the viewport.