MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / draw

Method draw

src/Abyss/Common/Animation.h:22–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 public:
21 explicit Animation(std::string_view path) : _drawable(path), _frameTime(), _frameIdx(), _animationSpeed(0.5 * (AnimationSpeedUnit)) {}
22 void draw(int x, int y) { _drawable.draw(_frameIdx, x, y); }
23
24 void update(const std::chrono::duration<double> deltaTime) {
25 _frameTime += deltaTime.count();

Callers 1

Drawable.hFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected