gameEngine/gameEngine/Scene.cpp
//assuming these sprites don't have a scene, used for loading a lot of sprites via threading or just batching.
assuming these sprites don't have a scene, used for loading a lot of sprites via threading or just batching.
assuming these sprites don ' t have a scene used for loading a lot of sprites via threading or just batching .
void Scene::loadSprites(std::vector<AbstractSprite*> sprites)
{
	threadMutex.lock();
	Sprites.insert(Sprites.end(), sprites.begin(), sprites.end());
	MovingSceneObjects.insert(MovingSceneObjects.end(), sprites.begin(), sprites.end());
	DrawSceneObjects.insert(DrawSceneObjects.end(), sprites.begin(), sprites.end());
	SceneObjects.insert(SceneObjects.end(), sprites.begin(), sprites.end());
	threadMutex.unlock();
}
void Scene :: loadSprites ( std :: vector < AbstractSprite * > sprites ) { threadMutex . lock ( ) ; Sprites . insert ( Sprites . end ( ) , sprites . begin ( ) , sprites . end ( ) ) ; MovingSceneObjects . insert ( MovingSceneObjects . end ( ) , sprites . begin ( ) , sprites . end ( ) ) ; DrawSceneObjects . insert ( DrawSceneObjects . end ( ) , sprites . begin ( ) , sprites . end ( ) ) ; SceneObjects . insert ( SceneObjects . end ( ) , sprites . begin ( ) , sprites . end ( ) ) ; threadMutex . unlock ( ) ; }
assuming these sprites don't have a scene, used for loading a lot of sprites via threading or just batching.
assuming these sprites don ' t have a scene used for loading a lot of sprites via threading or just batching .