forked from Mirrorlandia_minetest/irrlicht
IVertexBuffer and IIndexBuffer reallocate functions now pass through canShrink parameter to array
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6341 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
24f2a1e9ab
commit
a2bb74096d
@ -27,7 +27,7 @@ namespace scene
|
||||
virtual u32 getLast() =0;
|
||||
virtual void setValue(u32 index, u32 value) =0;
|
||||
virtual void set_used(u32 usedNow) =0;
|
||||
virtual void reallocate(u32 new_size) =0;
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) =0;
|
||||
virtual u32 allocated_size() const =0;
|
||||
virtual void* pointer() =0;
|
||||
virtual video::E_INDEX_TYPE getType() const =0;
|
||||
@ -66,9 +66,9 @@ namespace scene
|
||||
Indices.set_used(usedNow);
|
||||
}
|
||||
|
||||
virtual void reallocate(u32 new_size) IRR_OVERRIDE
|
||||
virtual void reallocate(u32 new_size, bool canShrink) IRR_OVERRIDE
|
||||
{
|
||||
Indices.reallocate(new_size);
|
||||
Indices.reallocate(new_size, canShrink);
|
||||
}
|
||||
|
||||
virtual u32 allocated_size() const IRR_OVERRIDE
|
||||
@ -180,9 +180,9 @@ namespace scene
|
||||
Indices->set_used(usedNow);
|
||||
}
|
||||
|
||||
virtual void reallocate(u32 new_size) IRR_OVERRIDE
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) IRR_OVERRIDE
|
||||
{
|
||||
Indices->reallocate(new_size);
|
||||
Indices->reallocate(new_size, canShrink);
|
||||
}
|
||||
|
||||
virtual u32 allocated_size() const IRR_OVERRIDE
|
||||
|
@ -28,7 +28,7 @@ namespace scene
|
||||
virtual video::S3DVertex& operator [](const u32 index) const =0;
|
||||
virtual video::S3DVertex& getLast() =0;
|
||||
virtual void set_used(u32 usedNow) =0;
|
||||
virtual void reallocate(u32 new_size) =0;
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) =0;
|
||||
virtual u32 allocated_size() const =0;
|
||||
virtual video::S3DVertex* pointer() =0;
|
||||
virtual video::E_VERTEX_TYPE getType() const =0;
|
||||
@ -56,8 +56,8 @@ namespace scene
|
||||
virtual void set_used(u32 usedNow) IRR_OVERRIDE
|
||||
{Vertices.set_used(usedNow);}
|
||||
|
||||
virtual void reallocate(u32 new_size) IRR_OVERRIDE
|
||||
{Vertices.reallocate(new_size);}
|
||||
virtual void reallocate(u32 new_size, bool canShrink) IRR_OVERRIDE
|
||||
{Vertices.reallocate(new_size, canShrink);}
|
||||
|
||||
virtual u32 allocated_size() const IRR_OVERRIDE
|
||||
{
|
||||
@ -164,9 +164,9 @@ namespace scene
|
||||
Vertices->set_used(usedNow);
|
||||
}
|
||||
|
||||
virtual void reallocate(u32 new_size) IRR_OVERRIDE
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) IRR_OVERRIDE
|
||||
{
|
||||
Vertices->reallocate(new_size);
|
||||
Vertices->reallocate(new_size, canShrink);
|
||||
}
|
||||
|
||||
virtual u32 allocated_size() const IRR_OVERRIDE
|
||||
|
@ -33,7 +33,7 @@ namespace scene
|
||||
virtual u32 getLast() =0;
|
||||
virtual void setValue(u32 index, u32 value) =0;
|
||||
virtual void set_used(u32 usedNow) =0;
|
||||
virtual void reallocate(u32 new_size) =0;
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) =0;
|
||||
virtual u32 allocated_size() const=0;
|
||||
|
||||
virtual void* pointer() =0;
|
||||
|
@ -35,7 +35,7 @@ namespace scene
|
||||
virtual video::S3DVertex& operator [](const u32 index) const =0;
|
||||
virtual video::S3DVertex& getLast() =0;
|
||||
virtual void set_used(u32 usedNow) =0;
|
||||
virtual void reallocate(u32 new_size) =0;
|
||||
virtual void reallocate(u32 new_size, bool canShrink=true) =0;
|
||||
virtual u32 allocated_size() const =0;
|
||||
|
||||
//! Same as getData() - not sure why we got 2, should probably deprecate (and we don't always have video::S3DVertex*, so just confusing)
|
||||
|
Loading…
Reference in New Issue
Block a user