Public Methods |
| CTextContext () |
| Constructor. More...
|
void | init (IDriver *drv, CFontManager *fmg) |
| set the driver. More...
|
void | setFontGenerator (const std::string fontFileName, const std::string fontExFileName = "") |
| init the font generator. More...
|
void | setColor (NLMISC::CRGBA color) |
| set the font color. More...
|
void | setFontSize (uint32 fontSize) |
| set the font size. More...
|
uint32 | getFontSize () const |
| get the font size. More...
|
void | setHotSpot (NL3D::CComputedString::THotSpot hotSpot) |
| set the hot spot. More...
|
void | setScaleX (float scaleX) |
| set the X scale. More...
|
void | setScaleZ (float scaleZ) |
| set the Z scale. More...
|
float | getScaleX () const |
float | getScaleZ () const |
void | setShaded (bool b) |
| set the shade states. More...
|
bool | getShaded () const |
void | setShadeExtent (float shext) |
| set the shadow's size. More...
|
NL3D::CComputedString::THotSpot | getHotSpot () const |
| get the hot spot. More...
|
uint32 | textPush (const char *format, ...) |
| compute and add a string to the stack. More...
|
uint32 | textPush (ucstring str) |
| computes an ucstring and adds the result to the stack. More...
|
void | erase (uint32 i) |
| remove a string from the list. More...
|
void | clear () |
| empty the map. More...
|
void | printAt (float x, float z, uint32 i) |
| print a string of the list (rq : it leaves the string in the stack). More...
|
void | printAt (float x, float z, ucstring ucstr) |
| compute and print a ucstring at the location. More...
|
void | printfAt (float x, float z, const char * format, ...) |
| compute and print a string at the location. More...
|
CComputedString& | operator[] (uint32 i) |
| operator[]. More...
|
CComputedString* | getComputedString (uint32 i) |
| operator[]. More...
|
void | computeString (const std::string& s, CComputedString& output) |
| Compute a string as primitive blocks using the font manager's method computeString. More...
|
void | computeString (const ucstring& s, CComputedString& output) |
| Compute a ucstring as primitive blocks using the font manager's method computeString. More...
|
float | getLastXBound () const |
| Return max x coordinate of last string printed. More...
|
void | setKeep800x600Ratio (bool keep) |
| set to true if you want that CFontManager look at Driver window size, and resize fontSize so it keeps same size than if it was in 800x600... More...
|
bool | getKeep800x600Ratio () const |
| return keep800x600Ratio state. More...
|
| ~CTextContext () |
| destructor. More...
|
Private Attributes |
IDriver* | _Driver |
| Driver. More...
|
NL3D::CFontManager* | _FontManager |
| font manager. More...
|
NL3D::CFontGenerator* | _FontGen |
| font generator. More...
|
uint32 | _FontSize |
| font size;. More...
|
NLMISC::CRGBA | _Color |
| current text color. More...
|
NL3D::CComputedString::THotSpot | _HotSpot |
| hotspot. More...
|
float | _ScaleX |
| X scale. More...
|
float | _ScaleZ |
| Z scale. More...
|
float | _RotateY |
| Y axe rotation angle. More...
|
std::map<uint32,CComputedString> | _StringList |
| computed strings map. More...
|
float | _XBound |
| max x coordinate of last string printed. More...
|
sint32 | _MaxIndex |
| maximum index reached. More...
|
bool | _Shaded |
| true if text is shaded. More...
|
float | _ShadeExtent |
| shade's extent. More...
|
bool | _Keep800x600Ratio |
| resize fontSize??? More...
|
CComputedString | _TempString |
| for printAt() and printfAt(). This prevents from creating VBdrvinfos each time they are called (N*each frame!!). More...
|
CComputedString | _TempShadowString |