OpenLayer Offline Manual

OpenLayer | TextRenderer | UseAutoDelete UseAutoDelete Advanced function
void UseAutoDelete()
Chooses the TextRender to be automatically deleted when the program quits. If you have any dynamically allocated TextRenderers you may wish them to be automatically destroyed when the program quits. Note that this function should only be called if the TextRenderer is dynamically allocated! Examples // Dynamically allocate a TextRenderer // TextRenderer *myRenderer = new TextRenderer( ... ); // Choose the TextRenderer to be automatically deleted when the program quits // myRenderer->UseAutoDelete(); Other functions of the class TextRenderer
Load | Load the font
Print | Prints the given text to the screen
SetColor | Sets the color of the font
GetColor | Returns the text color of the font
SetItalics | Sets the italics angle of the text
GetItalics | Returns the italics angle of the text
Width | Returns the width of the given text
Height | Returns the height of the given text
FirstLineWidth | Returns the width of the first text line of the given text
FirstLineHeight | Returns the height of the first text line of the given text
IsValid | Checks if the TextRenderer was loaded correctly
Advanced functions
GetFace |
SendToGPU |
UnloadFromGPU |
UseAutoDelete |
Back to the main page of the manual Questions about UseAutoDelete? Click here.