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

RAS_IRasterizer Class Reference

3D rendering device context interface. More...

#include <RAS_IRasterizer.h>

Inheritance diagram for RAS_IRasterizer:

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

Detailed Description

3D rendering device context interface.

Definition at line 16 of file RAS_IRasterizer.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
KX_BOUNDINGBOX  
KX_WIREFRAME  
KX_SOLID  
KX_SHADED  
KX_TEXTURED  

Definition at line 23 of file RAS_IRasterizer.h.

anonymous enum
 

Enumeration values:
KX_DEPTHMASK_ENABLED  
KX_DEPTHMASK_DISABLED  

Definition at line 31 of file RAS_IRasterizer.h.


Constructor & Destructor Documentation

RAS_IRasterizer::RAS_IRasterizer ( RAS_ICanvas * canv ) [inline]
 

Definition at line 21 of file RAS_IRasterizer.h.

RAS_IRasterizer::~RAS_IRasterizer ( ) [inline, virtual]
 

Definition at line 22 of file RAS_IRasterizer.h.


Member Function Documentation

virtual bool RAS_IRasterizer::BeginFrame ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by RAS_OpenGLRasterizer::BeginFrame(), and ExampleEngine::MainLoopCallback().

virtual void RAS_IRasterizer::DisplayFog ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

virtual void RAS_IRasterizer::EnableTextures ( bool enable ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_BlenderPolyMaterial::ActivateMaterial(), and KX_Renderbuckets().

virtual void RAS_IRasterizer::EndFrame ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by RAS_OpenGLRasterizer::EndFrame(), and ExampleEngine::MainLoopCallback().

virtual void RAS_IRasterizer::Exit ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_KetsjiEngine::Exit().

virtual const MT_Point3& RAS_IRasterizer::GetCameraPosition ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_BlenderRenderTools::applyTransform().

virtual int RAS_IRasterizer::GetDrawingMode ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_BlenderPolyMaterial::ActivateMaterial(), KX_Scene::CalculateVisibleMeshes(), CreateGameObject(), RAS_MaterialBucket::Render(), and RAS_MeshObject::SchedulePolygons().

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

Reimplemented in RAS_OpenGLRasterizer.

Referenced by RAS_MaterialBucket::Render().

virtual bool RAS_IRasterizer::Init ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by CreateRasterizer().

virtual void RAS_IRasterizer::LoadViewMatrix ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

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

Reimplemented in RAS_OpenGLRasterizer.

Referenced by CreateRasterizer().

virtual void RAS_IRasterizer::SetCullFace ( bool enable ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_BlenderPolyMaterial::ActivateMaterial().

virtual void RAS_IRasterizer::SetDepthMask ( int depthmask ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by KX_Renderbuckets().

virtual void RAS_IRasterizer::SetDrawingMode ( int drawingmode ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by CreateRasterizer().

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

Reimplemented in RAS_OpenGLRasterizer.

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

Reimplemented in RAS_OpenGLRasterizer.

virtual void RAS_IRasterizer::SetProjectionMatrix ( CMatrix4x4 & mat ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by ExampleEngine::MainLoopCallback().

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

Reimplemented in RAS_OpenGLRasterizer.

Referenced by ExampleEngine::MainLoopCallback().

virtual void RAS_IRasterizer::SwapBuffers ( ) [pure virtual]
 

Reimplemented in RAS_OpenGLRasterizer.

Referenced by ExampleEngine::MainLoopCallback(), and RAS_OpenGLRasterizer::SwapBuffers().


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