Overview Members Chapter Previous Next

CDXTile::CDXTile

CDXTile( CDXScreen* pScreen , const char* szFilename , int w , int h , int num , BOOL memoryType = CDXMEM_VIDTHENSYS ) ;

Creates a DirectDrawSurface and loads the tiles from a .BMP file onto it. You must also specify the width and height of a single tile and the number of tiles in the bitmap. Since CDXTile is derived from CDXSurface, memoryType represents the location in memory of the bitmap (video or system).