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

graph.h File Reference

Graphics helpers. More...


Defines

#define FILE_IMG_FONT   "data/font.tga"
 Image file to use for font.

#define DRAW_SPRITE16(vis, a, b, x, y)   djgDrawImage( vis, g_pCurMission->GetSpriteData(a)->m_pImage, ((b)%16)*16,((b)/16)*16, (x),(y), 16,16 )
 Convenience macro to call the sprite draw function for 16x16 sprite b in sprite set a.

#define DRAW_SPRITE16A(vis, a, b, x, y)   djgDrawImageAlpha( vis, g_pCurMission->GetSpriteData(a)->m_pImage, ((b)%16)*16,((b)/16)*16, (x),(y), 16,16 )
 Same as DRAW_SPRITE16 but also uses alpha map for transparency masking.


Functions

bool GraphInit (bool bFullScreen, int iWidth, int iHeight)
 Initialize the graphics system for the game.

void GraphDone ()
 Shut down the graphics system.

void GraphFlip ()
 Flip the back buffer to the front buffer.

void GraphFlipView (int iViewWidth)
 Flip the view buffer into the back buffer.

void GraphDrawString (djVisual *pVis, djImage *pImg, int x, int y, const unsigned char *szStr)
 Draw a string of characters from a font bitmap.


Variables

djVisual* pVisMain
 Main visual.

djVisual* pVisBack
 Back buffer.

djVisual* pVisView
 View visual - 3rd buffer for game play display.

djImageg_pFont8x8


Detailed Description

Graphics helpers.

Author:
David Joffe


http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 15 Jul 2001