BurgerLib
Classes | Namespaces | Defines | Typedefs | Functions | Variables
grgraphics.h File Reference
#include "brtypes.h"
Include dependency graph for grgraphics.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  LWShape_t
struct  LWXShape_t
struct  GfxShape_t
struct  VideoMode_t
struct  VideoModeArray_t
struct  VideoDeviceArray_t
struct  VideoSaveState_t
struct  GammaTable_t

Namespaces

namespace  Burger

Defines

#define BLACK   255
#define WHITE   0
#define SETDISPLAYWINDOW   0x0 /* Best for debugging */
#define SETDISPLAYFULLSCREEN   0x1 /* True if full screen */
#define SETDISPLAYOFFSCREEN   0x2 /* True if I force system memory video page */
#define SETDISPLAYDOUBLEOK   0x4 /* True if I can allow pixel doubling for 320x200 */
#define SETDISPLAYOPENGL   0x8 /* True if 3D hardware is requested (Check Video3DPreference for API override) */
#define SETDISPLAYD3D   0x10 /* True if 3D hardware is requested (Check Video3DPreference for API override) */
#define SETDISPLAYNOWINDOWTWIDDLE   0x20 /* Don't change any of my window settings for me */
#define VIDEOMODEOPENGL   0x01 /* OpenGL is supported in this mode */
#define VIDEOMODEHARDWARE   0x02 /* DirectX or other native support */
#define VIDEOMODEFAKE   0x04 /* This is a pixel double mode */
#define VIDEOAPISOFTWARE   0
#define VIDEOAPIOPENGL   1
#define VIDEOAPIDIRECT3D   2
#define VIDEOAPIDIRECTDRAW   3
#define VIDEOMODEGETNOFAKE   0x0100 /* Don't allow pixel double modes */
#define VIDEOTEXTURETYPE555   0x0001
#define VIDEOTEXTURETYPE565   0x0002
#define VIDEOTEXTURETYPE4444   0x0004
#define VIDEOTEXTURETYPE1555   0x0008
#define VIDEOTEXTURETYPE8PAL   0x0010
#define VIDEOTEXTURETYPE888   0x0020
#define VIDEOTEXTURETYPE8888   0x0040
#define VIDEOTEXTURESQUARE   0x0001 /* 3D Textures MUST be square */
#define VIDEOTEXTUREPOW2   0x0002 /* 3D Textures MUST be a power of 2 in size */
#define VIDEOTEXTURESYSTEMMEMORY   0x0004 /* Textures can exist in system memory (AGP) */
#define SetNewVideoWidth(x)   VideoWidth=x
#define VideoModeArrayDelete(x)   DeallocAHandle((void **)x)
#define GetShapeWidth(ShapePtr)   (((LWShape_t *)ShapePtr)->Width)
#define GetShapeHeight(ShapePtr)   (((LWShape_t *)ShapePtr)->Height)
#define GetXShapeXOffset(ShapePtr)   (((LWXShape_t *)ShapePtr)->XOffset)
#define GetXShapeYOffset(ShapePtr)   (((LWXShape_t *)ShapePtr)->YOffset)
#define GetXShapeWidth(ShapePtr)   (((LWXShape_t *)ShapePtr)->Shape.Width)
#define GetXShapeHeight(ShapePtr)   (((LWXShape_t *)ShapePtr)->Shape.Height)
#define GetShapeIndexPtr(ShapeArrayPtr, Index)   (&((Word8 *)ShapeArrayPtr)[((Word32 *)ShapeArrayPtr)[Index]])
#define DrawShape(x, y, p)   DrawShapeLowLevel(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,((LWShape_t *)p)->Data)
#define DrawShapeClipped(x, y, p)   DrawShapeLowLevelClipped(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawShape(x, y, w, h, p)   DrawShapeLowLevel(x,y,w,h,0,p)
#define DrawRawShapeClipped(x, y, w, h, p)   DrawShapeLowLevelClipped(x,y,w,h,0,p)
#define DrawXShape(x, y, p)
#define DrawXShapeClipped(x, y, p)
#define DrawMShape(x, y, p)   DrawMShapeLowLevel(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,((LWShape_t *)p)->Data)
#define DrawMShapeClipped(x, y, p)   DrawMShapeLowLevelClipped(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawMShape(x, y, w, h, p)   DrawMShapeLowLevel(x,y,w,h,0,p)
#define DrawRawMShapeClipped(x, y, w, h, p)   DrawMShapeLowLevelClipped(x,y,w,h,0,p)
#define DrawXMShape(x, y, p)
#define DrawXMShapeClipped(x, y, p)
#define DrawShapeLowLevel16(x, y, w, h, s, p)   DrawShapeLowLevel(x*2,y,w*2,h,s,p)
#define DrawShape16(x, y, p)   DrawShapeLowLevel16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeClipped16(x, y, p)   DrawShapeLowLevelClipped16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawShape16(x, y, w, h, p)   DrawShapeLowLevel16(x,y,w,h,0,p)
#define DrawRawShapeClipped16(x, y, w, h, p)   DrawShapeLowLevelClipped16(x,y,w,h,0,p)
#define DrawXShape16(x, y, p)
#define DrawXShapeClipped16(x, y, p)
#define DrawMShape16(x, y, p)   DrawMShapeLowLevel16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeClipped16(x, y, p)   DrawMShapeLowLevelClipped16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawMShape16(x, y, w, h, p)   DrawMShapeLowLevel16(x,y,w,h,0,p)
#define DrawRawMShapeClipped16(x, y, w, h, p)   DrawMShapeLowLevelClipped16(x,y,w,h,0,p)
#define DrawXMShape16(x, y, p)
#define DrawXMShapeClipped16(x, y, p)
#define DrawShapeTo16(x, y, p)   DrawShapeLowLevelTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeClippedTo16(x, y, p)   DrawShapeLowLevelClippedTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawShapeTo16(x, y, w, h, p)   DrawShapeLowLevelTo16(x,y,w,h,0,p)
#define DrawRawShapeClippedTo16(x, y, w, h, p)   DrawShapeLowLevelClippedTo16(x,y,w,h,0,p)
#define DrawXShapeTo16(x, y, p)
#define DrawXShapeClippedTo16(x, y, p)
#define DrawMShapeTo16(x, y, p)   DrawMShapeLowLevelTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeClippedTo16(x, y, p)   DrawMShapeLowLevelClippedTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawMShapeTo16(x, y, w, h, p)   DrawMShapeLowLevelTo16(x,y,w,h,0,p)
#define DrawRawMShapeClippedTo16(x, y, w, h, p)   DrawMShapeLowLevelClippedTo16(x,y,w,h,0,p)
#define DrawXMShapeTo16(x, y, p)
#define DrawXMShapeClippedTo16(x, y, p)
#define DrawARectDirectX16   DrawARectDirectX
#define STORE_OP_CONST(a, b, c, p)   ((Word32 *)p)[0] = (((Word32)a) + (((Word32)b)<<8) + (((Word32)c)<<16)); p =p+4;
#define STORE_OP(a, b, c, p)   ((D3DINSTRUCTION*)p)->bOpcode = (Word8)a; ((D3DINSTRUCTION*)p)->bSize = (Word8)b; ((D3DINSTRUCTION*)p)->wCount = (Word16)c; p = p+4;
#define STORE_OP_RENDERSTATE_CONST(a, p)   ((Word32 *)p)[0] = ((Word32)D3DOP_STATERENDER + (((Word32)sizeof(D3DSTATE))<<8) + (((Word32)a)<<16)); p = p+4;
#define STORE_OP_RENDERSTATE(a, p)   ((Word16 *)p)[0] = (((Word16)D3DOP_STATERENDER) + ((Word16)sizeof(D3DSTATE)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_PROCESSVERTICES_CONST(a, p)   ((Word32 *)p)[0] = ((Word32)D3DOP_PROCESSVERTICES + (((Word32)sizeof(D3DPROCESSVERTICES))<<8) + (((Word32)a)<<16)); p = p+4;
#define STORE_OP_PROCESSVERTICES(a, p)   ((Word16 *)p)[0] = (((Word16)D3DOP_PROCESSVERTICES) + ((Word16)sizeof(D3DPROCESSVERTICES)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_TRIANGLE_CONST(a, p)   ((Word32 *)p)[0] = ((Word32)D3DOP_TRIANGLE + (((Word32)sizeof(D3DTRIANGLE))<<8) + (((Word32)a)<<16)); p = p+4;
#define STORE_OP_TRIANGLE(a, p)   ((Word16 *)p)[0] = (((Word16)D3DOP_TRIANGLE) + ((Word16)sizeof(D3DTRIANGLE)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_EXIT(p)   ((Word32 *)p)[0] = (Word32)D3DOP_EXIT; p = ((Word8 *)p+4);
#define STORE_DATA_STATE(a, b, p)   ((D3DSTATE *)p)->drstRenderStateType = (D3DRENDERSTATETYPE)a; ((D3DSTATE *)p)->dwArg[0] = b; p = p+8;
#define STORE_DATA_PROCESSVERTICES(flgs, strt, cnt, p)   ((D3DPROCESSVERTICES *)p)->dwFlags = flgs; ((D3DPROCESSVERTICES *)p)->wStart = (Word16)strt; ((D3DPROCESSVERTICES *)p)->wDest = (Word16)strt; ((D3DPROCESSVERTICES *)p)->dwCount = cnt; ((D3DPROCESSVERTICES *)p)->dwReserved = 0; p = p+16;
#define STORE_DATA_TRIANGLE(a, b, c, p)   ((D3DTRIANGLE *)p)->v1 = (Word16)(a); ((D3DTRIANGLE *)p)->v2 = (Word16)(b); ((D3DTRIANGLE *)p)->v3 = (Word16)(c); ((D3DTRIANGLE *)p)->wFlags = D3DTRIFLAG_EDGEENABLETRIANGLE; p = p + 8;
#define MAXD3DINSTRUCTIONS   1024 /* Maximum number of D3D instructions to queue */

Typedefs

typedef struct LWShape_t LWShape_t
typedef struct LWXShape_t LWXShape_t
typedef struct GfxShape_t GfxShape_t
typedef struct VideoMode_t VideoMode_t
typedef struct VideoModeArray_t VideoModeArray_t
typedef struct VideoDeviceArray_t VideoDeviceArray_t
typedef struct VideoSaveState_t VideoSaveState_t
typedef struct GammaTable_t GammaTable_t
typedef void(BURGER_APIDrawARectProc )(int x, int y, Word Width, Word Height, Word Color)
typedef void(BURGER_APIDrawALineProc )(int x1, int y1, int x2, int y2, Word Color)
typedef void(BURGER_APIDrawAPixelProc )(int x, int y, Word Color)
typedef void(BURGER_APIDrawARectRemapProc )(int x, int y, Word Width, Word Height, const void *RemapPtr)
typedef Word(BURGER_APIVideoModePurgeProc )(VideoMode_t *)

Functions

void BURGER_API ReleaseVideo (void)
Word BURGER_API SetDisplayToSize (Word Width, Word Height, Word Depth, Word Flags)
void BURGER_API UpdateAndPageFlip (void)
void BURGER_API UpdateAndNoPageFlip (void)
void BURGER_API LockVideoPage (void)
void BURGER_API LockFrontVideoPage (void)
void BURGER_API VideoSetWindowString (const char *Title)
VideoModeArray_t **BURGER_API VideoModeArrayNew (Word Flags)
VideoDeviceArray_t **BURGER_API VideoDeviceArrayNew (Word Flags)
void BURGER_API VideoDeviceArrayDelete (VideoDeviceArray_t **Input)
VideoModeArray_t **BURGER_API VideoModeArrayPurge (VideoModeArray_t **Input, VideoModePurgeProc Proc)
VideoDeviceArray_t **BURGER_API VideoDeviceArrayPurge (VideoDeviceArray_t **Input, VideoModePurgeProc Proc)
void BURGER_API VideoGetCurrentMode (VideoSaveState_t *Input)
Word BURGER_API VideoSetMode (const VideoSaveState_t *Input)
void BURGER_API UnlockVideoPage (void)
void BURGER_API Video555To565 (void)
void BURGER_API VideoOSGammaInit (void)
void BURGER_API VideoOSGammaDestroy (void)
void BURGER_API VideoOSGammaAdjust (Fixed32 Intensity)
void BURGER_API VideoOSGammaSet (const GammaTable_t *TablePtr)
void BURGER_API VideoOSGammaGet (GammaTable_t *TablePtr)
void BURGER_API SetTheClipBounds (Word Left, Word Top, Word Right, Word Bottom)
void BURGER_API SetTheClipRect (const Burger::Rect_t *RectPtr)
void BURGER_API GetTheClipRect (Burger::Rect_t *RectPtr)
Word BURGER_API GetAPixel (Word x, Word y)
Word BURGER_API GetAPixel16 (Word x, Word y)
void BURGER_API SetAPixel (Word x, Word y, Word Color)
void BURGER_API SetAPixel16 (Word x, Word y, Word Color)
void BURGER_API SetAPixelTo16 (Word x, Word y, Word Color)
void BURGER_API DrawARect (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API DrawARect16 (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API DrawARectTo16 (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API DrawALine (int x1, int y1, int x2, int y2, Word Color)
void BURGER_API DrawALine16 (int x1, int y1, int x2, int y2, Word Color)
void BURGER_API DrawALineTo16 (int x1, int y1, int x2, int y2, Word Color)
void BURGER_API DrawARectRemap (int x, int y, Word Width, Word Height, const Word8 *RemapPtr)
void BURGER_API DrawARectRemap16 (int x, int y, Word Width, Word Height, const Word16 *RemapPtr)
void BURGER_API ScreenClear (Word Color)
void BURGER_API ScreenBox (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API ScreenBox2 (int x, int y, Word Width, Word Height, Word Color1, Word Color2)
void BURGER_API ScreenThickBox (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API ScreenThickBox2 (int x, int y, Word Width, Word Height, Word Color1, Word Color2)
void BURGER_API ScreenBoxRemap (int x, int y, Word Width, Word Height, const void *RemapPtr)
void BURGER_API ScreenBoxDropShadow (int x, int y, Word Width, Word Height, Word Color1, Word Color2)
void BURGER_API ScreenRectDropShadow (int x, int y, Word Width, Word Height, Word Color1, Word Color2, Word Color3)
void BURGER_API DrawShapeLowLevel (Word x, Word y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawShapeLowLevelClipped (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawRezShape (Word x, Word y, struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawRezCenterShape (struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawMShapeLowLevel (Word x, Word y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawMShapeLowLevelClipped (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawRezMShape (Word x, Word y, struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawRezCenterMShape (struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawShapeLowLevelClipped16 (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawRezShape16 (Word x, Word y, struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawRezCenterShape16 (struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawMShapeLowLevel16 (Word x, Word y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawMShapeLowLevelClipped16 (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawRezMShape16 (Word x, Word y, struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawRezCenterMShape16 (struct RezHeader_t *Input, Word RezNum)
void BURGER_API DrawShapeLowLevelTo16 (Word x, Word y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawShapeLowLevelClippedTo16 (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawMShapeLowLevelTo16 (Word x, Word y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API DrawMShapeLowLevelClippedTo16 (int x, int y, Word Width, Word Height, Word Skip, void *ShapePtr)
void BURGER_API EraseShape (Word x, Word y, void *ShapePtr)
void BURGER_API EraseMBShape (Word x, Word y, void *ShapePtr, void *BackPtr)
Word BURGER_API TestMShape (Word x, Word y, void *ShapePtr)
Word BURGER_API TestMBShape (Word x, Word y, void *ShapePtr, void *BackPtr)
void BURGER_API VideoPixelDouble16 (const Word8 *SourcePtr, Word8 *DestPtr, Word SourceRowBytes, Word DestRowBytes, Word Width, Word Height)
void BURGER_API VideoPixelDoubleChecker16 (const Word8 *SourcePtr, Word8 *DestPtr, Word SourceRowBytes, Word DestRowBytes, Word Width, Word Height)
void BURGER_API VideoPixelDouble (const Word8 *SourcePtr, Word8 *DestPtr, Word SourceRowBytes, Word DestRowBytes, Word Width, Word Height)
void BURGER_API VideoPixelDoubleChecker (const Word8 *SourcePtr, Word8 *DestPtr, Word SourceRowBytes, Word DestRowBytes, Word Width, Word Height)
Word BURGER_API OpenGLSetDisplayToSize (Word Width, Word Height, Word Depth, Word Flags)
void BURGER_API OpenGLMakeCurrent (void)
void BURGER_API OpenGLRelease (void)
void BURGER_API OpenGLSwapBuffers (void)
void BURGER_API OpenGLInit (void)
void BURGER_API OpenGLSolidRect (int x, int y, Word Width, Word Height, Word32 Color)
void BURGER_API OpenGLLine (int x, int y, int x2, int y2, Word32 Color)
void BURGER_API OpenGLTextureDraw2D (Word TexNum, int x, int y, Word Width, Word Height)
void BURGER_API OpenGLTextureDraw2DSubRect (Word TexNum, int x, int y, Word Width, Word Height, const float *UVPtr)
Word BURGER_API OpenGLLoadTexture (Word *TextureNum, const struct Image_t *ImagePtr)
void BURGER_API OpenGLSetCurrent (void)
void BURGER_API OpenGLATISetTruform (Word Setting)
void BURGER_API OpenGLATISetFSAA (Word Setting)
struct __AGLContextRec *BURGER_API OpenGLSetContext (struct __AGLContextRec *Context)
struct __AGLContextRec *BURGER_API OpenGLGetContext (void)
Word BURGER_API WinSetDisplayToSize (Word Width, Word Height, Word Depth)
void BURGER_API DrawARectDirectX (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API DrawARectDirectXTo16 (int x, int y, Word Width, Word Height, Word Color)
void BURGER_API D3DGetTextureInfo (void)
void BURGER_API D3DSetStandardViewport (void)
void BURGER_API D3DCreateZBuffer (void)
void BURGER_API D3DInitExecuteBuffer (void)
void BURGER_API D3DInit (const struct _GUID *Input)
void BURGER_API Direct3DDestroy (void)
void BURGER_API Direct3DLockExecuteBuffer (void)
void BURGER_API Direct3DUnlockExecuteBuffer (void)
void BURGER_API Direct3DCheckExecBuffer (Word InstCount, Word VertexCount)
void BURGER_API Direct3DBeginScene (void)
void BURGER_API Direct3DEndScene (void)
void BURGER_API Direct3DSolidRect (int x, int y, Word Width, Word Height, Word32 Color)
void BURGER_API Direct3DLine (int x, int y, int x2, int y2, Word32 Color)

Variables

Word Table8To16 [256]
WordTable8To16Ptr
Word8VideoPointer
Word VideoWidth
Word ScreenClipLeft
Word ScreenClipTop
Word ScreenClipRight
Word ScreenClipBottom
Word ScreenWidth
Word ScreenHeight
Word ScreenFlags
Word VideoRedShift
Word VideoGreenShift
Word VideoBlueShift
Word VideoRedMask
Word VideoGreenMask
Word VideoBlueMask
Word VideoRedBits
Word VideoGreenBits
Word VideoBlueBits
Word VideoColorDepth
Word VideoTrueScreenWidth
Word VideoTrueScreenHeight
Word VideoTrueScreenDepth
Word VideoPixelDoubleMode
Word VideoFullScreen
Word VideoPageLocked
Word8VideoOffscreen
Word VideoHardWidth
Word VideoAPIInUse
Word VideoTextureTypesAllowed
Word VideoTextureRules
Word VideoTextureMinWidth
Word VideoTextureMaxWidth
Word VideoTextureMinHeight
Word VideoTextureMaxHeight
Word VideoVertexMaxCount
Word VideoVertexCount
Word VideoUseColorZero
DrawARectProc ScreenRect
DrawALineProc ScreenLine
DrawAPixelProc ScreenPixel
DrawARectRemapProc ScreenRectRemap
Word BurgerMaxVideoPage
Word BurgerVideoPage
Word BurgerVesaVersion
Bool Burger8BitPalette
Word32 BurgerScreenSize
Word8BurgerBaseVideoPointer
Word8BurgerVideoPointers [3]
Word8BurgerVideoCallbackBuffer
Bool BurgerLinearFrameBuffer
struct IDirect3D * Direct3DPtr
struct IDirect3DDevice * Direct3DDevicePtr
struct IDirect3DViewport * Direct3DViewPortPtr
struct IDirect3DExecuteBuffer * Direct3DExecBufPtr
Word8Direct3DExecDataBuf
Word8Direct3DExecInstBuf
Word8Direct3DExecDataPtr
Word8Direct3DExecInstPtr
Word8Direct3DExecInstStartPtr
Word32 Direct3DExecBuffSize

Define Documentation

#define BLACK   255
#define DrawMShape (   x,
  y,
 
)    DrawMShapeLowLevel(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,((LWShape_t *)p)->Data)
#define DrawMShape16 (   x,
  y,
 
)    DrawMShapeLowLevel16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeClipped (   x,
  y,
 
)    DrawMShapeLowLevelClipped(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeClipped16 (   x,
  y,
 
)    DrawMShapeLowLevelClipped16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeClippedTo16 (   x,
  y,
 
)    DrawMShapeLowLevelClippedTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawMShapeTo16 (   x,
  y,
 
)    DrawMShapeLowLevelTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawRawMShape (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevel(x,y,w,h,0,p)
#define DrawRawMShape16 (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevel16(x,y,w,h,0,p)
#define DrawRawMShapeClipped (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevelClipped(x,y,w,h,0,p)
#define DrawRawMShapeClipped16 (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevelClipped16(x,y,w,h,0,p)
#define DrawRawMShapeClippedTo16 (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevelClippedTo16(x,y,w,h,0,p)
#define DrawRawMShapeTo16 (   x,
  y,
  w,
  h,
 
)    DrawMShapeLowLevelTo16(x,y,w,h,0,p)
#define DrawRawShape (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevel(x,y,w,h,0,p)
#define DrawRawShape16 (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevel16(x,y,w,h,0,p)
#define DrawRawShapeClipped (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevelClipped(x,y,w,h,0,p)
#define DrawRawShapeClipped16 (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevelClipped16(x,y,w,h,0,p)
#define DrawRawShapeClippedTo16 (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevelClippedTo16(x,y,w,h,0,p)
#define DrawRawShapeTo16 (   x,
  y,
  w,
  h,
 
)    DrawShapeLowLevelTo16(x,y,w,h,0,p)
#define DrawShape (   x,
  y,
 
)    DrawShapeLowLevel(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,((LWShape_t *)p)->Data)
#define DrawShape16 (   x,
  y,
 
)    DrawShapeLowLevel16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeClipped (   x,
  y,
 
)    DrawShapeLowLevelClipped(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeClipped16 (   x,
  y,
 
)    DrawShapeLowLevelClipped16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeClippedTo16 (   x,
  y,
 
)    DrawShapeLowLevelClippedTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawShapeLowLevel16 (   x,
  y,
  w,
  h,
  s,
 
)    DrawShapeLowLevel(x*2,y,w*2,h,s,p)
#define DrawShapeTo16 (   x,
  y,
 
)    DrawShapeLowLevelTo16(x,y,((LWShape_t *)p)->Width,((LWShape_t *)p)->Height,0,&((LWShape_t *)p)->Data)
#define DrawXMShape (   x,
  y,
 
)
Value:
DrawMShapeLowLevel(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXMShape16 (   x,
  y,
 
)
Value:
DrawMShapeLowLevel(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXMShapeClipped (   x,
  y,
 
)
Value:
DrawMShapeLowLevelClipped(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXMShapeClipped16 (   x,
  y,
 
)
Value:
DrawMShapeLowLevelClipped16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXMShapeClippedTo16 (   x,
  y,
 
)
Value:
DrawMShapeLowLevelClippedTo16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXMShapeTo16 (   x,
  y,
 
)
Value:
DrawMShapeLowLevelTo16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShape (   x,
  y,
 
)
Value:
DrawShapeLowLevel(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShape16 (   x,
  y,
 
)
Value:
DrawShapeLowLevel16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShapeClipped (   x,
  y,
 
)
Value:
DrawShapeLowLevelClipped(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShapeClipped16 (   x,
  y,
 
)
Value:
DrawShapeLowLevelClipped16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShapeClippedTo16 (   x,
  y,
 
)
Value:
DrawShapeLowLevelClippedTo16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define DrawXShapeTo16 (   x,
  y,
 
)
Value:
DrawShapeLowLevelTo16(((LWXShape_t*)p)->XOffset+x,((LWXShape_t*)p)->YOffset+y, \
    ((LWXShape_t *)p)->Shape.Width,((LWXShape_t *)p)->Shape.Height,0,&((LWXShape_t*)p)->Shape.Data)
#define GetShapeHeight (   ShapePtr)    (((LWShape_t *)ShapePtr)->Height)
#define GetShapeIndexPtr (   ShapeArrayPtr,
  Index 
)    (&((Word8 *)ShapeArrayPtr)[((Word32 *)ShapeArrayPtr)[Index]])
#define GetShapeWidth (   ShapePtr)    (((LWShape_t *)ShapePtr)->Width)
#define GetXShapeHeight (   ShapePtr)    (((LWXShape_t *)ShapePtr)->Shape.Height)
#define GetXShapeWidth (   ShapePtr)    (((LWXShape_t *)ShapePtr)->Shape.Width)
#define GetXShapeXOffset (   ShapePtr)    (((LWXShape_t *)ShapePtr)->XOffset)
#define GetXShapeYOffset (   ShapePtr)    (((LWXShape_t *)ShapePtr)->YOffset)
#define MAXD3DINSTRUCTIONS   1024 /* Maximum number of D3D instructions to queue */
#define SETDISPLAYD3D   0x10 /* True if 3D hardware is requested (Check Video3DPreference for API override) */
#define SETDISPLAYDOUBLEOK   0x4 /* True if I can allow pixel doubling for 320x200 */
#define SETDISPLAYFULLSCREEN   0x1 /* True if full screen */
#define SETDISPLAYNOWINDOWTWIDDLE   0x20 /* Don't change any of my window settings for me */
#define SETDISPLAYOFFSCREEN   0x2 /* True if I force system memory video page */
#define SETDISPLAYOPENGL   0x8 /* True if 3D hardware is requested (Check Video3DPreference for API override) */
#define SETDISPLAYWINDOW   0x0 /* Best for debugging */
#define SetNewVideoWidth (   x)    VideoWidth=x
#define STORE_DATA_PROCESSVERTICES (   flgs,
  strt,
  cnt,
 
)    ((D3DPROCESSVERTICES *)p)->dwFlags = flgs; ((D3DPROCESSVERTICES *)p)->wStart = (Word16)strt; ((D3DPROCESSVERTICES *)p)->wDest = (Word16)strt; ((D3DPROCESSVERTICES *)p)->dwCount = cnt; ((D3DPROCESSVERTICES *)p)->dwReserved = 0; p = p+16;
#define STORE_DATA_STATE (   a,
  b,
 
)    ((D3DSTATE *)p)->drstRenderStateType = (D3DRENDERSTATETYPE)a; ((D3DSTATE *)p)->dwArg[0] = b; p = p+8;
#define STORE_DATA_TRIANGLE (   a,
  b,
  c,
 
)    ((D3DTRIANGLE *)p)->v1 = (Word16)(a); ((D3DTRIANGLE *)p)->v2 = (Word16)(b); ((D3DTRIANGLE *)p)->v3 = (Word16)(c); ((D3DTRIANGLE *)p)->wFlags = D3DTRIFLAG_EDGEENABLETRIANGLE; p = p + 8;
#define STORE_OP (   a,
  b,
  c,
 
)    ((D3DINSTRUCTION*)p)->bOpcode = (Word8)a; ((D3DINSTRUCTION*)p)->bSize = (Word8)b; ((D3DINSTRUCTION*)p)->wCount = (Word16)c; p = p+4;
#define STORE_OP_CONST (   a,
  b,
  c,
 
)    ((Word32 *)p)[0] = (((Word32)a) + (((Word32)b)<<8) + (((Word32)c)<<16)); p =p+4;
#define STORE_OP_EXIT (   p)    ((Word32 *)p)[0] = (Word32)D3DOP_EXIT; p = ((Word8 *)p+4);
#define STORE_OP_PROCESSVERTICES (   a,
 
)    ((Word16 *)p)[0] = (((Word16)D3DOP_PROCESSVERTICES) + ((Word16)sizeof(D3DPROCESSVERTICES)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_PROCESSVERTICES_CONST (   a,
 
)    ((Word32 *)p)[0] = ((Word32)D3DOP_PROCESSVERTICES + (((Word32)sizeof(D3DPROCESSVERTICES))<<8) + (((Word32)a)<<16)); p = p+4;
#define STORE_OP_RENDERSTATE (   a,
 
)    ((Word16 *)p)[0] = (((Word16)D3DOP_STATERENDER) + ((Word16)sizeof(D3DSTATE)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_RENDERSTATE_CONST (   a,
 
)    ((Word32 *)p)[0] = ((Word32)D3DOP_STATERENDER + (((Word32)sizeof(D3DSTATE))<<8) + (((Word32)a)<<16)); p = p+4;
#define STORE_OP_TRIANGLE (   a,
 
)    ((Word16 *)p)[0] = (((Word16)D3DOP_TRIANGLE) + ((Word16)sizeof(D3DTRIANGLE)<<8)); ((Word16 *)p)[1] = (Word16)a; p = p+4;
#define STORE_OP_TRIANGLE_CONST (   a,
 
)    ((Word32 *)p)[0] = ((Word32)D3DOP_TRIANGLE + (((Word32)sizeof(D3DTRIANGLE))<<8) + (((Word32)a)<<16)); p = p+4;
#define VIDEOAPIDIRECT3D   2
#define VIDEOAPIDIRECTDRAW   3
#define VIDEOAPIOPENGL   1
#define VIDEOAPISOFTWARE   0
#define VideoModeArrayDelete (   x)    DeallocAHandle((void **)x)
#define VIDEOMODEFAKE   0x04 /* This is a pixel double mode */
#define VIDEOMODEGETNOFAKE   0x0100 /* Don't allow pixel double modes */
#define VIDEOMODEHARDWARE   0x02 /* DirectX or other native support */
#define VIDEOMODEOPENGL   0x01 /* OpenGL is supported in this mode */
#define VIDEOTEXTUREPOW2   0x0002 /* 3D Textures MUST be a power of 2 in size */
#define VIDEOTEXTURESQUARE   0x0001 /* 3D Textures MUST be square */
#define VIDEOTEXTURESYSTEMMEMORY   0x0004 /* Textures can exist in system memory (AGP) */
#define VIDEOTEXTURETYPE1555   0x0008
#define VIDEOTEXTURETYPE4444   0x0004
#define VIDEOTEXTURETYPE555   0x0001
#define VIDEOTEXTURETYPE565   0x0002
#define VIDEOTEXTURETYPE888   0x0020
#define VIDEOTEXTURETYPE8888   0x0040
#define VIDEOTEXTURETYPE8PAL   0x0010
#define WHITE   0

Typedef Documentation

typedef void(BURGER_API * DrawALineProc)(int x1, int y1, int x2, int y2, Word Color)
typedef void(BURGER_API * DrawAPixelProc)(int x, int y, Word Color)
typedef void(BURGER_API * DrawARectProc)(int x, int y, Word Width, Word Height, Word Color)
typedef void(BURGER_API * DrawARectRemapProc)(int x, int y, Word Width, Word Height, const void *RemapPtr)
typedef struct GammaTable_t GammaTable_t
typedef struct GfxShape_t GfxShape_t
typedef struct LWShape_t LWShape_t
typedef struct LWXShape_t LWXShape_t
typedef struct VideoMode_t VideoMode_t

Function Documentation

void BURGER_API D3DInit ( const struct _GUID Input)
void BURGER_API Direct3DCheckExecBuffer ( Word  InstCount,
Word  VertexCount 
)
void BURGER_API Direct3DLine ( int  x,
int  y,
int  x2,
int  y2,
Word32  Color 
)
void BURGER_API Direct3DSolidRect ( int  x,
int  y,
Word  Width,
Word  Height,
Word32  Color 
)
void BURGER_API DrawALine ( int  x1,
int  y1,
int  x2,
int  y2,
Word  Color 
)
void BURGER_API DrawALine16 ( int  x1,
int  y1,
int  x2,
int  y2,
Word  Color 
)
void BURGER_API DrawALineTo16 ( int  x1,
int  y1,
int  x2,
int  y2,
Word  Color 
)
void BURGER_API DrawARect ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API DrawARect16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API DrawARectDirectX ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API DrawARectDirectXTo16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API DrawARectRemap ( int  x,
int  y,
Word  Width,
Word  Height,
const Word8 RemapPtr 
)
void BURGER_API DrawARectRemap16 ( int  x,
int  y,
Word  Width,
Word  Height,
const Word16 RemapPtr 
)
void BURGER_API DrawARectTo16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API DrawMShapeLowLevel ( Word  x,
Word  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawMShapeLowLevel16 ( Word  x,
Word  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawMShapeLowLevelClipped ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawMShapeLowLevelClipped16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawMShapeLowLevelClippedTo16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawMShapeLowLevelTo16 ( Word  x,
Word  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawRezCenterMShape ( struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezCenterMShape16 ( struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezCenterShape ( struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezCenterShape16 ( struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezMShape ( Word  x,
Word  y,
struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezMShape16 ( Word  x,
Word  y,
struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezShape ( Word  x,
Word  y,
struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawRezShape16 ( Word  x,
Word  y,
struct RezHeader_t Input,
Word  RezNum 
)
void BURGER_API DrawShapeLowLevel ( Word  x,
Word  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawShapeLowLevelClipped ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawShapeLowLevelClipped16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawShapeLowLevelClippedTo16 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API DrawShapeLowLevelTo16 ( Word  x,
Word  y,
Word  Width,
Word  Height,
Word  Skip,
void ShapePtr 
)
void BURGER_API EraseMBShape ( Word  x,
Word  y,
void ShapePtr,
void BackPtr 
)
void BURGER_API EraseShape ( Word  x,
Word  y,
void ShapePtr 
)
Word BURGER_API GetAPixel ( Word  x,
Word  y 
)
struct __AGLContextRec* BURGER_API OpenGLGetContext ( void  ) [read]
void BURGER_API OpenGLLine ( int  x,
int  y,
int  x2,
int  y2,
Word32  Color 
)
Word BURGER_API OpenGLLoadTexture ( Word TextureNum,
const struct Image_t ImagePtr 
)
struct __AGLContextRec* BURGER_API OpenGLSetContext ( struct __AGLContextRec *  Context) [read]
Word BURGER_API OpenGLSetDisplayToSize ( Word  Width,
Word  Height,
Word  Depth,
Word  Flags 
)
void BURGER_API OpenGLSolidRect ( int  x,
int  y,
Word  Width,
Word  Height,
Word32  Color 
)
void BURGER_API OpenGLTextureDraw2D ( Word  TexNum,
int  x,
int  y,
Word  Width,
Word  Height 
)
void BURGER_API OpenGLTextureDraw2DSubRect ( Word  TexNum,
int  x,
int  y,
Word  Width,
Word  Height,
const float *  UVPtr 
)
void BURGER_API ScreenBox ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API ScreenBox2 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color1,
Word  Color2 
)
void BURGER_API ScreenBoxDropShadow ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color1,
Word  Color2 
)
void BURGER_API ScreenBoxRemap ( int  x,
int  y,
Word  Width,
Word  Height,
const void RemapPtr 
)
void BURGER_API ScreenRectDropShadow ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color1,
Word  Color2,
Word  Color3 
)
void BURGER_API ScreenThickBox ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color 
)
void BURGER_API ScreenThickBox2 ( int  x,
int  y,
Word  Width,
Word  Height,
Word  Color1,
Word  Color2 
)
void BURGER_API SetAPixel ( Word  x,
Word  y,
Word  Color 
)
void BURGER_API SetAPixel16 ( Word  x,
Word  y,
Word  Color 
)
void BURGER_API SetAPixelTo16 ( Word  x,
Word  y,
Word  Color 
)
Word BURGER_API SetDisplayToSize ( Word  Width,
Word  Height,
Word  Depth,
Word  Flags 
)
void BURGER_API SetTheClipBounds ( Word  Left,
Word  Top,
Word  Right,
Word  Bottom 
)
Word BURGER_API TestMBShape ( Word  x,
Word  y,
void ShapePtr,
void BackPtr 
)
Word BURGER_API TestMShape ( Word  x,
Word  y,
void ShapePtr 
)
void BURGER_API VideoPixelDouble ( const Word8 SourcePtr,
Word8 DestPtr,
Word  SourceRowBytes,
Word  DestRowBytes,
Word  Width,
Word  Height 
)
void BURGER_API VideoPixelDouble16 ( const Word8 SourcePtr,
Word8 DestPtr,
Word  SourceRowBytes,
Word  DestRowBytes,
Word  Width,
Word  Height 
)
void BURGER_API VideoPixelDoubleChecker ( const Word8 SourcePtr,
Word8 DestPtr,
Word  SourceRowBytes,
Word  DestRowBytes,
Word  Width,
Word  Height 
)
void BURGER_API VideoPixelDoubleChecker16 ( const Word8 SourcePtr,
Word8 DestPtr,
Word  SourceRowBytes,
Word  DestRowBytes,
Word  Width,
Word  Height 
)
void BURGER_API VideoSetWindowString ( const char *  Title)
Word BURGER_API WinSetDisplayToSize ( Word  Width,
Word  Height,
Word  Depth 
)

Variable Documentation

struct IDirect3DDevice* Direct3DDevicePtr
struct IDirect3DExecuteBuffer* Direct3DExecBufPtr
struct IDirect3D* Direct3DPtr
struct IDirect3DViewport* Direct3DViewPortPtr