Cubios::Screen
Constructors
Screen
Summary
Constructs screen object
Arguments
- id - identifier of the screen
Synopsis
Public Methods
SetOrientation
Summary
Sets current screen orientation mode
Arguments
- mode - screen orientation mode
Synopsis
Position
Summary
Gets current screen position
Output
Screen position value
Synopsis
Direction
Summary
Gets current screen direction
Output
Screen direction value
Synopsis
OppositeFace
Summary
Gets an index of a face that is opposite to the one the screen belongs to
Output
An index of the face
Synopsis
Face
Summary
Gets an index of a face the screen belongs to
Output
An index of the face
Synopsis
ID
Summary
Gets screen identifier
Output
Screen identifier
Synopsis
Angle
Summary
Gets current screen rotation angle
Output
Rotation angle, in degrees
Synopsis
Add
Summary
Adds an instance of GFX object to the rendering queue of the screen
Arguments
- obj - pointer to an instance of GFX object
Output
Returns a pointer to the recently added object
Synopsis
AddCopy
Summary
Adds a copy of GFX object to the rendering queue of the screen
Arguments
- obj - pointer to an instance of GFX object a copy of which will be added to the queue
Output
Returns a pointer to the recently added object
Synopsis
Begin
Summary
Initializes a commit of objects and is called before the immediate start of adding objects to the queue
Arguments
- mode - screen orientation mode
- autorotation - auto-rotation flag
Synopsis
End
Summary
Finalizes the commit of objects to the queue and submits the added objects for rendering
Synopsis
IsAutorotation
Summary
Checks if auto-rotation mode is turned on
Output
Returns true if auto-rotation mode is on, otherwise false
Synopsis