Fixed line endings and a little bug in the if check.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1404 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
7b442ffc0e
commit
676091b2c1
@ -226,9 +226,9 @@ namespace scene
|
||||
virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
|
||||
{
|
||||
if (Buffer==EBT_VERTEX_AND_INDEX ||Buffer==EBT_VERTEX)
|
||||
ChangedID_Vertex++;
|
||||
else if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
|
||||
ChangedID_Index++;
|
||||
++ChangedID_Vertex;
|
||||
if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
|
||||
++ChangedID_Index;
|
||||
}
|
||||
|
||||
//! Get the currently used ID for identification of changes.
|
||||
|
@ -69,9 +69,6 @@ namespace scene
|
||||
{
|
||||
public:
|
||||
|
||||
//! Destructor
|
||||
virtual ~IMeshBuffer() { }
|
||||
|
||||
//! Get the material of this meshbuffer
|
||||
/** \return Material of this buffer. */
|
||||
virtual video::SMaterial& getMaterial() = 0;
|
||||
@ -165,7 +162,6 @@ namespace scene
|
||||
/** This shouldn't be used for anything outside the VideoDriver. */
|
||||
virtual const u32 getChangedID_Index() const = 0;
|
||||
|
||||
|
||||
u32 HardwareHint;
|
||||
};
|
||||
|
||||
|
@ -141,15 +141,15 @@ namespace scene
|
||||
MappingHint=NewMappingHint;
|
||||
}
|
||||
|
||||
|
||||
//! flags the mesh as changed, reloads hardware buffers
|
||||
virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
|
||||
{
|
||||
if (E_BUFFER_TYPE Buffer==EBT_VERTEX_AND_INDEX || E_BUFFER_TYPE Buffer==EBT_VERTEX)
|
||||
ChangedID_Vertex++;
|
||||
else if (E_BUFFER_TYPE Buffer==EBT_VERTEX_AND_INDEX || E_BUFFER_TYPE Buffer==EBT_INDEX)
|
||||
ChangedID_Index++;
|
||||
++ChangedID_Vertex;
|
||||
if (E_BUFFER_TYPE Buffer==EBT_VERTEX_AND_INDEX || E_BUFFER_TYPE Buffer==EBT_INDEX)
|
||||
++ChangedID_Index;
|
||||
}
|
||||
|
||||
//! Get the currently used ID for identification of changes.
|
||||
/** This shouldn't be used for anything outside the VideoDriver. */
|
||||
virtual const u32 getChangedID_Vertex() const {return ChangedID_Vertex;}
|
||||
@ -164,7 +164,6 @@ namespace scene
|
||||
//! ID used for hardware buffer management
|
||||
u32 ChangedID_Index;
|
||||
|
||||
|
||||
//! Material of this meshBuffer
|
||||
video::SMaterial Material;
|
||||
//! Shared Array of vertices
|
||||
|
@ -282,17 +282,12 @@ struct SSkinMeshBuffer : public IMeshBuffer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//! append the vertices and indices to the current buffer
|
||||
virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) {}
|
||||
|
||||
//! append the meshbuffer to the current buffer
|
||||
virtual void append(const IMeshBuffer* const other) {}
|
||||
|
||||
|
||||
|
||||
//! get the current hardware mapping hint
|
||||
virtual const E_HARDWARE_MAPPING getHardwareMappingHint() const
|
||||
{
|
||||
@ -309,18 +304,18 @@ struct SSkinMeshBuffer : public IMeshBuffer
|
||||
virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
|
||||
{
|
||||
if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX)
|
||||
ChangedID_Vertex++;
|
||||
else if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
|
||||
ChangedID_Index++;
|
||||
++ChangedID_Vertex;
|
||||
if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
|
||||
++ChangedID_Index;
|
||||
}
|
||||
|
||||
virtual const u32 getChangedID_Vertex() const {return ChangedID_Vertex;}
|
||||
|
||||
virtual const u32 getChangedID_Index() const {return ChangedID_Index;}
|
||||
|
||||
u32 ChangedID_Vertex;
|
||||
u32 ChangedID_Index;
|
||||
|
||||
|
||||
// hardware mapping hint
|
||||
E_HARDWARE_MAPPING MappingHint;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user