TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
Graphics.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Display.hpp"
5
8{
9 class Viewport;
10 class Display;
11
13 bool Initialize();
14
17
19
22 void SetRenderTarget(Viewport& viewport);
24 void SetRenderTarget(Display& display);
27
29 void ClearScreen(const Color4& color);
30
32 inline bool initialized = false;
34
35 inline Viewport* currentViewport = nullptr;
36}
Vector4ub Color4
Definition Color4.hpp:3
Represents a singular viewable area.
Definition Display.hpp:16
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
void SetRenderTarget(Viewport &viewport)
Begins rendering to a specified Interface::Display.
void FinishRenderTarget()
Concludes rendering to the current Interface::Display.
Viewport * currentViewport
The current Interface::Display being rendered to.
Definition Graphics.hpp:35
void DeInitialize()
Deinitializes all Graphics related systems.
void ClearScreen(const Color4 &color)
Clears the active Display with a color.
bool initialized
Whether all Interface functionality has been initialized.
Definition Graphics.hpp:32
bool Initialize()
Initializes any Graphics related systems.