Engine
The Game Engine for Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
CTextManager Class Reference

The text manager. More...

#include <Text.h>

Public Member Functions

void GetDC (IDirect3DSurface9 *buffer, COLORREF color=RGB(255, 255, 255))
 Get device context.
 
void ReleaseDC ()
 Release device context.
 
void Write (char *string)
 Write string at cursor position.
 

Detailed Description

The text manager.

Provides an interface for drawing text to a surface.

Member Function Documentation

void CTextManager::GetDC ( IDirect3DSurface9 *  buffer,
COLORREF  color = RGB(255, 255, 255) 
)

Get device context.

Get a device context for a surface and set its text color.

Parameters
bufferD3D surface pointer.
colorDefault color for text.
void CTextManager::Write ( char *  string)

Write string at cursor position.

Parameters
stringText string.

The documentation for this class was generated from the following files: