v_sim.GlExtLabel

Fields

Name

Type

Access

Description

align

[v_sim.GlExtAlignments]

r/w

store the alignment when using window coordinates.

height

int

r/w

the height of the rendered label.

lbl

[int]

r/w

store a text.

offset

[float]

r/w

store an offset in modelview coordinates.

rgba

[float]

r/w

store a rendering colour for the text.

width

int

r/w

the width of the rendered label.

xyz

[float]

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 with v_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.