Function
Returns information about a Screen Object.
Syntax
#include <dx/dx.h>
Screen DXGetScreenInfo(Screen s, Object *o, int *position, int *z)
Functional Details
Returns the Object being transformed and the screen transformation parameters from Screen Object s. If o is not NULL, then the Object being transformed by the screen transformation is returned in o. Similarly, if position is not NULL, then the type of screen transformation is returned in position. Finally, if z is not NULL, the depth of the Screen Object is returned in z.
The value returned in position will be one of the following:
When position is SCREEN_STATIONARY, then z will take one of the following values:
< 0 | Object o is to be displayed behind the other Objects in the scene. |
0 | Object o is to be displayed in the middle of the scene. |
> 0 | Object o is to be displayed in front of the other Objects in the scene. |
Return Value
Returns s or returns NULL and sets an error code if s is not a Screen Object.
See Also
DXNewScreen, DXSetScreenObject