|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <DragonBonesAnimation.hpp>
Public Member Functions | |
| DragonBonesAnimation ()=default | |
Public Attributes | |
| std::string | skeletonPath |
| Skeleton data (*_ske.json or .dbbin). | |
| std::string | atlasPath |
| Texture atlas data (*_tex.json). | |
| std::string | armature |
| Which armature in the file; empty takes the first. | |
| std::string | animation |
| Current animation name. | |
| f32 | timeScale {1.0f} |
| Animation playback speed multiplier. | |
| bool | loop {true} |
| Whether to loop the animation. | |
| bool | playing {true} |
| Whether animation is currently playing. | |
| f32 | fadeInTime {0.0f} |
| Seconds to crossfade over when the animation changes. | |
| bool | flipX {false} |
| Flip armature horizontally. | |
| bool | flipY {false} |
| Flip armature vertically. | |
| glm::vec4 | color {1.0f, 1.0f, 1.0f, 1.0f} |
| Color tint (RGBA, 0-1 range). | |
| i32 | layer {0} |
| Sorting layer (higher = rendered on top). | |
| f32 | skeletonScale {1.0f} |
| Armature scale factor. | |
| u32 | material {0} |
| Custom material ID (0 = use default batch shader). | |
| bool | enabled {true} |
| bool | needsReload {true} |
| Set while the paths have changed and the armature is not built yet. | |
Definition at line 35 of file DragonBonesAnimation.hpp.
|
default |
| std::string esengine::ecs::DragonBonesAnimation::animation |
Current animation name.
Definition at line 50 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| std::string esengine::ecs::DragonBonesAnimation::armature |
Which armature in the file; empty takes the first.
Definition at line 46 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| std::string esengine::ecs::DragonBonesAnimation::atlasPath |
Texture atlas data (*_tex.json).
Definition at line 42 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| glm::vec4 esengine::ecs::DragonBonesAnimation::color {1.0f, 1.0f, 1.0f, 1.0f} |
Color tint (RGBA, 0-1 range).
Definition at line 78 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::DragonBonesAnimation::enabled {true} |
Definition at line 93 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::DragonBonesAnimation::fadeInTime {0.0f} |
Seconds to crossfade over when the animation changes.
Definition at line 66 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::DragonBonesAnimation::flipX {false} |
Flip armature horizontally.
Definition at line 70 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::DragonBonesAnimation::flipY {false} |
Flip armature vertically.
Definition at line 74 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| i32 esengine::ecs::DragonBonesAnimation::layer {0} |
Sorting layer (higher = rendered on top).
Definition at line 82 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::DragonBonesAnimation::loop {true} |
Whether to loop the animation.
Definition at line 58 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| u32 esengine::ecs::DragonBonesAnimation::material {0} |
Custom material ID (0 = use default batch shader).
Definition at line 90 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::DragonBonesAnimation::needsReload {true} |
Set while the paths have changed and the armature is not built yet.
Definition at line 96 of file DragonBonesAnimation.hpp.
| bool esengine::ecs::DragonBonesAnimation::playing {true} |
Whether animation is currently playing.
Definition at line 62 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| std::string esengine::ecs::DragonBonesAnimation::skeletonPath |
Skeleton data (*_ske.json or .dbbin).
Definition at line 38 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::DragonBonesAnimation::skeletonScale {1.0f} |
Armature scale factor.
Definition at line 86 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::DragonBonesAnimation::timeScale {1.0f} |
Animation playback speed multiplier.
Definition at line 54 of file DragonBonesAnimation.hpp.
Referenced by EMSCRIPTEN_BINDINGS().