Cubios::SceneObject
Constructors
SceneObject
Summary
Constructs GFX Engine scene object object
Synopsis
Public Methods
SetColor
Summary
Sets object color that may act as a color key if object's image data pixel depth is 16 bits
Arguments
- v - ARGB8888 color value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetA
Summary
Sets object global transparency value
Arguments
- a - global transparency value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetAf
Summary
Sets object global transparency normalized value, [0.0,1.0]
Arguments
- a - global transparency value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetAfSafe
Summary
Sets object global transparency normalized value with input interval clamping, [0.0,1.0]
Arguments
- a - global transparency value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetR
Summary
Sets red component value of the object's color
Arguments
- r - red component value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetG
Summary
Sets green component value of the object's color
Arguments
- g - green component value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetB
Summary
Sets blue component value of the object's color
Arguments
- b - blue component value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetVisible
Summary
Toggles object visibilty. If set invisible, the object is excluded from rendering queue
Arguments
- v - visibility flag
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetTransform
Summary
Sets transform to the object
Arguments
- t - new transform value
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetPosition
Summary
Sets screen position to the object
Arguments
- p - two-component vector that holds coordinates of desired position
Output
Returns a pointer to the object to which the change was applied
Synopsis
Arguments
- x - x screen coordinate of desired position
- y - y screen coordinate of desired position
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetRotation
Summary
Sets rotation to the object
Arguments
- r - new rotation angle value, in degrees
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetMirroring
Summary
Sets mirroring mode to the object
Arguments
- m - new mirroring mode
Output
Returns a pointer to the object to which the change was applied
Synopsis
Move
Summary
Changes object position by offset
Arguments
- v - two-component vector that holds offset values
Output
Returns a pointer to the object to which the change was applied
Synopsis
Arguments
- dx - offset value along x axis
- dy - offset value along y axis
Output
Returns a pointer to the object to which the change was applied
Synopsis
ScreenPosition
Summary
Gets current screen position of the object
Output
Returns a two-component vector that contains current screen coordinates
Synopsis
Public Members
Transform
Summary
Current transform
Synopsis
Color
Summary
Current color
Synopsis
ScreenAngle
Summary
Current screen angle - an angle of rotation of a screen the object is currently being rendered on
Synopsis
Visible
Summary
Current visibility flag
Synopsis
Parent
Summary
Pointer to a screen the object is currently being rendered on
Synopsis
InBegin
Summary
Flag that indicates the object is currently being used within Begin()-End() block
Synopsis