SG * SG_New (void *parent, const char *name, Uint flags)
void SG_Clear (SG *sg)
|
The
SG_New() function allocates, initializes, and attaches a
SG object.
Acceptable
flags options include:
SG_OVERLAY_WIREFRAME | Overlay wireframe onto geometric objects when rendering scene.
| SG_OVERLAY_VERTICES | Overlay vertices onto geometric objects when rendering scene.
| SG_OVERLAY_VNORMALS | Overlay vertex normals when rendering scene.
| SG_OVERLAY_FNORMALS | Overlay facet normals when rendering scene.
| SG_SKIP_UNKNOWN_NODES | When loading the contents of a scene, ignore unknown/unimplemented
elements (otherwise, encountering an unknown node will make the load
operation fail).
| SG_NO_DEFAULT_NODES | Don't create the default nodes (e.g.,
Camera0, Light0). |
The
SG_Clear() routine reinitializes
sg to an empty scene.
If default nodes (e.g.,
Camera0) are used, they are preserved but their state is reinitialized.
|