v_sim.GlExtLabel¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
align |
r/w |
store the alignment when using window coordinates. |
|
height |
r/w |
the height of the rendered label. |
|
lbl |
[ |
r/w |
store a text. |
offset |
[ |
r/w |
store an offset in modelview coordinates. |
rgba |
[ |
r/w |
store a rendering colour for the text. |
width |
r/w |
the width of the rendered label. |
|
xyz |
[ |
r/w |
store a position in scene coordinates or window coordinates. |
Methods¶
None
Details¶
- class v_sim.GlExtLabel¶
Convenient packing structure to store labels to be rendered on scene. When used with
v_sim.GlExt.blitLabels(), the coordinates are used as object coordinates. When used withv_sim.GlExt.blitLabelsOnScreen() the coordinates are window coordinates and alignment can be tuned with the align member.width and height are readable values after a call to
v_sim.GlExt.setLabels().New in version 3.9.