diff --git a/include/CMeshBuffer.h b/include/CMeshBuffer.h index b6847034..49573982 100644 --- a/include/CMeshBuffer.h +++ b/include/CMeshBuffer.h @@ -206,37 +206,6 @@ namespace scene } - //! Append the meshbuffer to the current buffer - /** Only works for compatible types, i.e. either the same type - or the main buffer is of standard type. Otherwise, behavior is - undefined. - \param other Meshbuffer to be appended to this one. - */ - void append(const IMeshBuffer* const other) override - { - /* - if (this==other) - return; - - const u32 vertexCount = getVertexCount(); - u32 i; - - Vertices.reallocate(vertexCount+other->getVertexCount()); - for (i=0; igetVertexCount(); ++i) - { - Vertices.push_back(reinterpret_cast(other->getVertices())[i]); - } - - Indices.reallocate(getIndexCount()+other->getIndexCount()); - for (i=0; igetIndexCount(); ++i) - { - Indices.push_back(other->getIndices()[i]+vertexCount); - } - BoundingBox.addInternalBox(other->getBoundingBox()); - */ - } - - //! get the current hardware mapping hint E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const override { diff --git a/include/IMeshBuffer.h b/include/IMeshBuffer.h index eee953c7..a96b1a89 100644 --- a/include/IMeshBuffer.h +++ b/include/IMeshBuffer.h @@ -120,11 +120,6 @@ namespace scene \param numIndices Number of indices in array. */ virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) = 0; - //! Append the meshbuffer to the current buffer - /** Only works for compatible vertex types - \param other Buffer to append to this one. */ - virtual void append(const IMeshBuffer* const other) = 0; - //! get the current hardware mapping hint virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const = 0; diff --git a/include/SSkinMeshBuffer.h b/include/SSkinMeshBuffer.h index afb5f14f..dbc54611 100644 --- a/include/SSkinMeshBuffer.h +++ b/include/SSkinMeshBuffer.h @@ -330,9 +330,6 @@ struct SSkinMeshBuffer : public IMeshBuffer //! append the vertices and indices to the current buffer void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) override {} - //! append the meshbuffer to the current buffer - void append(const IMeshBuffer* const other) override {} - //! get the current hardware mapping hint for vertex buffers E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const override {