MercuryDisplaySoftwareC Class Reference

#include <MercuryDisplaySoftwareC.h>

Inheritance diagram for MercuryDisplaySoftwareC:

Inheritance graph
[legend]
Collaboration diagram for MercuryDisplaySoftwareC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryDisplaySoftwareC ()
virtual bool BeginFrame ()
virtual bool EndFrame ()
virtual bool MakeWindow (const char *title, int width, int height, int bits, bool fullscreenflag)
 Tell the display system to make its window.
virtual void RendererInfo ()
 Resize window to a given height/width.
virtual void DrawParticleField (const MercuryParticleField *field)
virtual void DrawMesh (const MercuryMesh &mesh)
virtual void DrawMeshVBO (const MercuryMesh &mesh)
virtual void DrawSprite (const MercuryMesh &sprite)
virtual void GenerateVBO (MercuryMesh &mesh)
virtual void DestroyVBO (MercuryMesh &mesh)
virtual void SetMaterial (const MercuryMaterial *material)
 Set a material to draw with.
virtual void ClearZBuffer ()
 Flush the Zbuffer.
virtual void ClearFrameBuffer ()
virtual void BeginRenderToDynamicTexture (MercuryTexture *texture)
virtual void EndRenderToDynamicTexture ()
virtual void BeginRenderToDynamicCubeTexture (MercuryTexture *texture, unsigned int face)
virtual void EndRenderToDynamicCubeTexture ()
virtual void DeleteTextures (int n, unsigned int *textureNames)
virtual void UpdateTextureData (MercuryTexture *texture, unsigned int &ID)
virtual void CreateCache (MercuryTexture *texture, unsigned int &ID)
virtual void CreateCache (RawImageData *data, unsigned int &ID)
virtual void EnablePixelshader ()
virtual void DisablePixelshader ()
virtual void EnableAllLighting ()
virtual void DisableAllLighting ()
virtual void EnableDepthTest ()
virtual void DisableDepthTest ()
virtual void EnableTextures (MercuryMaterial *material)
virtual void ToggleTextureUse (bool toggle)
virtual void EnableShaders (MercuryMaterial *material)
virtual void ErrorCheck ()
virtual void EnableLights ()
virtual void ProcessStaticLights ()
virtual void DisableLights ()
virtual void ReadFrameBuffer (RawImageData &image)
virtual void SendMatrixData (const MercuryMatrix &m)
virtual void SendProjectionMatrixData ()
virtual void ToggleZBufferWrite (bool toggle)
virtual void ToggleColorMask (bool toggle)
virtual void ToggleStencilBufferWrite (bool toggle)
virtual void StencilOp (STENCILOPS fail, STENCILOPS zfail, STENCILOPS zpass)
virtual void CullBackface (bool toggle)
virtual void StencilFunc (TFUNCT func, int ref, unsigned int zref)
virtual void DisableOldLights ()
virtual void RenderTranslucentObject ()
virtual void DefineClippingPlanes (const MVector< MQuaternion > &planes)
virtual void RenderText (const MercuryText &text)

Protected Member Functions

virtual void InternalPipelinePoint (const MercuryPoint &pIn, InternalPoint &pOut)
virtual void InternalDrawPoly (const InternalPoint *points, int verts=3, int mode=0)

Protected Attributes

MVector< InternalTexturem_InternalTextures
InternalTexturem_pCurTexture
const MercuryTexturem_pCurMercuryTexture
MercuryMaterial m_pCurMaterial
MercuryMatrix mFinal
bool bDepthTest

Static Protected Attributes

static int m_width
static int m_height
static int m_bypp
static bool m_zBufferWrite
static unsigned char * m_cBuffer
static unsigned int * m_zBuffer

Private Member Functions

virtual void ProcessLightsInternal (const MercuryLight *light[3], unsigned int index)

Classes

struct  InternalPoint
struct  InternalTexture

Detailed Description

Definition at line 12 of file MercuryDisplaySoftwareC.h.


Constructor & Destructor Documentation

MercuryDisplaySoftwareC::MercuryDisplaySoftwareC (  ) 

Definition at line 11 of file MercuryDisplaySoftwareC.cpp.


Member Function Documentation

virtual bool MercuryDisplaySoftwareC::BeginFrame (  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 16 of file MercuryDisplaySoftwareC.h.

bool MercuryDisplaySoftwareC::EndFrame (  )  [virtual]

Implements MercuryDisplay.

Definition at line 25 of file MercuryDisplaySoftwareC.cpp.

bool MercuryDisplaySoftwareC::MakeWindow ( const char *  title,
int  width,
int  height,
int  bits,
bool  fullscreenflag 
) [virtual]

Tell the display system to make its window.

Reimplemented from MercuryDisplay.

Definition at line 37 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::RendererInfo (  )  [inline, virtual]

Resize window to a given height/width.

Implements MercuryDisplay.

Definition at line 20 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DrawParticleField ( const MercuryParticleField field  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 22 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::DrawMesh ( const MercuryMesh mesh  )  [virtual]

Implements MercuryDisplay.

Definition at line 71 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::DrawMeshVBO ( const MercuryMesh mesh  )  [inline, virtual]

Definition at line 24 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DrawSprite ( const MercuryMesh sprite  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 25 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::GenerateVBO ( MercuryMesh mesh  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 26 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DestroyVBO ( MercuryMesh mesh  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 27 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::SetMaterial ( const MercuryMaterial material  )  [virtual]

Set a material to draw with.

Implements MercuryDisplay.

Definition at line 107 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::ClearZBuffer (  )  [virtual]

Flush the Zbuffer.

Implements MercuryDisplay.

Definition at line 115 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::ClearFrameBuffer (  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 31 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::BeginRenderToDynamicTexture ( MercuryTexture texture  )  [inline, virtual]

Definition at line 32 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EndRenderToDynamicTexture (  )  [inline, virtual]

Definition at line 33 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::BeginRenderToDynamicCubeTexture ( MercuryTexture texture,
unsigned int  face 
) [inline, virtual]

Definition at line 34 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EndRenderToDynamicCubeTexture (  )  [inline, virtual]

Definition at line 35 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::DeleteTextures ( int  n,
unsigned int *  textureNames 
) [virtual]

Implements MercuryDisplay.

Definition at line 65 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::UpdateTextureData ( MercuryTexture texture,
unsigned int &  ID 
) [virtual]

Implements MercuryDisplay.

Definition at line 120 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::CreateCache ( MercuryTexture texture,
unsigned int &  ID 
) [virtual]

Definition at line 125 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::CreateCache ( RawImageData data,
unsigned int &  ID 
) [virtual]

Implements MercuryDisplay.

Definition at line 149 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::EnablePixelshader (  )  [inline, virtual]

Definition at line 43 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DisablePixelshader (  )  [inline, virtual]

Definition at line 44 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EnableAllLighting (  )  [inline, virtual]

Definition at line 46 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DisableAllLighting (  )  [inline, virtual]

Definition at line 47 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EnableDepthTest (  )  [inline, virtual]

Definition at line 49 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DisableDepthTest (  )  [inline, virtual]

Definition at line 50 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::EnableTextures ( MercuryMaterial material  )  [virtual]

Implements MercuryDisplay.

Definition at line 173 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::ToggleTextureUse ( bool  toggle  )  [inline, virtual]

Definition at line 53 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EnableShaders ( MercuryMaterial material  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 54 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::ErrorCheck (  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 56 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::EnableLights (  )  [inline, virtual]

Definition at line 57 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::ProcessStaticLights (  )  [inline, virtual]

Definition at line 58 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DisableLights (  )  [inline, virtual]

Definition at line 59 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::ReadFrameBuffer ( RawImageData image  )  [virtual]

Implements MercuryDisplay.

Definition at line 191 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::SendMatrixData ( const MercuryMatrix m  )  [virtual]

Implements MercuryDisplay.

Definition at line 577 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::SendProjectionMatrixData (  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 63 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::ToggleZBufferWrite ( bool  toggle  )  [inline, virtual]

Definition at line 65 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::ToggleColorMask ( bool  toggle  )  [inline, virtual]

Definition at line 66 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::ToggleStencilBufferWrite ( bool  toggle  )  [inline, virtual]

Definition at line 67 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::StencilOp ( STENCILOPS  fail,
STENCILOPS  zfail,
STENCILOPS  zpass 
) [inline, virtual]

Implements MercuryDisplay.

Definition at line 68 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::CullBackface ( bool  toggle  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 69 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::StencilFunc ( TFUNCT  func,
int  ref,
unsigned int  zref 
) [inline, virtual]

Implements MercuryDisplay.

Definition at line 70 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DisableOldLights (  )  [inline, virtual]

Definition at line 72 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::RenderTranslucentObject (  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 74 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::DefineClippingPlanes ( const MVector< MQuaternion > &  planes  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 75 of file MercuryDisplaySoftwareC.h.

virtual void MercuryDisplaySoftwareC::RenderText ( const MercuryText text  )  [inline, virtual]

Implements MercuryDisplay.

Definition at line 77 of file MercuryDisplaySoftwareC.h.

void MercuryDisplaySoftwareC::InternalPipelinePoint ( const MercuryPoint pIn,
InternalPoint pOut 
) [protected, virtual]

Definition at line 216 of file MercuryDisplaySoftwareC.cpp.

void MercuryDisplaySoftwareC::InternalDrawPoly ( const InternalPoint points,
int  verts = 3,
int  mode = 0 
) [protected, virtual]

Definition at line 317 of file MercuryDisplaySoftwareC.cpp.

virtual void MercuryDisplaySoftwareC::ProcessLightsInternal ( const MercuryLight light[3],
unsigned int  index 
) [inline, private, virtual]

Implements MercuryDisplay.

Definition at line 118 of file MercuryDisplaySoftwareC.h.


Member Data Documentation

MVector< InternalTexture > MercuryDisplaySoftwareC::m_InternalTextures [protected]

Definition at line 91 of file MercuryDisplaySoftwareC.h.

InternalTexture* MercuryDisplaySoftwareC::m_pCurTexture [protected]

Definition at line 92 of file MercuryDisplaySoftwareC.h.

const MercuryTexture* MercuryDisplaySoftwareC::m_pCurMercuryTexture [protected]

Definition at line 93 of file MercuryDisplaySoftwareC.h.

MercuryMaterial MercuryDisplaySoftwareC::m_pCurMaterial [protected]

Definition at line 94 of file MercuryDisplaySoftwareC.h.

MercuryMatrix MercuryDisplaySoftwareC::mFinal [protected]

Definition at line 104 of file MercuryDisplaySoftwareC.h.

bool MercuryDisplaySoftwareC::bDepthTest [protected]

Definition at line 109 of file MercuryDisplaySoftwareC.h.

int MercuryDisplaySoftwareC::m_width [static, protected]

Definition at line 110 of file MercuryDisplaySoftwareC.h.

int MercuryDisplaySoftwareC::m_height [static, protected]

Definition at line 111 of file MercuryDisplaySoftwareC.h.

int MercuryDisplaySoftwareC::m_bypp [static, protected]

Definition at line 112 of file MercuryDisplaySoftwareC.h.

bool MercuryDisplaySoftwareC::m_zBufferWrite [static, protected]

Definition at line 113 of file MercuryDisplaySoftwareC.h.

unsigned char * MercuryDisplaySoftwareC::m_cBuffer [static, protected]

Definition at line 114 of file MercuryDisplaySoftwareC.h.

unsigned int * MercuryDisplaySoftwareC::m_zBuffer [static, protected]

Definition at line 115 of file MercuryDisplaySoftwareC.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo