Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
73
void SpriteAtlas::addFrame(unsigned int index, ScreenRect src_rect,
74
unsigned int delay)
75
{
76
animations[index].push_back(AnimationFrame(src_rect, delay));
77
}
78
79
Entity::Entity() { atlas = NULL; }
80
Callers
1
initializeTileAnimations
Function · 0.45
Calls
1
AnimationFrame
Class · 0.85
Tested by
no test coverage detected