Fluxus::Renderer Class Reference

#include <Renderer.h>

Collaboration diagram for Fluxus::Renderer:

Collaboration graph

Public Types

enum  stereo_mode_t { noStereo, crystalEyes, colourStereo }

Public Member Functions

 Renderer ()
 ~Renderer ()
Rendering control
void Render ()
void Clear ()
State accessors
StateGetState ()
void ApplyState ()
void PushState ()
void PopState ()
void Grab (int ID)
 Grabs the object state and makes it current.
void UnGrab ()
PrimitiveGrabbed ()
Primitive handling
int AddPrimitive (Primitive *Prim)
PrimitiveGetPrimitive (int ID)
void RemovePrimitive (int ID)
 Make sure it's removed from the physics engine too.
void DetachPrimitive (int ID)
dMatrix GetGlobalTransform (int ID)
dBoundingBox GetBoundingBox (int ID)
void RenderPrimitive (Primitive *Prim)
int Select (int x, int y, int size)
 Get primitive ID from screen space.
int AddLight (Light *l)
LightGetLight (int id)
void ClearLights ()
CameraGetCamera ()
Scenegraph access
const SceneGraphGetSceneGraph ()
Global state control
void DrawText (const string &Text)
void Reinitialise ()
void SetMotionBlur (bool s, float a=0.02)
void SetResolution (int x, int y)
void GetResolution (int &x, int &y)
void InitTextures ()
unsigned int LoadTexture (const string &Filename, bool ignorecache=false)
void ShowAxis (bool s)
void ShowCursor (bool s)
void SetBGColour (const dColour &s)
void SetClearFrame (bool s)
void SetClearZBuffer (bool s)
void SetClearAccum (bool s)
void SetBackFaceCull (bool s)
void SetFaceOrderClockwise (bool s)
 Default to ccw.
void SetDesiredFPS (float s)
void SetFPSDisplay (bool s)
void SetFog (const dColour &c, float d, float s, float e)
void ShadowLight (unsigned int s)
void DebugShadows (bool s)
void ShadowLength (float s)
double GetTime ()
double GetDelta ()
bool SetStereoMode (stereo_mode_t mode)
stereo_mode_t GetStereoMode ()
Thin interface to some hardware features
void SetColourMask (bool inred, bool ingreen, bool inblue, bool inalpha)
void Accum (int mode, float factor)
void DrawBuffer (GLenum mode)
void ReadBuffer (GLenum mode)

Data Structures

struct  SelectInfo

Detailed Description

This is the main interface for the fluxus renderer, all control should come through this interface

Definition at line 57 of file Renderer.h.

Member Enumeration Documentation

enum Fluxus::Renderer::stereo_mode_t


Definition at line 122 of file Renderer.h.

Constructor & Destructor Documentation

Renderer::Renderer (  ) 

Definition at line 42 of file Renderer.cpp.

Renderer::~Renderer (  ) 

Definition at line 78 of file Renderer.cpp.

Member Function Documentation

void Renderer::Render (  ) 

Definition at line 85 of file Renderer.cpp.

void Renderer::Clear (  ) 

Definition at line 472 of file Renderer.cpp.

State * Renderer::GetState (  ) 

Definition at line 535 of file Renderer.cpp.

void Renderer::ApplyState (  ) 

Definition at line 546 of file Renderer.cpp.

void Renderer::PushState (  ) 

Definition at line 551 of file Renderer.cpp.

void Renderer::PopState (  ) 

Definition at line 560 of file Renderer.cpp.

void Renderer::Grab ( int  ID  ) 

Grabs the object state and makes it current.

Definition at line 576 of file Renderer.cpp.

void Renderer::UnGrab (  ) 

Definition at line 589 of file Renderer.cpp.

Primitive* Fluxus::Renderer::Grabbed (  )  [inline]

Definition at line 80 of file Renderer.h.

int Renderer::AddPrimitive ( Primitive Prim  ) 

Definition at line 481 of file Renderer.cpp.

Primitive * Renderer::GetPrimitive ( int  ID  ) 

Definition at line 488 of file Renderer.cpp.

void Renderer::RemovePrimitive ( int  ID  ) 

Make sure it's removed from the physics engine too.

Definition at line 495 of file Renderer.cpp.

void Renderer::DetachPrimitive ( int  ID  ) 

Moves the primitive (and it's subtree) from it's position in the graph and adds it to the root.

Definition at line 505 of file Renderer.cpp.

dMatrix Renderer::GetGlobalTransform ( int  ID  ) 

Definition at line 517 of file Renderer.cpp.

dBoundingBox Renderer::GetBoundingBox ( int  ID  ) 

Definition at line 525 of file Renderer.cpp.

void Renderer::RenderPrimitive ( Primitive Prim  ) 

Immediate mode (don't delete prim till after Render() - when it will actually be rendered

Definition at line 512 of file Renderer.cpp.

int Renderer::Select ( int  x,
int  y,
int  size 

Get primitive ID from screen space.

Definition at line 422 of file Renderer.cpp.

int Renderer::AddLight ( Light l  ) 

Definition at line 393 of file Renderer.cpp.

Light * Renderer::GetLight ( int  id  ) 

Definition at line 400 of file Renderer.cpp.

void Renderer::ClearLights (  ) 

Definition at line 406 of file Renderer.cpp.

Camera* Fluxus::Renderer::GetCamera (  )  [inline]

Definition at line 113 of file Renderer.h.

const SceneGraph& Fluxus::Renderer::GetSceneGraph (  )  [inline]

Definition at line 119 of file Renderer.h.

void Renderer::DrawText ( const string &  Text  ) 

Definition at line 600 of file Renderer.cpp.

void Fluxus::Renderer::Reinitialise (  )  [inline]

Definition at line 128 of file Renderer.h.

void Fluxus::Renderer::SetMotionBlur ( bool  s,
float  a = 0.02 
) [inline]

Definition at line 129 of file Renderer.h.

void Fluxus::Renderer::SetResolution ( int  x,
int  y 
) [inline]

Definition at line 130 of file Renderer.h.

void Fluxus::Renderer::GetResolution ( int &  x,
int &  y 
) [inline]

Definition at line 131 of file Renderer.h.

void Fluxus::Renderer::InitTextures (  )  [inline]

Definition at line 132 of file Renderer.h.

unsigned int Fluxus::Renderer::LoadTexture ( const string &  Filename,
bool  ignorecache = false 
) [inline]

Definition at line 133 of file Renderer.h.

void Fluxus::Renderer::ShowAxis ( bool  s  )  [inline]

Definition at line 134 of file Renderer.h.

void Renderer::ShowCursor ( bool  s  ) 

Definition at line 619 of file Renderer.cpp.

void Fluxus::Renderer::SetBGColour ( const dColour s  )  [inline]

Definition at line 136 of file Renderer.h.

void Fluxus::Renderer::SetClearFrame ( bool  s  )  [inline]

Definition at line 137 of file Renderer.h.

void Fluxus::Renderer::SetClearZBuffer ( bool  s  )  [inline]

Definition at line 138 of file Renderer.h.

void Fluxus::Renderer::SetClearAccum ( bool  s  )  [inline]

Definition at line 139 of file Renderer.h.

void Fluxus::Renderer::SetBackFaceCull ( bool  s  )  [inline]

Definition at line 140 of file Renderer.h.

void Fluxus::Renderer::SetFaceOrderClockwise ( bool  s  )  [inline]

Default to ccw.

Definition at line 142 of file Renderer.h.

void Fluxus::Renderer::SetDesiredFPS ( float  s  )  [inline]

Definition at line 143 of file Renderer.h.

void Fluxus::Renderer::SetFPSDisplay ( bool  s  )  [inline]

Definition at line 144 of file Renderer.h.

void Fluxus::Renderer::SetFog ( const dColour c,
float  d,
float  s,
float  e 
) [inline]

Definition at line 145 of file Renderer.h.

void Fluxus::Renderer::ShadowLight ( unsigned int  s  )  [inline]

Definition at line 147 of file Renderer.h.

void Fluxus::Renderer::DebugShadows ( bool  s  )  [inline]

Definition at line 148 of file Renderer.h.

void Fluxus::Renderer::ShadowLength ( float  s  )  [inline]

Definition at line 149 of file Renderer.h.

double Fluxus::Renderer::GetTime (  )  [inline]

Definition at line 150 of file Renderer.h.

double Fluxus::Renderer::GetDelta (  )  [inline]

Definition at line 151 of file Renderer.h.

bool Renderer::SetStereoMode ( stereo_mode_t  mode  ) 

Definition at line 642 of file Renderer.cpp.

stereo_mode_t Fluxus::Renderer::GetStereoMode (  )  [inline]

Definition at line 153 of file Renderer.h.

void Renderer::SetColourMask ( bool  inred,
bool  ingreen,
bool  inblue,
bool  inalpha 

Definition at line 665 of file Renderer.cpp.

void Renderer::Accum ( int  mode,
float  factor 

Definition at line 673 of file Renderer.cpp.

void Renderer::DrawBuffer ( GLenum  mode  ) 

Definition at line 632 of file Renderer.cpp.

void Renderer::ReadBuffer ( GLenum  mode  ) 

Definition at line 637 of file Renderer.cpp.

The documentation for this class was generated from the following files:
Generated on Tue Sep 4 23:22:44 2007 for The Fluxus Renderer (libfluxus) by  doxygen 1.5.1