This class serves as an interface to the main graphics renderer for our engine.
More...
#include <GraphicsEngineRenderer.hpp>
This class serves as an interface to the main graphics renderer for our engine.
◆ GraphicsEngineRenderer()
GraphicsEngineRenderer::GraphicsEngineRenderer |
( |
int |
w, |
|
|
int |
h, |
|
|
std::string |
path |
|
) |
| |
Constuctor for GraphicsEngineRenderer. Takes in an int for width and height, and a file path as a string.
- Parameters
-
int | w |
int | h |
std::string | path |
◆ ~GraphicsEngineRenderer()
GraphicsEngineRenderer::~GraphicsEngineRenderer |
( |
| ) |
|
◆ getHeight()
int GraphicsEngineRenderer::getHeight |
( |
| ) |
|
◆ GetRenderer()
SDL_Renderer * GraphicsEngineRenderer::GetRenderer |
( |
| ) |
|
◆ getWidth()
int GraphicsEngineRenderer::getWidth |
( |
| ) |
|
◆ GetWindow()
SDL_Window * GraphicsEngineRenderer::GetWindow |
( |
| ) |
|
◆ render()
void GraphicsEngineRenderer::render |
( |
int |
x, |
|
|
int |
y, |
|
|
SDL_Rect * |
clip = NULL , |
|
|
double |
angle = 0.0 , |
|
|
SDL_Point * |
center = NULL , |
|
|
SDL_RendererFlip |
flip = SDL_FLIP_NONE |
|
) |
| |
Set the color for the background whenever the color is cleared.
◆ RenderClear()
void GraphicsEngineRenderer::RenderClear |
( |
| ) |
|
◆ RenderPresent()
void GraphicsEngineRenderer::RenderPresent |
( |
| ) |
|
Render whatever is in the backbuffer to the screen.
◆ SetNewTexture()
void GraphicsEngineRenderer::SetNewTexture |
( |
std::string |
path | ) |
|
◆ SetRenderDrawColor()
void GraphicsEngineRenderer::SetRenderDrawColor |
( |
| ) |
|
◆ SetTexture()
void GraphicsEngineRenderer::SetTexture |
( |
| ) |
|
The documentation for this class was generated from the following files: