WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::SceneObject
Mission NodeSDK 6.2C++gfx engine

Cubios::SceneObject

Cubios::SceneObject Constructors SceneObject Summary Constructs GFX Engine scene object object Synopsis SceneObject() Public Methods SetColor Summary Sets ob...

API / SDK 6.2 / C++ / gfx engine

Cubios::SceneObject

Constructors

SceneObject

Summary

Constructs GFX Engine scene object object

Synopsis

Cubios::SceneObject
CPP
1SceneObject()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetColor(uint32_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetA(uint8_t a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetAf(float a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetAfSafe(float a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetR(uint8_t r)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetG(uint8_t g)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetB(uint8_t b)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetVisible(bool v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetTransform(const Math::Transform& t)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetPosition(const Math::Vec2& p)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetPosition(float x, float y)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetRotation(int r)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* SetMirroring(unsigned int m)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* Move(const Math::Vec2& v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

Cubios::SceneObject
CPP
1SceneObject* Move(float dx, float dy)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ScreenPosition

Summary

Gets current screen position of the object

Output

Returns a two-component vector that contains current screen coordinates

Synopsis

Cubios::SceneObject
CPP
1const Math::Vec2 ScreenPosition()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Members

Transform

Summary

Current transform

Synopsis

Cubios::SceneObject
CPP
1Math::Transform Transform
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Color

Summary

Current color

Synopsis

Cubios::SceneObject
CPP
1Math::Color Color
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ScreenAngle

Summary

Current screen angle - an angle of rotation of a screen the object is currently being rendered on

Synopsis

Cubios::SceneObject
CPP
1uint32_t ScreenAngle
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Visible

Summary

Current visibility flag

Synopsis

Cubios::SceneObject
CPP
1bool Visible
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Parent

Summary

Pointer to a screen the object is currently being rendered on

Synopsis

Cubios::SceneObject
CPP
1Screen* Parent
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

InBegin

Summary

Flag that indicates the object is currently being used within Begin()-End() block

Synopsis

Cubios::SceneObject
CPP
1bool InBegin
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsSceneObjectPublic MethodsSetColorSetASetAfSetAfSafeSetRSetGSetBSetVisibleSetTransformSetPositionSetRotationSetMirroringMoveScreenPositionPublic MembersTransformColorScreenAngleVisibleParentInBegin
Context Rail

Related nodes

Cubios::Math
API / SDK 6.2 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.2 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.2 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.2 / C++ / gfx engine
Previous Node
Cubios::Scene
API / SDK 6.2 / C++ / gfx engine
Next Node
Cubios::Screen
API / SDK 6.2 / C++ / gfx engine