Flow Visualisation
SDLRenderer Class Reference

OpenGL / SDL Renderer. More...

#include <SDLRenderer.h>

Inheritance diagram for SDLRenderer:
Collaboration diagram for SDLRenderer:

Public Member Functions

virtual void createWindow (int screenWidth=STANDARD_SCREEN_WIDTH, int screenHeight=STANDARD_SCREEN_HEIGHT)
 Create a new window with specified sized. More...
 
virtual void initRenderer ()
 Initializes Renderer. More...
 
virtual void clear ()
 Clears screen buffer. More...
 
virtual void swapBuffers ()
 Swaps buffers;. More...
 
virtual ~SDLRenderer ()
 Virtual descructor to clean up renderer. More...
 
- Public Member Functions inherited from IRenderer
virtual ~IRenderer ()
 Virtual descructor to clean up. More...
 

Additional Inherited Members

- Protected Attributes inherited from IRenderer
int m_screenWidth
 
int m_screenHeight
 

Detailed Description

OpenGL / SDL Renderer.

This class uses the SDL library to create a window and OpenGL context.

Constructor & Destructor Documentation

SDLRenderer::~SDLRenderer ( )
virtual

Virtual descructor to clean up renderer.

Member Function Documentation

void SDLRenderer::clear ( )
virtual

Clears screen buffer.

Implements IRenderer.

void SDLRenderer::createWindow ( int  screenWidth = STANDARD_SCREEN_WIDTH,
int  screenHeight = STANDARD_SCREEN_HEIGHT 
)
virtual

Create a new window with specified sized.

Parameters
screenWidthWidth of the window
screenHeightHeight of the window

Implements IRenderer.

void SDLRenderer::initRenderer ( )
virtual

Initializes Renderer.

Implements IRenderer.

void SDLRenderer::swapBuffers ( )
virtual

Swaps buffers;.

Implements IRenderer.


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