4 #include <spine/spine.h>
5 #include <rag/DisplayObject.h>
6 #include <rag/Renderer.h>
20 SkeletonDrawable(spSkeletonData* skeleton, spAnimationStateData* stateData = 0);
24 virtual void render()
override;
27 rag::VertexArray vertexArray;
29 spAnimationState* state;
30 spSkeletonBounds* skeletonBounds;
38 rag::Material::EBlendMode blendMode;
41 void draw(rag::VertexArray& vertexArray, RenderState renderState);
43 bool ownsAnimationStateData;
virtual void updateBounds(rag::DisplayObject *targetCoordinateSpace) override
Updates the bounding box of the object according to childs bounds.
Definition: Spine.cpp:73
virtual void render() override
Renders the DisplayObject in the screen.
Definition: Spine.cpp:93
virtual void logicUpdate() override
This function is called every frame.
Definition: Spine.cpp:65
Core object used to display things in screen.
Definition: DisplayObject.h:23
Image object.
Definition: Image.h:19
Display 2D Skeletal Animations made with the 3rd party tool Spine.
Definition: Spine.h:16