MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / addFrame

Method addFrame

engine/src/entity.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void SpriteAtlas::addFrame(unsigned int index, ScreenRect src_rect,
74 unsigned int delay)
75{
76 animations[index].push_back(AnimationFrame(src_rect, delay));
77}
78
79Entity::Entity() { atlas = NULL; }
80

Callers 1

initializeTileAnimationsFunction · 0.45

Calls 1

AnimationFrameClass · 0.85

Tested by

no test coverage detected