rRenderer Class Reference

#include <rRender.h>

Inheritance diagram for rRenderer:

Inheritance graph
[legend]

List of all members.

Public Types

enum  flag {
  BACKFACE_CULL = 0, ALPHA_BLEND, ALPHA_TEST, DEPTH_TEST,
  SMOOTH_SHADE, Z_OFFSET, FLAG_END
}

Public Member Functions

 rRenderer ()
virtual ~rRenderer ()
virtual void Vertex (REAL x, REAL y)=0
virtual void Vertex (REAL x, REAL y, REAL z)=0
virtual void Vertex3 (REAL *x)=0
virtual void Vertex (REAL x, REAL y, REAL z, REAL w)=0
virtual void TexCoord (REAL u, REAL v)=0
virtual void TexCoord (REAL u, REAL v, REAL w)=0
virtual void TexCoord (REAL u, REAL v, REAL w, REAL t)=0
virtual void TexVertex (REAL x, REAL y, REAL z, REAL u, REAL v)
virtual void Color (REAL r, REAL g, REAL b)=0
virtual void Color (REAL r, REAL g, REAL b, REAL a)=0
virtual void End (bool force=true)=0
virtual void BeginLines ()=0
virtual void BeginTriangles ()=0
virtual void BeginQuads ()=0
virtual void BeginLineStrip ()=0
virtual void BeginTriangleStrip ()=0
virtual void BeginQuadStrip ()=0
virtual void BeginTriangleFan ()=0
virtual void BeginLineLoop ()=0
virtual void Line (REAL x1, REAL y1, REAL z1, REAL x2, REAL y2, REAL z2)
virtual void ProjMatrix ()=0
virtual void ModelMatrix ()=0
virtual void TexMatrix ()=0
virtual void PushMatrix ()=0
virtual void PopMatrix ()=0
virtual void MultMatrix (REAL mdata[4][4])=0
virtual void IdentityMatrix ()=0
virtual void ScaleMatrix (REAL f)=0
virtual void ScaleMatrix (REAL f1, REAL f2, REAL f3)=0
virtual void TranslateMatrix (REAL x1, REAL x2, REAL x3)=0
void PushFlags ()
void PopFlags ()
void SetFlag (flag f, bool c)

Protected Member Functions

virtual void ReallySetFlag (flag f, bool c)=0
void ChangeFlags (int before, int after) const

Protected Attributes

int flagstack [STACK_DEPTH]
int stackpos


Detailed Description

Definition at line 40 of file rRender.h.


Member Enumeration Documentation

enum rRenderer::flag

Enumerator:
BACKFACE_CULL 
ALPHA_BLEND 
ALPHA_TEST 
DEPTH_TEST 
SMOOTH_SHADE 
Z_OFFSET 
FLAG_END 

Definition at line 92 of file rRender.h.


Constructor & Destructor Documentation

rRenderer::rRenderer (  ) 

Definition at line 37 of file rRender.cpp.

References flagstack, STACK_DEPTH, and stackpos.

00037                     {
00038     renderer = this;
00039 
00040     // Clear the flag stack
00041 
00042     int i;
00043 
00044     stackpos = 0;
00045 
00046     for (i = STACK_DEPTH-1; i>=0; i--)
00047         flagstack[i] = 0;
00048 }

rRenderer::~rRenderer (  )  [virtual]

Definition at line 50 of file rRender.cpp.

00050                      {
00051     if (renderer == this)
00052         renderer = 0;
00053 }


Member Function Documentation

virtual void rRenderer::Vertex ( REAL  x,
REAL  y 
) [pure virtual]

Implemented in glRenderer.

Referenced by Line(), TexVertex(), and Vertex().

Here is the caller graph for this function:

virtual void rRenderer::Vertex ( REAL  x,
REAL  y,
REAL  z 
) [pure virtual]

Implemented in glRenderer.

virtual void rRenderer::Vertex3 ( REAL x  )  [pure virtual]

Implemented in glRenderer.

Referenced by Vertex3().

Here is the caller graph for this function:

virtual void rRenderer::Vertex ( REAL  x,
REAL  y,
REAL  z,
REAL  w 
) [pure virtual]

Implemented in glRenderer.

virtual void rRenderer::TexCoord ( REAL  u,
REAL  v 
) [pure virtual]

Implemented in glRenderer.

Referenced by TexCoord(), and TexVertex().

Here is the caller graph for this function:

virtual void rRenderer::TexCoord ( REAL  u,
REAL  v,
REAL  w 
) [pure virtual]

Implemented in glRenderer.

virtual void rRenderer::TexCoord ( REAL  u,
REAL  v,
REAL  w,
REAL  t 
) [pure virtual]

Implemented in glRenderer.

void rRenderer::TexVertex ( REAL  x,
REAL  y,
REAL  z,
REAL  u,
REAL  v 
) [virtual]

Reimplemented in glRenderer.

Definition at line 55 of file rRender.cpp.

References TexCoord(), and Vertex().

Referenced by TexVertex().

00056                                          {
00057     TexCoord(u,v);
00058     Vertex(x,y,z);
00059 }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void rRenderer::Color ( REAL  r,
REAL  g,
REAL  b 
) [pure virtual]

Implemented in glRenderer.

Referenced by Color(), and gFloor::glFloorColor().

Here is the caller graph for this function:

virtual void rRenderer::Color ( REAL  r,
REAL  g,
REAL  b,
REAL  a 
) [pure virtual]

Implemented in glRenderer.

virtual void rRenderer::End ( bool  force = true  )  [pure virtual]

Implemented in glRenderer.

Referenced by RenderEnd().

Here is the caller graph for this function:

virtual void rRenderer::BeginLines (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginLines(), and Line().

Here is the caller graph for this function:

virtual void rRenderer::BeginTriangles (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginTriangles().

Here is the caller graph for this function:

virtual void rRenderer::BeginQuads (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginQuads().

Here is the caller graph for this function:

virtual void rRenderer::BeginLineStrip (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginLineStrip().

Here is the caller graph for this function:

virtual void rRenderer::BeginTriangleStrip (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginTriangleStrip().

Here is the caller graph for this function:

virtual void rRenderer::BeginQuadStrip (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginQuadStrip().

Here is the caller graph for this function:

virtual void rRenderer::BeginTriangleFan (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginTriangleFan().

Here is the caller graph for this function:

virtual void rRenderer::BeginLineLoop (  )  [pure virtual]

Implemented in glRenderer.

Referenced by BeginLineLoop().

Here is the caller graph for this function:

void rRenderer::Line ( REAL  x1,
REAL  y1,
REAL  z1,
REAL  x2,
REAL  y2,
REAL  z2 
) [virtual]

Reimplemented in glRenderer.

Definition at line 61 of file rRender.cpp.

References BeginLines(), and Vertex().

Referenced by Line().

00062                                                {
00063     BeginLines();
00064     Vertex(x1,y1,z1);
00065     Vertex(x2,y2,z2);
00066 }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void rRenderer::ProjMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by ProjMatrix().

Here is the caller graph for this function:

virtual void rRenderer::ModelMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by ModelMatrix().

Here is the caller graph for this function:

virtual void rRenderer::TexMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by TexMatrix().

Here is the caller graph for this function:

virtual void rRenderer::PushMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by PushMatrix().

Here is the caller graph for this function:

virtual void rRenderer::PopMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by PopMatrix().

Here is the caller graph for this function:

virtual void rRenderer::MultMatrix ( REAL  mdata[4][4]  )  [pure virtual]

Implemented in glRenderer.

Referenced by MultMatrix().

Here is the caller graph for this function:

virtual void rRenderer::IdentityMatrix (  )  [pure virtual]

Implemented in glRenderer.

Referenced by IdentityMatrix().

Here is the caller graph for this function:

virtual void rRenderer::ScaleMatrix ( REAL  f  )  [pure virtual]

Implemented in glRenderer.

Referenced by ScaleMatrix().

Here is the caller graph for this function:

virtual void rRenderer::ScaleMatrix ( REAL  f1,
REAL  f2,
REAL  f3 
) [pure virtual]

Implemented in glRenderer.

virtual void rRenderer::TranslateMatrix ( REAL  x1,
REAL  x2,
REAL  x3 
) [pure virtual]

Implemented in glRenderer.

Referenced by TranslateMatrix().

Here is the caller graph for this function:

void rRenderer::PushFlags (  ) 

void rRenderer::PopFlags (  ) 

void rRenderer::SetFlag ( flag  f,
bool  c 
)

Definition at line 68 of file rRender.cpp.

References ReallySetFlag().

Referenced by gLogo::Display().

00069 {
00070     ReallySetFlag(f, c);
00071 }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void rRenderer::ReallySetFlag ( flag  f,
bool  c 
) [protected, pure virtual]

Implemented in glRenderer.

Referenced by SetFlag().

Here is the caller graph for this function:

void rRenderer::ChangeFlags ( int  before,
int  after 
) const [protected]

Definition at line 74 of file rRender.cpp.

Referenced by glRenderer::glRenderer().

00074                                                       {
00075 
00076 }

Here is the caller graph for this function:


Member Data Documentation

int rRenderer::flagstack[STACK_DEPTH] [protected]

Definition at line 106 of file rRender.h.

Referenced by rRenderer().

int rRenderer::stackpos [protected]

Definition at line 107 of file rRender.h.

Referenced by rRenderer().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:53:36 2008 for Armagetron Advanced by  doxygen 1.5.4