TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
Viewport.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "Platform/Graphics/PlatformViewport.hpp"
7
9{
10
13 {
14 public:
15 unsigned short width;
16 unsigned short height;
17
18 PlatformViewport platformViewport;
19
21
25 Viewport(unsigned short width, unsigned short height);
27 void Initialize();
30
31 private:
32 void Pl_Initialize();
33 void Pl_DeInitialize();
34
35 public:
40 static Viewport CreateViewport(unsigned short width, unsigned short height);
41
43 inline static std::vector<Viewport> Viewports = std::vector<Viewport>();
44
45 private:
46 };
47}
Definition Texture.hpp:30
static Viewport CreateViewport(unsigned short width, unsigned short height)
Texture texture
The contained Texture of the viewport. May be used as a resource elsewhere.
Definition Viewport.hpp:20
Viewport(unsigned short width, unsigned short height)
unsigned short height
The height of the viewport.
Definition Viewport.hpp:16
PlatformViewport platformViewport
Platform data.
Definition Viewport.hpp:18
static std::vector< Viewport > Viewports
A list of all existing viewports.
Definition Viewport.hpp:43
void DeInitialize()
De-Initializes the Viewport. Must be called.
unsigned short width
The width of the viewport.
Definition Viewport.hpp:15
void Initialize()
Initializes the Viewport using its parameters.
Functionality relating to drawing graphics to the screen.
Definition Display.hpp:9