mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 01:15:44 -04:00

Removed the arm7 section Changed the makefile to only use the arm9 stuff Epicpkmn: Fix source/Graphics/GraphicsManager.cpp Co-Authored-By: Pk11 <epicpkmn11@outlook.com> Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
24 lines
460 B
C++
24 lines
460 B
C++
#include "SpriteContainer.h"
|
|
|
|
SpriteContainer::~SpriteContainer()
|
|
{
|
|
if (mSpriteOwner)
|
|
{
|
|
for (spriteIterator it = mSprites.begin(); it != mSprites.end(); ++it)
|
|
{
|
|
if (*it != NULL)
|
|
delete *it;
|
|
}
|
|
}
|
|
}
|
|
|
|
void SpriteContainer::AddToSpriteManager(SpriteManager& spriteManager)
|
|
{
|
|
spriteManager.Add(mSprites);
|
|
|
|
//once sprites are added to spritemanager, the memory
|
|
//belongs to the spritemanager, and should be deleted by it
|
|
mSpriteOwner = false;
|
|
}
|
|
|