aboutsummaryrefslogtreecommitdiff
path: root/include/ISceneNode.h
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-05-21 15:00:32 -0700
committerGitHub <noreply@github.com>2022-05-22 00:00:32 +0200
commit128cf1696c2803e12ebbdd3ee034e0c9eea90fae (patch)
tree1b9243ae45c0356a61981243fcb9d428b1ceba34 /include/ISceneNode.h
parent3e81f3809806a921a7914f6b9c4b02c8532fbc9f (diff)
downloadirrlicht-128cf1696c2803e12ebbdd3ee034e0c9eea90fae.tar.xz
Remove core::list and replace uses with std::list (#105)
Diffstat (limited to 'include/ISceneNode.h')
-rw-r--r--include/ISceneNode.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/ISceneNode.h b/include/ISceneNode.h
index 3f50c6e..1f8c2c6 100644
--- a/include/ISceneNode.h
+++ b/include/ISceneNode.h
@@ -13,8 +13,8 @@
#include "irrString.h"
#include "aabbox3d.h"
#include "matrix4.h"
-#include "irrList.h"
#include "IAttributes.h"
+#include <list>
namespace irr
{
@@ -24,7 +24,7 @@ namespace scene
class ISceneManager;
//! Typedef for list of scene nodes
- typedef core::list<ISceneNode*> ISceneNodeList;
+ typedef std::list<ISceneNode*> ISceneNodeList;
//! Scene node interface.
/** A scene node is a node in the hierarchical scene graph. Every scene
@@ -81,7 +81,7 @@ namespace scene
{
if (IsVisible)
{
- ISceneNodeList::Iterator it = Children.begin();
+ ISceneNodeList::iterator it = Children.begin();
for (; it != Children.end(); ++it)
(*it)->OnRegisterSceneNode();
}
@@ -103,7 +103,7 @@ namespace scene
// perform the post render process on all children
- ISceneNodeList::Iterator it = Children.begin();
+ ISceneNodeList::iterator it = Children.begin();
for (; it != Children.end(); ++it)
(*it)->OnAnimate(timeMs);
}
@@ -289,7 +289,7 @@ namespace scene
e.g. because it couldn't be found in the children list. */
virtual bool removeChild(ISceneNode* child)
{
- ISceneNodeList::Iterator it = Children.begin();
+ ISceneNodeList::iterator it = Children.begin();
for (; it != Children.end(); ++it)
if ((*it) == child)
{
@@ -309,7 +309,7 @@ namespace scene
*/
virtual void removeAll()
{
- ISceneNodeList::Iterator it = Children.begin();
+ ISceneNodeList::iterator it = Children.begin();
for (; it != Children.end(); ++it)
{
(*it)->Parent = 0;
@@ -519,7 +519,7 @@ namespace scene
//! Returns a const reference to the list of all children.
/** \return The list of all children of this node. */
- const core::list<ISceneNode*>& getChildren() const
+ const std::list<ISceneNode*>& getChildren() const
{
return Children;
}
@@ -611,7 +611,7 @@ namespace scene
// clone children
- ISceneNodeList::Iterator it = toCopyFrom->Children.begin();
+ ISceneNodeList::iterator it = toCopyFrom->Children.begin();
for (; it != toCopyFrom->Children.end(); ++it)
(*it)->clone(this, newManager);
}
@@ -622,7 +622,7 @@ namespace scene
{
SceneManager = newManager;
- ISceneNodeList::Iterator it = Children.begin();
+ ISceneNodeList::iterator it = Children.begin();
for (; it != Children.end(); ++it)
(*it)->setSceneManager(newManager);
}
@@ -646,7 +646,7 @@ namespace scene
ISceneNode* Parent;
//! List of all children of this node
- core::list<ISceneNode*> Children;
+ std::list<ISceneNode*> Children;
//! Pointer to the scene manager
ISceneManager* SceneManager;