static sgCScene* sgCScene::GetScene()
Description:
Returns the pointer to a global object of the sgCScene class.
Arguments:
No arguments.
Returned value:
Returns the pointer to a global object of the sgCScene class. You work with the scene through this pointer.
Following shortening is set:
#define sgGetScene sgCScene::GetScene
Example:
sgLine* line = sgCreateLine(0.0, 0.0, 0.0, 2.0, 3.0, 5.0);
sgGetScene()->AttachObject(line);
See also: