2 // Copyright (C) Dante Treglia II, 2000.
10 #define TEXT_DRAW_BOX 0x04
11 #define TEXT_DRAW_SPACES 0x02
12 #define TEXT_WRAP_SPACES 0x08
13 #define TEXT_DRAW_BACKGROUND 0x01
15 typedef struct {unsigned char r
, g
, b
, a
;} COLOR
;
18 #define SET_COLOR(c, rIn, gIn, bIn, aIn) \
24 typedef struct tagTextBox
{
46 } TextBox
, *TextBoxPtr
;
48 void Paginate(TextBoxPtr text
);
49 void DrawStr(TextBoxPtr text
,
50 int x
, int y
, int maxFlag
, int maxY
, char* string
);
51 void DrawBoundingBox(TextBoxPtr text
);
54 void TextBegin(TextBoxPtr text
);
56 void DrawString(TextBoxPtr text
, int x
, int y
, char *str
);
58 TextBoxPtr
InitTextBox(int inL
, int inR
, int inT
, int inB
);
59 void DestroyTextBox(TextBoxPtr text
);
60 void SetTextMode(TextBoxPtr text
, unsigned int modeIn
);
61 void DrawText(TextBoxPtr text
);
62 void Printf(TextBoxPtr text
,char* fmt
, ... );
64 void FormatStrCat(TextBoxPtr text
, char *str
);
66 void SetTextColor(TextBoxPtr text
, unsigned char r
,
67 unsigned char g
, unsigned char b
);
69 void Reset_FontID(void);