#include <rRender.h>
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 |
Definition at line 40 of file rRender.h.
enum rRenderer::flag |
Definition at line 92 of file rRender.h.
00092 {BACKFACE_CULL=0, ALPHA_BLEND, ALPHA_TEST, DEPTH_TEST, 00093 SMOOTH_SHADE, Z_OFFSET, 00094 FLAG_END} flag;
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] |
Implemented in glRenderer.
Referenced by Line(), TexVertex(), and Vertex().
Implemented in glRenderer.
virtual void rRenderer::Vertex3 | ( | REAL * | x | ) | [pure virtual] |
Implemented in glRenderer.
Implemented in glRenderer.
Referenced by TexCoord(), and TexVertex().
Implemented in glRenderer.
Implemented in glRenderer.
Reimplemented in glRenderer.
Definition at line 55 of file rRender.cpp.
References TexCoord(), and Vertex().
Referenced by TexVertex().
Implemented in glRenderer.
Referenced by Color(), and gFloor::glFloorColor().
Implemented in glRenderer.
virtual void rRenderer::End | ( | bool | force = true |
) | [pure virtual] |
virtual void rRenderer::BeginLines | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginLines(), and Line().
virtual void rRenderer::BeginTriangles | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginTriangles().
virtual void rRenderer::BeginQuads | ( | ) | [pure virtual] |
virtual void rRenderer::BeginLineStrip | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginLineStrip().
virtual void rRenderer::BeginTriangleStrip | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginTriangleStrip().
virtual void rRenderer::BeginQuadStrip | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginQuadStrip().
virtual void rRenderer::BeginTriangleFan | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginTriangleFan().
virtual void rRenderer::BeginLineLoop | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by BeginLineLoop().
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 }
virtual void rRenderer::ProjMatrix | ( | ) | [pure virtual] |
virtual void rRenderer::ModelMatrix | ( | ) | [pure virtual] |
virtual void rRenderer::TexMatrix | ( | ) | [pure virtual] |
virtual void rRenderer::PushMatrix | ( | ) | [pure virtual] |
virtual void rRenderer::PopMatrix | ( | ) | [pure virtual] |
virtual void rRenderer::MultMatrix | ( | REAL | mdata[4][4] | ) | [pure virtual] |
virtual void rRenderer::IdentityMatrix | ( | ) | [pure virtual] |
Implemented in glRenderer.
Referenced by IdentityMatrix().
virtual void rRenderer::ScaleMatrix | ( | REAL | f | ) | [pure virtual] |
Implemented in glRenderer.
Implemented in glRenderer.
Referenced by TranslateMatrix().
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 }
virtual void rRenderer::ReallySetFlag | ( | flag | f, | |
bool | c | |||
) | [protected, pure virtual] |
void rRenderer::ChangeFlags | ( | int | before, | |
int | after | |||
) | const [protected] |
Definition at line 74 of file rRender.cpp.
Referenced by glRenderer::glRenderer().
int rRenderer::flagstack[STACK_DEPTH] [protected] |
int rRenderer::stackpos [protected] |