Ovis_Decoration_3D_Text_Create()
Abstract
Creates 3D text.
Syntax
Ovis_Decoration_3D_Text_Create (text, position, color, layer_ptr, destroy_proc, user_state_ptr)
| Argument | Type | Description |
|---|---|---|
text |
const char * |
Text |
position |
OvisT_3D_Position |
Position of the text |
color |
PrgT_Color |
Color |
layer_ptr |
OvisT_Layer * |
Ovis layer |
destroy_proc |
OvisT_Decoration_State_Destroy_Proc |
Destroys the data associated with the object and deallocates its memory |
user_state_ptr |
void * |
Optional user-provided state of the decoration |
Return Type
OvisT_3D_Text *
The 3D text
Header
ovis_decoration.h
Details
This function creates Ovis 3D text. It specifies the attributes of the text. Initially text has 0% transparency (fully visible) and is not flashing.
Example
OvisT_3D_Position pos;
OvisT_3D_Text * text;
PrgT_Color color = prg_rgb_from_string ("blue");
Ovis_3D_Position_Geodetic_Set (&pos)
text = Ovis_Decoration_3D_Text_Create ("This is my text", pos, color, OPC_NIL,
OPC_NIL, OPC_NIL);
Errors
- None
Reference
- Use the function
Ovis_3D_Text_Position_Set()to modify the position of the text. - Use the function
Ovis_Text_String_Set()to modify the displayed text. - Use the function
Ovis_Decoration_Color_Set()to modify the color of the text. - Use the function
Ovis_Decoration_Transparency_Set()to modify the transparency of the text. - Use the function
Ovis_Decoration_Flashing_Set()to modify the flashing status.