#include "utilities.h"
Include dependency graph for render.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef void(* | void_func_void )(void) |
Functions | |
void | initRenderingContext (int argc, char *argv[]) |
initialise renderer/window | |
void | setMainLoopCallback (void_func_void pIdle) |
set the main loop callback function | |
void | setRenderCallback (void_func_void pRender) |
set the render callback function | |
void | getWindowDimensions (vector2i &dim) |
get the window dimensions | |
void | drawRectangle (const vector2f *pPos, const vector2f *pDim, const float *pLineWidth, const colour4f *pLineColour, const colour4f *pFillColour) |
draw a rectangle | |
void | beginMainLoop () |
start the main loop | |
void | drawGrid (const vector2i &subdivs, const vector2f *pPos, const vector2f *pDim, const float *pLineWidth, const colour4f *pLineColour, const colour4f *pFillColour) |
draw a grid |
|
|
|
start the main loop
Definition at line 74 of file render.cpp. References g_pMainLoop, and g_pRender. Referenced by main(). |
|
draw a grid
Definition at line 161 of file render.cpp. References drawRectangle(), and colour4f::m_data. Referenced by world::draw(). |
|
draw a rectangle
Definition at line 87 of file render.cpp. References colour4f::m_data. Referenced by world::draw(), and drawGrid(). |
|
get the window dimensions
Definition at line 80 of file render.cpp. References g_windowDimensions. |
|
initialise renderer/window
Definition at line 205 of file render.cpp. References __draw(), __idle(), and __reshape(). Referenced by main(). |
|
set the main loop callback function
Definition at line 62 of file render.cpp. References g_pMainLoop. Referenced by main(). |
|
set the render callback function
Definition at line 68 of file render.cpp. References g_pRender. Referenced by main(). |