Top | ![]() |
![]() |
![]() |
![]() |
VisuSurface object can be drawn with this class. Simply
create a new VisuGlExtSurfaces object and add surfaces with
visu_gl_ext_surfaces_add()
. It is better to add several surfaces to
a single VisuGlExtSurfaces object since all vertices are reordered
when necessary to ensure proper transparency.
VisuGlExtSurfaces *
visu_gl_ext_surfaces_new (const gchar *name
);
Creates a new VisuGlExt to draw surfaces.
name |
the name to give to the extension (default is VISU_GL_EXT_SURFACES_ID). |
[allow-none] |
Since: 3.7
gboolean visu_gl_ext_surfaces_add (VisuGlExtSurfaces *surfaces
,VisuSurface *surf
);
Add a new surface to the list of drawn surfaces.
Since: 3.7
gboolean visu_gl_ext_surfaces_remove (VisuGlExtSurfaces *surfaces
,VisuSurface *surf
);
Removes surf
from the list of drawn surfaces.
Since: 3.7
gboolean visu_gl_ext_surfaces_setMask (VisuGlExtSurfaces *surfaces
,VisuPlaneSet *mask
);
Attach mask
to every surface of the set.
Since: 3.8
gboolean visu_gl_ext_surfaces_setOnTheFlyOrdering (VisuGlExtSurfaces *surfaces
,VisuGlView *view
);
Attach surfaces
to view
, so it can be rendered there.
surfaces |
the VisuGlExtSurfaces object to attached to rendering view. |
|
view |
a VisuGlView object. |
[transfer full][allow-none] |
Since: 3.7
gboolean visu_gl_ext_surfaces_setOnObserveOrdering (VisuGlExtSurfaces *surfaces
,VisuInteractive *inter
);
Attach surfaces
to inter
, so it can be rendered there.
surfaces |
the VisuGlExtSurfaces object to attached to rendering inter. |
|
inter |
a VisuInteractive object. |
[transfer full][allow-none] |
Since: 3.7
gboolean visu_gl_ext_surfaces_setFittingBox (VisuGlExtSurfaces *surfaces
,VisuBox *box
);
Changes the box from which surfaces are scaled in.
Since: 3.8
gboolean
visu_gl_ext_surfaces_getDrawIntra (VisuGlExtSurfaces *surfs
);
Retrieve if the interiors of surfaces are drawn with a colour inverse or not.
gboolean visu_gl_ext_surfaces_setDrawIntra (VisuGlExtSurfaces *surfs
,gboolean status
);
Set if the interiors of surfaces are drawn with a colour inverse or not.
#define VISU_GL_EXT_SURFACES_ID "Surfaces"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.
“draw-intra”
property“draw-intra” gboolean
use inverse colour for inside.
Flags: Read / Write
Default value: FALSE
“fitting-box”
property“fitting-box” VisuBox *
If set, all surfaces are scaled to fit this box.
Flags: Read / Write
“added”
signalvoid user_function (VisuGlExtSurfaces *set, VisuSurface *surface, gpointer user_data)
This signal is emitted each time a surface is added to the set.
set |
the object emitting the signal. |
|
surface |
the added VisuSurface object. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8
“removed”
signalvoid user_function (VisuGlExtSurfaces *set, VisuSurface *surface, gpointer user_data)
This signal is emitted each time a surface is removed from the set.
set |
the object emitting the signal. |
|
surface |
the removed VisuSurface object. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8