mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-03 08:40:26 +02:00
Add IMeshBuffer::getType
Allows to find out which class a meshbuffer has. I used the same kind of style as ISceneNode::getType. So using four CC codes and virtual functions (instead of type variable). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6330 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#include "SVertexIndex.h"
|
||||
#include "EHardwareBufferFlags.h"
|
||||
#include "EPrimitiveTypes.h"
|
||||
#include "EMeshBufferTypes.h"
|
||||
|
||||
namespace irr
|
||||
{
|
||||
@ -176,6 +177,14 @@ namespace scene
|
||||
return 0;
|
||||
}
|
||||
|
||||
//! Returns type of the class implementing the IMeshBuffer
|
||||
/** \return The class type of this meshbuffer. */
|
||||
virtual EMESH_BUFFER_TYPE getType() const
|
||||
{
|
||||
return EMBT_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // end namespace scene
|
||||
|
Reference in New Issue
Block a user