OpenLayer Offline Manual

OpenLayer | TextRenderer | IsValid IsValid
bool IsValid();
Returns true if the TextRenderer is ready to use (loaded and not destroyed) If the TextRenderer isn't loaded yet or the Destroy() -method is called the TextRenderer is invalidiated and IsValid() will return false. Examples TextRenderer globalTextRenderer; // Check if globalTextRenderer is not ready to be used (currently it's not) // if( globalTextRenderer.IsValid() == false ) { allegro_message( "globalTextRenderer isn't loaded yet!" ); } 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 IsValid? Click here.