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::Gfx::SpriteAtlasElement
Mission NodeSDK 6.3C++gfx engine

Cubios::Gfx::SpriteAtlasElement

Cubios::Gfx::SpriteAtlasElement Constructors SpriteAtlasElement Summary Constructs an sprite atlas element object Arguments host pointer to an instance of Sp...

API / SDK 6.3 / C++ / gfx engine

Cubios::Gfx::SpriteAtlasElement

Constructors

SpriteAtlasElement

Summary

Constructs an sprite atlas element object

Arguments

  • host - pointer to an instance of SpriteAtlas class to which the element will be added
  • rc - rectangular area on the source texture that will be cut out and added as a sprite

Synopsis

Cubios::Gfx::SpriteAtlasElement
CPP
1SpriteAtlasElement(SpriteAtlasBase* host, const Cubios::Math::Rect2& rc)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

Rect

Output

Returns a pointer to an object containing rectangular area on the source texture that is used as a sprite

Synopsis

Cubios::Gfx::SpriteAtlasElement
CPP
1Cubios::Math::Rect2* Rect()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Virtual Methods

Render

Summary

Implements sprite atlas element rendering

Output

Returns true if function call succeeds, otherwise false.

Synopsis

Cubios::Gfx::SpriteAtlasElement
CPP
1void Render() override
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Copy

Summary

Creates a copy of the sprite atlas element

Arguments

  • id - new sprite identifier
  • rc - rectangular area on the source texture that will be cut out and added as a sprite

Output

Returns a pointer to the copied object.

Synopsis

Cubios::Gfx::SpriteAtlasElement
CPP
1virtual SpriteAtlasElement* Copy()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsSpriteAtlasElementPublic MethodsRectVirtual MethodsRenderCopy
Context Rail

Related nodes

Cubios::Math
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.3 / C++ / gfx engine
Previous Node
Cubios::Gfx::SpriteAtlas
API / SDK 6.3 / C++ / gfx engine
Next Node
Cubios::Gfx::AnimatedSprite
API / SDK 6.3 / C++ / gfx engine