Niotso  git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations | Functions | Variables
Graphics Namespace Reference

Enumerations

enum  TextAlignment {
  ALIGN_LEFT_TOP, ALIGN_LEFT_CENTER, ALIGN_CENTER_TOP, ALIGN_CENTER_CENTER,
  ALIGN_RIGHT_TOP, ALIGN_RIGHT_CENTER
}
 

Functions

static void FindStringSize (const wchar_t *String, unsigned *width, unsigned *height, int *xoffset, int *yoffset, int font)
 
void DrawText (Image_t *Image, const wchar_t *String, int x, int y, unsigned width, unsigned height, TextAlignment Alignment, int font, COLORREF Color)
 
Image_tStringImage (const wchar_t *String, int font, COLORREF Color)
 
int Initialize ()
 
void Shutdown ()
 
int InitGL ()
 
void ResizeViewport (unsigned width, unsigned height)
 

Variables

FT_Library FreeTypeLibrary
 
FT_Face FontFace
 
HDC hDC
 
HGLRC hRC
 

Enumeration Type Documentation

Enumerator
ALIGN_LEFT_TOP 
ALIGN_LEFT_CENTER 
ALIGN_CENTER_TOP 
ALIGN_CENTER_CENTER 
ALIGN_RIGHT_TOP 
ALIGN_RIGHT_CENTER 

Function Documentation

void Graphics::DrawText ( Image_t Image,
const wchar_t *  String,
int  x,
int  y,
unsigned  width,
unsigned  height,
TextAlignment  Alignment,
int  font,
COLORREF  Color 
)
static void Graphics::FindStringSize ( const wchar_t *  String,
unsigned *  width,
unsigned *  height,
int *  xoffset,
int *  yoffset,
int  font 
)
static
int Graphics::InitGL ( )
int Graphics::Initialize ( )
void Graphics::ResizeViewport ( unsigned  width,
unsigned  height 
)
void Graphics::Shutdown ( )
Image_t * Graphics::StringImage ( const wchar_t *  String,
int  font,
COLORREF  Color 
)

Variable Documentation

FT_Face Graphics::FontFace
FT_Library Graphics::FreeTypeLibrary
HDC Graphics::hDC
HGLRC Graphics::hRC