Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RAS_OpenGLRasterizer Class Reference

3D rendering device context. More...

#include <RAS_OpenGLRasterizer.h>

Inheritance diagram for RAS_OpenGLRasterizer:

RAS_IRasterizer List of all members.

Public Types

enum  {
  KX_BOUNDINGBOX = 1, KX_WIREFRAME, KX_SOLID, KX_SHADED,
  KX_TEXTURED
}
enum  { KX_DEPTHMASK_ENABLED = 1, KX_DEPTHMASK_DISABLED }

Public Methods

 RAS_OpenGLRasterizer (RAS_ICanvas* canv)
virtual ~RAS_OpenGLRasterizer ()
virtual void SetDepthMask (int depthmask)
virtual void SetMaterial (const RAS_IPolyMaterial& mat)
virtual bool Init ()
virtual void Exit ()
virtual bool BeginFrame ()
virtual void EndFrame ()
virtual void SwapBuffers ()
virtual void IndexPrimitives ( const vecVertexArray& vertexarrays, const vecIndexArrays & indexarrays, int mode, class RAS_IPolyMaterial* polymat, class RAS_IRenderTools* rendertools)
virtual void SetProjectionMatrix (CMatrix4x4 & mat)
virtual void SetViewMatrix (CMatrix4x4 & mat,const MT_Vector3& campos)
virtual const MT_Point3& GetCameraPosition ()
virtual void LoadViewMatrix ()
virtual void SetFog (float start,float dist,float r,float g,float b)
virtual void DisplayFog ()
virtual void SetBackColor (float red,float green,float blue,float alpha)
virtual void SetDrawingMode (int drawingmode)
virtual int GetDrawingMode ()
virtual void EnableTextures (bool enable)
virtual void SetCullFace (bool enable)

Detailed Description

3D rendering device context.

Actually it's an OpenGL version, so later on will be renamed to RAS_OpenGLRasterizer.

Definition at line 19 of file RAS_OpenGLRasterizer.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
KX_BOUNDINGBOX  
KX_WIREFRAME  
KX_SOLID  
KX_SHADED  
KX_TEXTURED  

Definition at line 45 of file RAS_OpenGLRasterizer.h.

anonymous enum
 

Enumeration values:
KX_DEPTHMASK_ENABLED  
KX_DEPTHMASK_DISABLED  

Definition at line 53 of file RAS_OpenGLRasterizer.h.


Constructor & Destructor Documentation

RAS_OpenGLRasterizer::RAS_OpenGLRasterizer ( RAS_ICanvas * canvas )
 

Definition at line 22 of file RAS_OpenGLRasterizer.cpp.

RAS_OpenGLRasterizer::~RAS_OpenGLRasterizer ( ) [virtual]
 

Definition at line 32 of file RAS_OpenGLRasterizer.cpp.


Member Function Documentation

bool RAS_OpenGLRasterizer::BeginFrame ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 208 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::DisplayFog ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 160 of file RAS_OpenGLRasterizer.cpp.

Referenced by BeginFrame().

void RAS_OpenGLRasterizer::EnableTextures ( bool enable ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 605 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::EndFrame ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 264 of file RAS_OpenGLRasterizer.cpp.

Referenced by Exit().

void RAS_OpenGLRasterizer::Exit ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 182 of file RAS_OpenGLRasterizer.cpp.

const MT_Point3 & RAS_OpenGLRasterizer::GetCameraPosition ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 596 of file RAS_OpenGLRasterizer.cpp.

int RAS_OpenGLRasterizer::GetDrawingMode ( ) [inline, virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 80 of file RAS_OpenGLRasterizer.h.

void RAS_OpenGLRasterizer::IndexPrimitives ( const vecVertexArray & vertexarrays,
const vecIndexArrays & indexarrays,
int mode,
class RAS_IPolyMaterial * polymat,
class RAS_IRenderTools * rendertools ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 277 of file RAS_OpenGLRasterizer.cpp.

bool RAS_OpenGLRasterizer::Init ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 46 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::LoadViewMatrix ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 600 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetBackColor ( float red,
float green,
float blue,
float alpha ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 141 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetCullFace ( bool enable ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 613 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetDepthMask ( int depthmask ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 243 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetDrawingMode ( int drawingmode ) [inline, virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 79 of file RAS_OpenGLRasterizer.h.

void RAS_OpenGLRasterizer::SetFog ( float start,
float dist,
float r,
float g,
float b ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 150 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetMaterial ( const RAS_IPolyMaterial & mat ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 178 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetProjectionMatrix ( CMatrix4x4 & mat ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 580 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SetViewMatrix ( CMatrix4x4 & mat,
const MT_Vector3 & campos ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 588 of file RAS_OpenGLRasterizer.cpp.

void RAS_OpenGLRasterizer::SwapBuffers ( ) [virtual]
 

Reimplemented from RAS_IRasterizer.

Definition at line 269 of file RAS_OpenGLRasterizer.cpp.


The documentation for this class was generated from the following files:
Generated at Thu Feb 1 13:03:49 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000