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

## class csGraphics3DGlide2x : public IGraphics3D, public IHaloRasterizer

> the Glide implementation of the Graphics3D class.

## Inheritance:

### Private Fields

int board
  board selected

### Private Methods

void (*RenderPolygon)(GrVertex*, int, bool, TextureHandler*, TextureHandler*, bool)
  ptr to Rendering Function
STDMETHODIMP CacheTexture(IPolygonTexture *piPT)
  Give a texture to Graphics3D to cache it.
STDMETHODIMP ClearCache(void)
  Clear the texture cache.
STDMETHODIMP CreateInstance( REFIID riid, ISystem* piSystem, void** ppv )
  Create the graphics context
STDMETHODIMP DrawFltLight(G3DFltLight& light)
  Draw a projected floating light on the screen.
STDMETHODIMP DrawLine(csVector3& v1, csVector3& v2, float fov, int color)
  Draw a Line.
STDMETHODIMP DrawPolygonFX(G3DPolygonDPFX& poly)
  Draw a polygon with special effects.
STDMETHODIMP DumpCache(void)
  Dump the texture cache.
STDMETHODIMP FinishPolygonFX()
  Finish a series of DrawPolygonFX
STDMETHODIMP Get2dDriver(IGraphics2D** pG2D)
STDMETHODIMP GetCaps(G3D_CAPS *caps)
  Get the capabilities of this driver: NOT IMPLEMENTED.
STDMETHODIMP GetFogMode(G3D_FOGMETHOD& retval)
  Get the fog mode.
STDMETHODIMP GetHeight(int& nHeight)
STDMETHODIMP GetMaximumAspectRatio(int& ratio)
STDMETHODIMP GetRenderState(G3D_RENDERSTATEOPTION, long& nValue)
  Get a render state
STDMETHODIMP GetTextureManager(ITextureManager** pi)
  Get the ITextureManager.
STDMETHODIMP GetWidth(int& nWidth)
  Get the width
STDMETHODIMP GetZBufPoint(int, int, unsigned long** retval)
  Get a z-buffer point
void InitializeBoard(GrHwConfiguration &)
  Initialize Instance from Board Config
STDMETHODIMP LockServer(BOOL bLock)
  Lock or unlock from memory.
STDMETHODIMP NeedsPO2Maps(void)
STDMETHODIMP Print(csRect* rect)
  Print the screen.
static void RenderPolygonMultiPass(GrVertex*, int, bool, TextureHandler*, TextureHandler*, bool)
  Rendering Function with MultiPass (One TMU)
static void RenderPolygonSinglePass(GrVertex*, int, bool, TextureHandler*, TextureHandler*, bool)
  Rendering Function with SinglePass (Two (or more) TMUs)
int SelectBoard(GrHwConfiguration &)
  Select the board
STDMETHODIMP SetCamera( ICamera* pCamera )
  Set the camera object.
STDMETHODIMP SetFogMode(G3D_FOGMETHOD fogm)
  Get the fog mode.
STDMETHODIMP SetRenderState(G3D_RENDERSTATEOPTION op, long val)
  Set a renderstate boolean.
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.
STDMETHODIMP StartPolygonFX(ITextureHandle* handle, UInt mode)
  Start a series of DrawPolygonFX
STDMETHODIMP UncacheTexture(IPolygonTexture *piPT)
  Release a texture from the cache.

### Private

struct csG3DHardwareHaloInfo
  Our internal representation of halos.

## Documentation

> the Glide implementation of the Graphics3D class.

`STDMETHODIMP CreateInstance( REFIID riid, ISystem* piSystem, void** ppv )`
  Create the graphics context

`STDMETHODIMP LockServer(BOOL bLock)`
  Lock or unlock from memory.

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

`STDMETHODIMP StartPolygonFX(ITextureHandle* handle, UInt mode)`
  Start a series of DrawPolygonFX

`STDMETHODIMP FinishPolygonFX()`
  Finish a series of DrawPolygonFX

`STDMETHODIMP DrawPolygonFX(G3DPolygonDPFX& poly)`
  Draw a polygon with special effects.

`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 NeedsPO2Maps(void)`

`STDMETHODIMP GetMaximumAspectRatio(int& ratio)`

`STDMETHODIMP Get2dDriver(IGraphics2D** pG2D)`

`STDMETHODIMP GetTextureManager(ITextureManager** pi)`
  Get the ITextureManager.

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

`STDMETHODIMP GetFogMode(G3D_FOGMETHOD& retval)`
  Get the fog mode.

`STDMETHODIMP SetFogMode(G3D_FOGMETHOD fogm)`
  Get the fog mode.

`struct csG3DHardwareHaloInfo`
  Our internal representation of halos.

`class csHaloDrawer`
  Actually draws a halo the the screen.

  `csHaloDrawer(IGraphics2D* piG2D, float r, float g, float b)`

  `~csHaloDrawer()`

  `int mWidth`
    the width and height of the graphics context

  `IGraphics2D* mpiG2D`
    the 2D graphics context.

  `int mDim`
    the size to be drawn (the diameter of the halo)

  `float mRed`
    the color of the halo

  `float mRatioRed`
    the ratio of the color intensity vs the radius

  `int mx`
    the center coords.

  `unsigned long* mpBuffer`
    the buffer.

  `int mBufferWidth`
    the width of the buffer.

`int board`
  board selected

`int SelectBoard(GrHwConfiguration &)`
  Select the board

`void InitializeBoard(GrHwConfiguration &)`
  Initialize Instance from Board Config

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

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

`static void RenderPolygonSinglePass(GrVertex*, int, bool, TextureHandler*, TextureHandler*, bool)`
  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