Main Page | Class List | File List | Class Members | File Members

render.h File Reference

#include "utilities.h"

Include dependency graph for render.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

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


Typedef Documentation

typedef void(* void_func_void)(void)
 

Definition at line 10 of file render.h.


Function Documentation

void beginMainLoop  ) 
 

start the main loop

Definition at line 74 of file render.cpp.

References g_pMainLoop, and g_pRender.

Referenced by main().

void drawGrid const vector2i &  subdivs,
const vector2f *  pPos,
const vector2f *  pDim,
const float *  pLineWidth,
const colour4f pLineColour,
const colour4f pFillColour
 

draw a grid

Definition at line 161 of file render.cpp.

References drawRectangle(), and colour4f::m_data.

Referenced by world::draw().

void drawRectangle const vector2f *  pPos,
const vector2f *  pDim,
const float *  pLineWidth,
const colour4f pLineColour,
const colour4f pFillColour
 

draw a rectangle

Definition at line 87 of file render.cpp.

References colour4f::m_data.

Referenced by world::draw(), and drawGrid().

void getWindowDimensions vector2i &  dim  ) 
 

get the window dimensions

Definition at line 80 of file render.cpp.

References g_windowDimensions.

void initRenderingContext int  argc,
char *  argv[]
 

initialise renderer/window

Definition at line 205 of file render.cpp.

References __draw(), __idle(), and __reshape().

Referenced by main().

void setMainLoopCallback void_func_void  pIdle  ) 
 

set the main loop callback function

Definition at line 62 of file render.cpp.

References g_pMainLoop.

Referenced by main().

void setRenderCallback void_func_void  pRender  ) 
 

set the render callback function

Definition at line 68 of file render.cpp.

References g_pRender.

Referenced by main().


Generated on Sun Mar 6 22:11:27 2005 for experiment03 by doxygen 1.3.7