SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
|
#include <GraphicsEngineRenderer.hpp>
Public Member Functions | |
GraphicsEngineRenderer (int w, int h) | |
~GraphicsEngineRenderer () | |
void | SetRenderDrawColor (int r, int g, int b, int a) |
void | RenderClear () |
void | RenderPresent () |
SDL_Window * | GetWindow () |
SDL_Renderer * | GetRenderer () |
int | width () |
int | height () |
This class serves as an interface to the main graphics renderer for our engine.
GraphicsEngineRenderer::GraphicsEngineRenderer | ( | int | w, |
int | h | ||
) |
Constructor
GraphicsEngineRenderer::~GraphicsEngineRenderer | ( | ) |
Destructor
SDL_Renderer * GraphicsEngineRenderer::GetRenderer | ( | ) |
Get Pointer to Renderer
SDL_Window * GraphicsEngineRenderer::GetWindow | ( | ) |
Get Pointer to Window
int GraphicsEngineRenderer::height | ( | ) |
Get screen height
void GraphicsEngineRenderer::RenderClear | ( | ) |
Clear the screen
void GraphicsEngineRenderer::RenderPresent | ( | ) |
Render whatever is in the backbuffer to the screen.
void GraphicsEngineRenderer::SetRenderDrawColor | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Set the color for the background whenever the color is cleared.
int GraphicsEngineRenderer::width | ( | ) |
Get screen width.