Public Member Functions | Protected Member Functions

Render Class Reference

#include <Render.h>

Inheritance diagram for Render:
IRender

List of all members.

Public Member Functions

 Render (void)
virtual ~Render (void)
bool init (HWND hwnd, int width, int heigth, RenderDesc &desc)
void uninit (void)
void keepCurrentGeometry (void)
void resetCurrentGeometry (void)
pIGeometry createGeometry (MeshData &meshData)
 Create geometry (mesh) from MeshData.
pITexture createTexture (TextureData &textureData)
 Create a Texture from TextureData.
void createSkyBox (TextureData &, TextureData &, TextureData &, TextureData &, TextureData &, TextureData &)
 Create a sky box from TextureDatas.
pIControl createControl (pIGeometry geometry, pITexture texture)
 Create GUI Control.
pIControl createButton (pIGeometry geometry, pITexture texture, void callback(pIControl))
 Create GUI Button.
void freeTexture (pITexture &texture)
void freeGeometry (pIGeometry &geometry)
pInstance createDrawCall (pITexture texture, pIGeometry geometry, pIBody body)
 Create draw call.
pInstance createColorDrawCall (pIGeometry geometry, pIBody body)
 Create draw call that uses no texture.
void createGuiDrawCall (pIControl control)
 Create GUI draw call.
void clear (void)
 Free all used memory on the GPU.
void update (Camera &camera)
 Draw and update the scene.
void updateScreenSize (int width, int height)
 Updates viewport and GUI matrix conversion.
void toggleGui ()
 Enable GUI drawing.
bool guiIsShown ()
 Is the GUI drawn?
void setLight (int index, LightData &lightData)
 Set light from LightData.
void setEnableBlending (bool b)
 Enables and disables debug settings.
bool getEnableBlending (void)
void setEnableCulling (bool b)
bool getEnableCulling (void)
void setEnableWireframe (bool b)
bool getEnableWireframe (void)
void setEnableMipmap (bool b)
bool getEnableMipmap ()
void setEnableLinearTexture (bool b)
bool getEnableLinearTexture ()

Protected Member Functions

virtual void initGLEW (void)
virtual void reserveDeviceMemory (int width, int height, RenderDesc &desc)
virtual const float4x4 getGuiMatrix (int width, int height)

Detailed Description

Definition at line 27 of file Render.h.


Constructor & Destructor Documentation

Render::Render ( void   ) 

Definition at line 6 of file Render.cpp.

Render::~Render ( void   )  [virtual]

Definition at line 89 of file Render.cpp.


Member Function Documentation

void Render::clear ( void   )  [virtual]

Free all used memory on the GPU.

Implements IRender.

Definition at line 802 of file Render.cpp.

pIControl Render::createButton ( pIGeometry  geometry,
pITexture  texture,
void   callbackpIControl 
) [virtual]

Create GUI Button.

Implements IRender.

Definition at line 745 of file Render.cpp.

pInstance Render::createColorDrawCall ( pIGeometry  geometry,
pIBody  body 
) [virtual]

Create draw call that uses no texture.

Implements IRender.

Definition at line 779 of file Render.cpp.

pIControl Render::createControl ( pIGeometry  geometry,
pITexture  texture 
) [virtual]

Create GUI Control.

Implements IRender.

Definition at line 740 of file Render.cpp.

pInstance Render::createDrawCall ( pITexture  texture,
pIGeometry  geometry,
pIBody  body 
) [virtual]

Create draw call.

Implements IRender.

Definition at line 768 of file Render.cpp.

pIGeometry Render::createGeometry ( MeshData meshData  )  [virtual]

Create geometry (mesh) from MeshData.

Implements IRender.

Definition at line 622 of file Render.cpp.

void Render::createGuiDrawCall ( pIControl  control  )  [virtual]

Create GUI draw call.

Implements IRender.

Definition at line 790 of file Render.cpp.

void Render::createSkyBox ( TextureData top,
TextureData bottom,
TextureData left,
TextureData right,
TextureData front,
TextureData back 
) [virtual]

Create a sky box from TextureDatas.

Implements IRender.

Definition at line 708 of file Render.cpp.

pITexture Render::createTexture ( TextureData textureData  )  [virtual]

Create a Texture from TextureData.

Implements IRender.

Definition at line 662 of file Render.cpp.

void Render::freeGeometry ( pIGeometry  )  [virtual]

Free geometry. Note that this does not free the geometry on the GPU. Use virtual void clear(void) to free all the memory used on the GPU.

Implements IRender.

Definition at line 759 of file Render.cpp.

void Render::freeTexture ( pITexture  )  [virtual]

Free texture. Note that this does not free the texture on the GPU. Use virtual void clear(void) to free all the memory used on the GPU.

Implements IRender.

Definition at line 750 of file Render.cpp.

bool Render::getEnableBlending ( void   )  [inline, virtual]

Implements IRender.

Definition at line 60 of file Render.h.

bool Render::getEnableCulling ( void   )  [inline, virtual]

Implements IRender.

Definition at line 62 of file Render.h.

bool Render::getEnableLinearTexture (  )  [inline, virtual]

Implements IRender.

Definition at line 68 of file Render.h.

bool Render::getEnableMipmap (  )  [inline, virtual]

Implements IRender.

Definition at line 66 of file Render.h.

bool Render::getEnableWireframe ( void   )  [inline, virtual]

Implements IRender.

Definition at line 64 of file Render.h.

const float4x4 Render::getGuiMatrix ( int  width,
int  height 
) [protected, virtual]

Definition at line 293 of file Render.cpp.

bool Render::guiIsShown (  )  [inline, virtual]

Is the GUI drawn?

Implements IRender.

Definition at line 56 of file Render.h.

bool Render::init ( HWND  hwnd,
int  width,
int  height,
RenderDesc desc 
) [virtual]

Initialize the render module. This method must be called before using any other method of this class. It initializes the graphic context an reserves memory on the CPU and GPU.

Implements IRender.

Definition at line 94 of file Render.cpp.

void Render::initGLEW ( void   )  [protected, virtual]

Definition at line 846 of file Render.cpp.

void Render::keepCurrentGeometry ( void   )  [virtual]

Implements IRender.

Definition at line 280 of file Render.cpp.

void Render::reserveDeviceMemory ( int  width,
int  height,
RenderDesc desc 
) [protected, virtual]

Definition at line 321 of file Render.cpp.

void Render::resetCurrentGeometry ( void   )  [virtual]

Implements IRender.

Definition at line 288 of file Render.cpp.

void Render::setEnableBlending ( bool  b  )  [inline, virtual]

Enables and disables debug settings.

Implements IRender.

Definition at line 59 of file Render.h.

void Render::setEnableCulling ( bool  b  )  [inline, virtual]

Implements IRender.

Definition at line 61 of file Render.h.

void Render::setEnableLinearTexture ( bool  b  )  [virtual]

Implements IRender.

Definition at line 874 of file Render.cpp.

void Render::setEnableMipmap ( bool  b  )  [virtual]

Implements IRender.

Definition at line 861 of file Render.cpp.

void Render::setEnableWireframe ( bool  b  )  [inline, virtual]

Implements IRender.

Definition at line 63 of file Render.h.

void Render::setLight ( int  index,
LightData lightData 
) [virtual]

Set light from LightData.

Implements IRender.

Definition at line 732 of file Render.cpp.

void Render::toggleGui (  )  [virtual]

Enable GUI drawing.

Implements IRender.

Definition at line 856 of file Render.cpp.

void Render::uninit ( void   )  [virtual]

Uninitialize module. After this method was called no other methods (except virtual void init(HWND, int, int, RenderDesc&)) may be called.

Implements IRender.

Definition at line 823 of file Render.cpp.

void Render::update ( Camera camera  )  [virtual]

Draw and update the scene.

Implements IRender.

Definition at line 456 of file Render.cpp.

void Render::updateScreenSize ( int  width,
int  height 
) [virtual]

Updates viewport and GUI matrix conversion.

Implements IRender.

Definition at line 795 of file Render.cpp.


Member Data Documentation

Definition at line 119 of file Render.h.

Definition at line 141 of file Render.h.

Definition at line 126 of file Render.h.

Definition at line 139 of file Render.h.

Definition at line 140 of file Render.h.

Definition at line 117 of file Render.h.

Definition at line 152 of file Render.h.

Definition at line 97 of file Render.h.

Definition at line 99 of file Render.h.

Definition at line 98 of file Render.h.

Definition at line 100 of file Render.h.

float4 Render::lightColorArray[MAX_ACTIVE_LIGHTS]

Definition at line 143 of file Render.h.

Definition at line 138 of file Render.h.

float4 Render::lightPositionArray[MAX_ACTIVE_LIGHTS]

Definition at line 142 of file Render.h.

Definition at line 137 of file Render.h.

Definition at line 105 of file Render.h.

Definition at line 134 of file Render.h.

Definition at line 106 of file Render.h.

Definition at line 111 of file Render.h.

Definition at line 96 of file Render.h.

Definition at line 118 of file Render.h.

Definition at line 127 of file Render.h.

Definition at line 136 of file Render.h.

Definition at line 112 of file Render.h.

Definition at line 132 of file Render.h.


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