Make more internals for CVertexBuffer and CIndexBuffer public

I don't see the point of giving access to Indices and Vertices if they are of a class type which is private.
Now it's at least possible (with a few casts) to access the freaking array having the data which is often all we want.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6585 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2024-01-24 11:44:49 +00:00
parent 1a86bbd38a
commit b3e228ef43
2 changed files with 3 additions and 2 deletions

@ -14,6 +14,8 @@ namespace scene
class CIndexBuffer : public IIndexBuffer
{
public:
// Virtual function wrapper around irr::core::array
class IIndexList
{
@ -88,7 +90,6 @@ namespace scene
}
};
public:
IIndexList *Indices;
CIndexBuffer(video::E_INDEX_TYPE IndexType) :Indices(0), MappingHint(EHM_NEVER), ChangedID(1)

@ -15,6 +15,7 @@ namespace scene
class CVertexBuffer : public IVertexBuffer
{
public:
class IVertexList
{
public:
@ -92,7 +93,6 @@ namespace scene
virtual video::E_VERTEX_TYPE getType() const IRR_OVERRIDE {return T::getType();}
};
public:
IVertexList *Vertices;
CVertexBuffer(video::E_VERTEX_TYPE vertexType) : Vertices(0),