mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-03 08:40:26 +02:00
Add IMeshBufffer::clone for buffer copies, use it in CMeshManipulator::createMeshCopy
CMeshManipulator::createMeshCopy creates new meshes which have copies of the actual meshbuffers instead of copying everything into SMeshBuffers (which didn't support 32 bit or any of the other special features). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6335 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -190,6 +190,16 @@ namespace scene
|
||||
return EMBT_UNKNOWN;
|
||||
}
|
||||
|
||||
//! Bitflags with options for cloning
|
||||
enum ECloneFlags
|
||||
{
|
||||
ECF_VERTICES = 1, //! clone the vertices (or copy pointer for SSharedMeshBuffer)
|
||||
ECF_INDICES = 2 //! clone the indices
|
||||
};
|
||||
|
||||
//! Create a new object with a copy of the meshbuffer
|
||||
//\param cloneFlags A combination of ECloneFlags
|
||||
virtual IMeshBuffer* createClone(int cloneFlags=ECF_VERTICES|ECF_INDICES) const = 0;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user