Game Engine 2D Platformer
Public Member Functions | List of all members
GraphicsEngineRenderer Class Reference

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

#include <GraphicsEngineRenderer.hpp>

Public Member Functions

 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. More...
 
 ~GraphicsEngineRenderer ()
 Destructor. More...
 
void 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. More...
 
void SetRenderDrawColor ()
 Clear the screen. More...
 
void SetTexture ()
 
void RenderClear ()
 
void RenderPresent ()
 Render whatever is in the backbuffer to the screen. More...
 
SDL_Window * GetWindow ()
 Get Pointer to Window. More...
 
SDL_Renderer * GetRenderer ()
 Get Pointer to Renderer. More...
 
void SetNewTexture (std::string path)
 Set new texture. More...
 
int getWidth ()
 Get Width of texture. More...
 
int getHeight ()
 Get Height of texture. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
intw
inth
std::stringpath

◆ ~GraphicsEngineRenderer()

GraphicsEngineRenderer::~GraphicsEngineRenderer ( )

Destructor.

Member Function Documentation

◆ getHeight()

int GraphicsEngineRenderer::getHeight ( )

Get Height of texture.

◆ GetRenderer()

SDL_Renderer * GraphicsEngineRenderer::GetRenderer ( )

Get Pointer to Renderer.

◆ getWidth()

int GraphicsEngineRenderer::getWidth ( )

Get Width of texture.

◆ GetWindow()

SDL_Window * GraphicsEngineRenderer::GetWindow ( )

Get Pointer to Window.

◆ 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)

Set new texture.

◆ SetRenderDrawColor()

void GraphicsEngineRenderer::SetRenderDrawColor ( )

Clear the screen.

◆ SetTexture()

void GraphicsEngineRenderer::SetTexture ( )

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