SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | List of all members
GraphicsEngineRenderer Class Reference

#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 ()
 

Detailed Description

This class serves as an interface to the main graphics renderer for our engine.

Constructor & Destructor Documentation

GraphicsEngineRenderer::GraphicsEngineRenderer ( int  w,
int  h 
)

Constructor

GraphicsEngineRenderer::~GraphicsEngineRenderer ( )

Destructor

Member Function Documentation

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.


The documentation for this class was generated from the following files: