Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
[Added] destroyScene function to Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
betajaen committed Aug 29, 2009
1 parent 6c7e255 commit 8b032dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/source/NxOgreWorld.cpp
Expand Up @@ -254,6 +254,14 @@ Scene* World::createScene(ScenePrototype* prototype)
return scene;
}

void World::destroyScene(Scene* scene)
{
if (scene == 0)
return;
mScenes.remove(scene);
NxOgre_Delete(scene);
}

bool World::hasHardware(void) const
{
if (mDeadSDK)
Expand Down
4 changes: 4 additions & 0 deletions build/source/NxOgreWorld.h
Expand Up @@ -87,6 +87,10 @@ class NxOgrePublicClass World : public PointerClass<Classes::_World>
*/
Scene* createScene(ScenePrototype*);

/** \brief Destroys a single scene
*/
void destroyScene(Scene*);

/** \brief Does the current computer have a PhysX accelerator, or a GPU capable of PhysX acceleration?
*/
bool hasHardware(void) const;
Expand Down

0 comments on commit 8b032dd

Please sign in to comment.