MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / CircleWave

Class CircleWave

Source/CircleWave.h:33–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33class CircleWave : public ax::DrawNode, public ax::ActionTweenDelegate {
34private:
35 void draw(ax::Renderer *renderer, const ax::Mat4& transform, uint32_t flags) override;
36 virtual void updateTweenAction(float value, std::string_view key) override;
37 bool init(float duration, ax::Color4B color, float radiusMin, float radiusMax, bool easing, float lineWidth, bool filled);
38 void update(float dt) override;
39
40 ax::Color4F _color; // damn CC_SYNTHESIZE doesnt work with it :skull:
41 ax::Node* _followedNode;
42 AX_SYNTHESIZE(float, _lineWidth, LineWidth)
43 AX_SYNTHESIZE(float, _radius, Radius)
44 AX_SYNTHESIZE(float, _width, Width)
45 AX_SYNTHESIZE(bool, _filled, Filled)
46
47public:
48 void followNode(ax::Node* node);
49 static CircleWave* create(float duration, ax::Color4B color, float radiusMin, float radiusMax, bool easing, bool filled, float lineWidth = 2.0f);
50
51 void setColor(ax::Color4B col);
52 ax::Color4B getColor();
53};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected