mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Use std::vector instead of std::list for RenderObject children
This commit is contained in:
parent
35c8086802
commit
300f326777
5 changed files with 18 additions and 70 deletions
|
@ -167,8 +167,6 @@ public:
|
|||
|
||||
void addChild(RenderObject *r, ParentManaged pm, RenderBeforeParent rbp = RBP_NONE, ChildOrder order = CHILD_BACK);
|
||||
void removeChild(RenderObject *r);
|
||||
void removeAllChildren();
|
||||
void recursivelyRemoveEveryChild();
|
||||
|
||||
Vector getRealPosition();
|
||||
Vector getRealScale();
|
||||
|
@ -279,7 +277,7 @@ public:
|
|||
InterpolatedVector *positionSnapTo;
|
||||
|
||||
//DestroyType destroyType;
|
||||
typedef std::list<RenderObject*> Children;
|
||||
typedef std::vector<RenderObject*> Children;
|
||||
Children children, childGarbage;
|
||||
|
||||
//Flags flags;
|
||||
|
@ -312,10 +310,6 @@ protected:
|
|||
virtual void deathNotify(RenderObject *r);
|
||||
virtual void onEndOfLife() {}
|
||||
|
||||
// spread parentManagedStatic flag to the entire child tree
|
||||
void propogateParentManagedStatic();
|
||||
void propogateAlpha();
|
||||
|
||||
inline void updateLife(float dt)
|
||||
{
|
||||
if (decayRate > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue