자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
void SpriteManager::Add(Sprite &sprite) { mSprites.push_back(&sprite); DEBUG("Added sprite with render index: " << sprite.GetRenderIndex()); // Sort the sprites in the order they should be rendered. sort(mSprites.begin(), mSprites.end(), sortSpriteByRenderIndex); DEBUG("Sorted " << mSprites.size() << " sprites by render index."); }