Debug Text System


Defines

#define XF_SetLetter(x, y, letter)   if(x+y*DEBUG_WIDTH < DEBUG_WIDTH*DEBUG_HEIGHT) XF_SetMapTileAll(xf_debug_bg, x, y, (xf_debugtruemap[(u16)letter]))
#define XF_SetTileLetter(x, y, letter)   if(x+y*DEBUG_WIDTH < DEBUG_WIDTH*DEBUG_HEIGHT) XF_SetMapTileAll(xf_debug_bg, x, y, (xf_debugtruemap[(u16)letter])|((xf_debug_color)<<TILE_XFL))
#define XF_SetTextTileCol(color)   xf_debug_color = color;
#define XF_GetTextTileCol()   xf_debug_color;
#define XF_SetDebugColor(color)   xf_debug_color = color;
#define XF_GetDebugColor()   xf_debug_color;

Functions

void XF_InitDebug (u8 bg_number)
void XF_InitCustomDebug (u8 bg_number, XF_Bg *font)
void XF_DebugText (u16 x, u16 y, char *text,...)

Detailed Description

Debug Text System

Define Documentation

 
#define XF_GetDebugColor (  )     xf_debug_color;

Definition at line 55 of file xf_debug.h.

 
#define XF_GetTextTileCol (  )     xf_debug_color;

Definition at line 53 of file xf_debug.h.

#define XF_SetDebugColor ( color   )     xf_debug_color = color;

Definition at line 54 of file xf_debug.h.

#define XF_SetLetter ( x,
y,
letter   )     if(x+y*DEBUG_WIDTH < DEBUG_WIDTH*DEBUG_HEIGHT) XF_SetMapTileAll(xf_debug_bg, x, y, (xf_debugtruemap[(u16)letter]))

Definition at line 48 of file xf_debug.h.

#define XF_SetTextTileCol ( color   )     xf_debug_color = color;

Definition at line 52 of file xf_debug.h.

#define XF_SetTileLetter ( x,
y,
letter   )     if(x+y*DEBUG_WIDTH < DEBUG_WIDTH*DEBUG_HEIGHT) XF_SetMapTileAll(xf_debug_bg, x, y, (xf_debugtruemap[(u16)letter])|((xf_debug_color)<<TILE_XFL))

Definition at line 50 of file xf_debug.h.


Function Documentation

void XF_DebugText ( u16  x,
u16  y,
char *  text,
  ... 
)

Definition at line 59 of file xf_debug.c.

void XF_InitCustomDebug ( u8  bg_number,
XF_Bg font 
)

Definition at line 30 of file xf_debug.c.

void XF_InitDebug ( u8  bg_number  ) 

Definition at line 57 of file xf_debug.c.


Generated on Wed Dec 12 23:46:48 2007 for XFlib by  doxygen 1.5.4