The SourceSprite class defines the source sprite from JugiMap Editor.
More...
#include <jmSourceGraphics.h>
The SourceSprite class defines the source sprite from JugiMap Editor.
A source sprite stores common sprite data and parameters which can be shared by all Sprite objects of the same source sprite. For StandardSprite objects these data includes textures, shapes, animations etc.
◆ Status
The status flags for standard source sprites (SpriteKind::STANDARD).
Enumerator |
---|
HAS_IMAGES_OF_DIFFERENT_SIZE | Has images of different size.
|
HAS_IMAGES_WITH_SPRITE_SHAPES | Has image(s) with defined sprite shapes.
|
HAS_IMAGES_WITH_DIFFERENT_SPRITE_SHAPES | Has more images and they do not have all the same sprite shapes.
|
HAS_MULTIPLE_SPRITE_SHAPES_IN_IMAGE | The source sprite has image(s) with multiple sprite shapes.
|
◆ Init()
Initialize this source sprite.
This function is called by Sprite::InitEngineSprite and should not be called manually.
◆ GetKind()
Returns the kind of this source sprite.
◆ GetName()
Returns the name of this source sprite.
◆ GetConstantParameters()
std::vector<Parameter>& GetConstantParameters |
( |
| ) |
|
|
inline |
Returns a reference to the vector of stored constant parameters in this source sprite.
◆ GetGraphicItems()
Returns a reference to the vector of graphic items in this source sprite.
◆ GetFrameAnimations()
Returns a reference to the vector of stored frame animations in this source sprite.
◆ GetTimelineAnimations()
Returns a reference to the vector of stored timeline animations in this source sprite.
◆ GetStatusFlags()
Returns the status flags.
◆ GetSourceComposedSprite()
Returns a pointer to the owned source composed sprite or nullptr if there is none.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmSourceGraphics.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmSourceGraphics.cpp