In file libs/cs3d/glide3/g3dglide.h:

class csGraphics3DGlide3x : public IGraphics3D

the Glide implementation of the Graphics3D class.

Inheritance:


Public Methods

STDMETHODIMP BeginDraw(int DrawFlags)
Start a new frame.
STDMETHODIMP CacheTexture(IPolygonTexture *piPT)
Give a texture to Graphics3D to cache it.
STDMETHODIMP ClearCache(void)
Clear the texture cache.
STDMETHODIMP Close()
closes Glide.
csGraphics3DGlide3x(ISystem* piSystem)
The constructor. Pass all arguments to this.
STDMETHODIMP DrawFltLight(G3DFltLight& light)
Draw a projected floating light on the screen.
STDMETHODIMP DrawLine(csVector3& v1, csVector3& v2, int color)
Draw a Line.
STDMETHODIMP DrawPolygon(G3DPolygonDP& poly)
Draw the projected polygon with light and texture.
STDMETHODIMP DrawPolygonDebug(G3DPolygonDP& poly)
Draw debug poly
STDMETHODIMP DrawPolygonQuick(G3DPolygonDPQ& poly)
Draw a projected (non-perspective correct) polygon.
STDMETHODIMP DumpCache(void)
Dump the texture cache.
STDMETHODIMP FinishDraw()
End the frame and do a page swap.
STDMETHODIMP Get2dDriver(IGraphics2D** pG2D)
STDMETHODIMP GetCaps(G3D_CAPS *caps)
Get the capabilities of this driver: NOT IMPLEMENTED.
STDMETHODIMP GetHeight(int& nHeight)
STDMETHODIMP GetMaximumAspectRatio(int& ratio)
STDMETHODIMP GetRenderState(G3D_RENDERSTATEOPTION, long& nValue)
Get a render state
STDMETHODIMP GetWidth(int& nWidth)
Get the width
STDMETHODIMP GetZBufPoint(int, int, unsigned long** retval)
Get a z-buffer point
STDMETHODIMP NeedsPO2Maps(void)
STDMETHODIMP Open(char* Title)
opens Glide.
STDMETHODIMP Print(csRect* rect)
Print the screen.
STDMETHODIMP SetCamera( ICamera* pCamera )
Set the camera object.
STDMETHODIMP SetDimensions(int width, int height)
Change the dimensions of the display.
STDMETHODIMP SetRenderState(G3D_RENDERSTATEOPTION op, long val)
Set a renderstate boolean.
STDMETHODIMP SetWorld(IWorld* piWorld)
STDMETHODIMP SetZBufMode(G3DZBufMode mode)
Set the mode for the Z buffer (functionality also exists in SetRenderState).
STDMETHODIMP UncacheTexture(IPolygonTexture *piPT)
Release a texture from the cache.
~csGraphics3DGlide3x()
the destructor.

Private Fields

int board
board selected
GrContext_t grcontext
Graphic context
int iTMULightMap
Number of TMU for LightMap
int iTMUTexture
Number of TMU for TextureMap
bool m_bVRetrace
Wait Vertical Retrace
G3D_CAPS m_Caps
Capabilities of the renderer.
bool m_iMultiPass
Does require multipass rendering for lightmap (if TRUE, then there is only one TMU!)
int m_nDrawMode
The current drawing mode (2D/3D)
int m_nWidth
width 'n' height
ICamera* m_pCamera
The camera object.
IGraphics2D* m_piG2D
the 2d graphics driver.
ISystem* m_piSystem
The system driver
GlideLightmapCache* m_pLightmapCache
the lightmap cache.
GlideTextureCache* m_pTextureCache
the texture cache.
G3DZBufMode m_ZBufMode
The current read/write settings for the Z-buffer.
bool use16BitTexture
use 16 bit texture else 8 bit

Private Methods

void (*RenderPolygon)(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
ptr to Rendering Function
void InitializeBoard()
Initialize Instance from Board Config
static void RenderPolygonMultiPass(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
Rendering Function with MultiPass (One TMU)
static void RenderPolygonSinglePass(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
Rendering Function with SinglePass (Two (or more) TMUs)
int SelectBoard()
Select the board
inline void SetupPolygon( G3DPolygonDP& poly, float& J1, float& J2, float& J3, float& K1, float& K2, float& K3, float& M, float& N, float& O )
used to set up polygon geometry before rasterization.

Documentation

the Glide implementation of the Graphics3D class.
GlideTextureCache* m_pTextureCache
the texture cache.

GlideLightmapCache* m_pLightmapCache
the lightmap cache.

bool m_iMultiPass
Does require multipass rendering for lightmap (if TRUE, then there is only one TMU!)

int iTMUTexture
Number of TMU for TextureMap

int iTMULightMap
Number of TMU for LightMap

bool m_bVRetrace
Wait Vertical Retrace

G3DZBufMode m_ZBufMode
The current read/write settings for the Z-buffer.

int m_nDrawMode
The current drawing mode (2D/3D)

G3D_CAPS m_Caps
Capabilities of the renderer.

ICamera* m_pCamera
The camera object.

IGraphics2D* m_piG2D
the 2d graphics driver.

ISystem* m_piSystem
The system driver

int m_nWidth
width 'n' height

bool use16BitTexture
use 16 bit texture else 8 bit

csGraphics3DGlide3x(ISystem* piSystem)
The constructor. Pass all arguments to this.

~csGraphics3DGlide3x()
the destructor.

STDMETHODIMP Open(char* Title)
opens Glide.

STDMETHODIMP Close()
closes Glide.

STDMETHODIMP SetDimensions(int width, int height)
Change the dimensions of the display.

STDMETHODIMP BeginDraw(int DrawFlags)
Start a new frame.

STDMETHODIMP FinishDraw()
End the frame and do a page swap.

STDMETHODIMP SetZBufMode(G3DZBufMode mode)
Set the mode for the Z buffer (functionality also exists in SetRenderState).

STDMETHODIMP DrawPolygon(G3DPolygonDP& poly)
Draw the projected polygon with light and texture.

STDMETHODIMP DrawPolygonDebug(G3DPolygonDP& poly)
Draw debug poly

STDMETHODIMP DrawLine(csVector3& v1, csVector3& v2, int color)
Draw a Line.

STDMETHODIMP DrawPolygonQuick(G3DPolygonDPQ& poly)
Draw a projected (non-perspective correct) polygon.

STDMETHODIMP DrawFltLight(G3DFltLight& light)
Draw a projected floating light on the screen.

STDMETHODIMP CacheTexture(IPolygonTexture *piPT)
Give a texture to Graphics3D to cache it.

STDMETHODIMP UncacheTexture(IPolygonTexture *piPT)
Release a texture from the cache.

STDMETHODIMP DumpCache(void)
Dump the texture cache.

STDMETHODIMP ClearCache(void)
Clear the texture cache.

STDMETHODIMP Print(csRect* rect)
Print the screen.

STDMETHODIMP SetRenderState(G3D_RENDERSTATEOPTION op, long val)
Set a renderstate boolean.

STDMETHODIMP GetCaps(G3D_CAPS *caps)
Get the capabilities of this driver: NOT IMPLEMENTED.

STDMETHODIMP GetRenderState(G3D_RENDERSTATEOPTION, long& nValue)
Get a render state

STDMETHODIMP GetZBufPoint(int, int, unsigned long** retval)
Get a z-buffer point

STDMETHODIMP GetWidth(int& nWidth)
Get the width

STDMETHODIMP GetHeight(int& nHeight)

STDMETHODIMP SetWorld(IWorld* piWorld)

STDMETHODIMP NeedsPO2Maps(void)

STDMETHODIMP GetMaximumAspectRatio(int& ratio)

STDMETHODIMP Get2dDriver(IGraphics2D** pG2D)

STDMETHODIMP SetCamera( ICamera* pCamera )
Set the camera object.

int board
board selected

GrContext_t grcontext
Graphic context

int SelectBoard()
Select the board

void InitializeBoard()
Initialize Instance from Board Config

void (*RenderPolygon)(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
ptr to Rendering Function

static void RenderPolygonMultiPass(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
Rendering Function with MultiPass (One TMU)

static void RenderPolygonSinglePass(MyGrVertex*, int, bool, TextureHandler*, TextureHandler*)
Rendering Function with SinglePass (Two (or more) TMUs)

inline void SetupPolygon( G3DPolygonDP& poly, float& J1, float& J2, float& J3, float& K1, float& K2, float& K3, float& M, float& N, float& O )
used to set up polygon geometry before rasterization.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de