| Operations |
| AALine | NAME: AALine. |
| CDXBLT_Blk | CDXBLT_Blk. |
| CDXBLT_BlkAlpha | CDXBLT_BLKALPHA -. |
| CDXBLT_BlkAlphaFast | CDXBLT_BlkAlphaFast -. |
| CDXBLT_BlkDrawScaled | CDXBLT_BlkDrawScaled - Draws image to destination surface scaled by SF. |
| CDXBLT_BlkHFlip | CDXBLT_BlkHFlip. |
| CDXBLT_BlkShadow | CDXBLT_BlkShadow -. |
| CDXBLT_BlkShadowFast | CDXBLT_BlkShadowFast -. |
| CDXBLT_BlkStretched | CDXBLT_BlkDrawStretched - Draws image to destination surface scaled by width & height. |
| CDXBLT_BlkVFlip | CDXBLT_BlkVFlip. |
| CDXBLT_Fade | NAME: CDXBLT_Fade. |
| CDXBLT_Trans | CDXBLT_Trans. |
| CDXBLT_TransAlpha | CDXBLT_TransAlpha -. |
| CDXBLT_TransAlphaFast | CDXBLT_TRANSALPHAFAST -. |
| CDXBLT_TransAlphaMask | Does a BLT using a transparent alpha mask. |
| CDXBLT_TransDrawScaled | CDXBLT_TransDrawScaled - Draws image to destination surface scaled by SF. |
| CDXBLT_TransHFlip | CDXBLT_TransHFlip. |
| CDXBLT_TransShadow | CDXBLT_TransShadow -. |
| CDXBLT_TransShadowFast | CDXBLT_TransShadowFast. |
| CDXBLT_TransStretched | CDXBLT_TransDrawStretched - Draws image to destination surface scaled by width & height. |
| CDXBLT_TransVFlip | CDXBLT_TransVFlip. |
| ChangeFont | Chooses the font to be used by the TextXY function. |
| Circle | Draws a circle on the surface at position X,Y with Radius in colour Col. |
| ClipRect | Clips a rectangle specified by Rect to the member variable m_clipRect. |
| Create | |
| Create | |
| Create | |
| Create | Creates a surface holding the bitmap pointed to by szFilename. |
| CreateFromBMPi | BOOL Create(CDXScreen *pScreen, char *ptr, BYTE memoryType = CDXMEM_VIDTHENSYS); |
| CreateFromPSD | Creates a CDXSurface from a PSD file. |
| DrawTextA | Draw word wrapped text on a device context inside a user defined RECT with formatting dimensions. |
| EnableTexture | |
| Fill | Fills the surface with the specified colour. |
| FillCircle | Draws a filled circle on the surface at position X,Y with Radius in colour Col. |
| FillRect | Draws a filled rectangle on the surface with a top-left coordinate at X1,Y1 and bottom-right coordinate at X2,Y2 in colour Col. |
| GetClipRect | Fills out the passed RECT with m_clipRect. |
| GetDC | Retieves a handle of the display device context (DC) and stores it in the m_DC data member. |
| GetHeight | |
| GetPitch | |
| GetPixel | Returns the value of the pixel at position X,Y on the surface. |
| GetSurfaceBytesPointer | |
| GetWidth | |
| GetlpDDS | |
| HLine | Draws a horizontal line on the surface from X1 to X2 at Y in colour Col. |
| InitCDXSurface | Is called from all constructors to init member variables. |
| Invert | Inverts the colors of the selected area. |
| Line | Draws a straight line on the surface from X1,Y1 to X2,Y2 in colour Col. |
| LoadAlphaMask | This function can be used to load an alpha mask for your surface. |
| Lock | Locks the surface and provides direct access to the display memory. |
| PutAAPixel | NAME: PutAAPixel. |
| PutPixel | Draws a single pixel to the surface at position X,Y in colour Col. |
| Read16 | Reads a 16-bit value from a file an converts it from big endian format to little endian format. |
| Read32 | Reads a 32-bit value from a file an converts it from big endian format to little endian format. |
| Rect | Draws a rectangle on the surface with a top-left coordinate at X1,Y1 and bottom-right coordinate at X2,Y2 in colour Col. |
| ReleaseDC | Releases the device context. |
| Restore | Restores the DirectDrawSurface and bitmap if lost. |
| RoundedRect | Draws a rectanle with rounded corners. |
| SetClipRect | Set m_clipRect to the passed in RECT values. |
| SetColorKey | Sets the source colour key. |
| SetColorKey | Sets the source colour key. |
| SetDest | Sets the destination RECT for a Draw operation. |
| SetFont | Selects the the currently chosen font from ChangeFont. |
| SetSrc | Sets the source for a Draw operation. |
| TextXY | Draws the text specified by pString at position X,Y in colour Col. |
| UnLock | UnLocks the surface and prevents access to display memory. |
| UnPackPSD | Given a file handle this method will unpack a PSD file. |
| VLine | Draws a vertical line on the surface from Y1 to Y2 at X in colour Col. |
| ValidateBlt | ValdidateBlt. |
| | |
| Data Members | |
| public |
| RECT DestRect; | A RECT structure holding the surface destination. |
| CDXScreen* Screen; | A pointer to a CDXScreen object. |
| RECT SrcRect; | A RECT structure holding the surface source. |
| RECT m_ClipRect; | |
| DWORD m_ColorKey; | The specified color key for this surface. |
| HDC m_DC; | A HDC object, used for drawing text to the surface. |
| DDSURFACEDESC2 m_DDSD; | A DDSURFACEDESC object, stores surface information. |
| BOOL m_EnableTexture; | |
| HFONT m_Font; | A HFONT object describing the currently selected font. |
| BOOL m_FontLoaded; | |
| char* m_FontName; | |
| BOOL m_MMX; | |
| int m_PixelHeight; | The surface height in pixels. |
| int m_PixelWidth; | The surface width in pixels. |
| RGBFORMAT m_RGB; | |
| BYTE* m_alphaMask; | |
| LPDIRECTDRAWSURFACE4 m_lpDDS; | The LPDIRECTDRAWSURFACE object. |
| const char* m_pFilename; | The name of the bitmap file loaded, used in Restore. |