void IMeshBuffer::append(const IMeshBuffer* const other)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
JVr
Posts: 28
Joined: Wed Oct 19, 2011 2:32 pm

void IMeshBuffer::append(const IMeshBuffer* const other)

Post by JVr »

This method is missing!

Well it should be changed probably to: bool IMeshBuffer::append(const IMeshBuffer* const other); //in future :)

However the main problem is that this method does really nothing - someone frgot to uncomment it or to remove it or to fix it whatever..

Code: Select all

 
virtual void append(const IMeshBuffer* const other)
                {
                        if ( this==other )
                                return;
                        if (other->getVertexType () != video::EVT_STANDARD && getVertexType () != other->getVertexType ())
                        {
                                return;
                        }
 
                        append(other->getVertices(),other->getVertexCount(),other->getIndices(),other->getIndexCount());
                }
 
Just submit this or modify it if I'm wrong but it should actually do something and it's comented in 1.7.2 and still commented in current trunk
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: void IMeshBuffer::append(const IMeshBuffer* const other)

Post by serengeor »

this has been talked over a few times in the past, you should probably search the forums to see why it's like that.
Working on game: Marrbles (Currently stopped).
JVr
Posts: 28
Joined: Wed Oct 19, 2011 2:32 pm

Re: void IMeshBuffer::append(const IMeshBuffer* const other)

Post by JVr »

I found this but...

http://irrlicht.sourceforge.net/forum/v ... nd#p216293

I have CMeshBuffer class - that has implemented append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices)

(I'm doing a copy from SSkinMeshBuffer)

but "void append(const IMeshBuffer* const other)" seems to be much more correct coz it can do "getVertexType ()" checks...

So anyone to justify why "void append(const IMeshBuffer* const other)" is not implemented in this class?
Post Reply