Fluxus::Renderer Class Reference

#include <Renderer.h>

Collaboration diagram for Fluxus::Renderer:

Collaboration graph
[legend]

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.
Lights
int AddLight (Light *l)
LightGetLight (int id)
void ClearLights ()
Camera
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)
TexturePainterGetTexturePainter ()
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

Enumerator:
noStereo 
crystalEyes 
colourStereo 

Definition at line 122 of file Renderer.h.


Constructor & Destructor Documentation

Renderer::Renderer (  ) 

Definition at line 43 of file Renderer.cpp.

Renderer::~Renderer (  ) 

Definition at line 79 of file Renderer.cpp.


Member Function Documentation

void Renderer::Render (  ) 

Definition at line 87 of file Renderer.cpp.

void Renderer::Clear (  ) 

Definition at line 476 of file Renderer.cpp.

State * Renderer::GetState (  ) 

Definition at line 539 of file Renderer.cpp.

void Renderer::ApplyState (  ) 

Definition at line 550 of file Renderer.cpp.

void Renderer::PushState (  ) 

Definition at line 555 of file Renderer.cpp.

void Renderer::PopState (  ) 

Definition at line 564 of file Renderer.cpp.

void Renderer::Grab ( int  ID  ) 

Grabs the object state and makes it current.

Definition at line 580 of file Renderer.cpp.

void Renderer::UnGrab (  ) 

Definition at line 593 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 485 of file Renderer.cpp.

Primitive * Renderer::GetPrimitive ( int  ID  ) 

Definition at line 492 of file Renderer.cpp.

void Renderer::RemovePrimitive ( int  ID  ) 

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

Definition at line 499 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 509 of file Renderer.cpp.

dMatrix Renderer::GetGlobalTransform ( int  ID  ) 

Definition at line 521 of file Renderer.cpp.

dBoundingBox Renderer::GetBoundingBox ( int  ID  ) 

Definition at line 529 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 516 of file Renderer.cpp.

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

Get primitive ID from screen space.

Definition at line 426 of file Renderer.cpp.

int Renderer::AddLight ( Light l  ) 

Definition at line 397 of file Renderer.cpp.

Light * Renderer::GetLight ( int  id  ) 

Definition at line 404 of file Renderer.cpp.

void Renderer::ClearLights (  ) 

Definition at line 410 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 604 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.

TexturePainter* Fluxus::Renderer::GetTexturePainter (  )  [inline]

Definition at line 132 of file Renderer.h.

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

Definition at line 133 of file Renderer.h.

void Renderer::ShowCursor ( bool  s  ) 

Definition at line 623 of file Renderer.cpp.

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

Definition at line 135 of file Renderer.h.

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

Definition at line 136 of file Renderer.h.

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

Definition at line 137 of file Renderer.h.

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

Definition at line 138 of file Renderer.h.

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

Definition at line 139 of file Renderer.h.

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

Default to ccw.

Definition at line 141 of file Renderer.h.

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

Definition at line 142 of file Renderer.h.

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

Definition at line 143 of file Renderer.h.

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

Definition at line 144 of file Renderer.h.

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

Definition at line 146 of file Renderer.h.

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

Definition at line 147 of file Renderer.h.

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

Definition at line 148 of file Renderer.h.

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

Definition at line 149 of file Renderer.h.

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

Definition at line 150 of file Renderer.h.

bool Renderer::SetStereoMode ( stereo_mode_t  mode  ) 

Definition at line 646 of file Renderer.cpp.

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

Definition at line 152 of file Renderer.h.

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

Definition at line 669 of file Renderer.cpp.

void Renderer::Accum ( int  mode,
float  factor 
)

Definition at line 677 of file Renderer.cpp.

void Renderer::DrawBuffer ( GLenum  mode  ) 

Definition at line 636 of file Renderer.cpp.

void Renderer::ReadBuffer ( GLenum  mode  ) 

Definition at line 641 of file Renderer.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Feb 11 06:54:51 2008 for The Fluxus Renderer (libfluxus) by  doxygen 1.5.1