From b5f139f8a79c6227165c33c7c690bc7423c60b18 Mon Sep 17 00:00:00 2001 From: cutealien Date: Sat, 17 Aug 2019 14:00:50 +0000 Subject: [PATCH] Use _IRR_OVERRIDE_throughout. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5850 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/CDynamicMeshBuffer.h | 22 +++---- include/CIndexBuffer.h | 56 ++++++++--------- include/CMeshBuffer.h | 58 ++++++++--------- include/CVertexBuffer.h | 52 ++++++++-------- include/IAnimatedMesh.h | 2 +- include/IBoneSceneNode.h | 2 +- include/ICameraSceneNode.h | 4 +- include/IDynamicMeshBuffer.h | 46 +++++++------- include/IGUIElement.h | 6 +- include/IGUIFontBitmap.h | 2 +- .../IParticleAnimatedMeshSceneNodeEmitter.h | 2 +- include/IParticleAttractionAffector.h | 2 +- include/IParticleBoxEmitter.h | 2 +- include/IParticleCylinderEmitter.h | 2 +- include/IParticleFadeOutAffector.h | 2 +- include/IParticleGravityAffector.h | 2 +- include/IParticleMeshEmitter.h | 2 +- include/IParticleRingEmitter.h | 2 +- include/IParticleRotationAffector.h | 2 +- include/IParticleSphereEmitter.h | 2 +- include/ISceneNode.h | 4 +- include/IVolumeLightSceneNode.h | 2 +- include/SAnimatedMesh.h | 26 ++++---- include/SMesh.h | 16 ++--- include/SSharedMeshBuffer.h | 59 +++++++++--------- include/SSkinMeshBuffer.h | 62 +++++++++---------- source/Irrlicht/CB3DMeshWriter.h | 4 +- .../CBurningShader_Raster_Reference.cpp | 4 +- source/Irrlicht/CColladaFileLoader.cpp | 12 ++-- source/Irrlicht/CD3D9Driver.h | 2 +- source/Irrlicht/CD3D9HLSLMaterialRenderer.h | 2 +- source/Irrlicht/CGeometryCreator.h | 30 ++++----- source/Irrlicht/CImageLoaderPVR.h | 8 +-- source/Irrlicht/CIrrDeviceStub.cpp | 8 +-- source/Irrlicht/CTRFlat.cpp | 2 +- source/Irrlicht/CTRFlatWire.cpp | 2 +- source/Irrlicht/CTRGouraud.cpp | 2 +- source/Irrlicht/CTRGouraud2.cpp | 2 +- source/Irrlicht/CTRGouraudAlpha2.cpp | 2 +- source/Irrlicht/CTRGouraudAlphaNoZ2.cpp | 2 +- source/Irrlicht/CTRGouraudWire.cpp | 2 +- source/Irrlicht/CTRNormalMap.cpp | 2 +- source/Irrlicht/CTRStencilShadow.cpp | 4 +- source/Irrlicht/CTRTextureBlend.cpp | 6 +- source/Irrlicht/CTRTextureDetailMap2.cpp | 2 +- source/Irrlicht/CTRTextureFlat.cpp | 2 +- source/Irrlicht/CTRTextureFlatWire.cpp | 2 +- source/Irrlicht/CTRTextureGouraud2.cpp | 2 +- source/Irrlicht/CTRTextureGouraudAdd.cpp | 2 +- source/Irrlicht/CTRTextureGouraudAdd2.cpp | 2 +- source/Irrlicht/CTRTextureGouraudAddNoZ2.cpp | 2 +- source/Irrlicht/CTRTextureGouraudAlpha.cpp | 4 +- source/Irrlicht/CTRTextureGouraudAlphaNoZ.cpp | 4 +- source/Irrlicht/CTRTextureGouraudNoZ.cpp | 2 +- source/Irrlicht/CTRTextureGouraudNoZ2.cpp | 2 +- .../CTRTextureGouraudVertexAlpha2.cpp | 2 +- source/Irrlicht/CTRTextureGouraudWire.cpp | 2 +- source/Irrlicht/CTRTextureLightMap2_Add.cpp | 2 +- source/Irrlicht/CTRTextureLightMap2_M1.cpp | 2 +- source/Irrlicht/CTRTextureLightMap2_M2.cpp | 2 +- source/Irrlicht/CTRTextureLightMap2_M4.cpp | 2 +- .../CTRTextureLightMapGouraud2_M4.cpp | 2 +- source/Irrlicht/CTRTextureWire2.cpp | 4 +- source/Irrlicht/CXMLReader.cpp | 4 +- source/Irrlicht/ISceneNodeAnimatorFinishing.h | 2 +- source/Irrlicht/Irrlicht.ruleset | 4 ++ source/Irrlicht/irrXML.cpp | 4 +- 67 files changed, 298 insertions(+), 295 deletions(-) diff --git a/include/CDynamicMeshBuffer.h b/include/CDynamicMeshBuffer.h index 7c58daec..4424fc86 100644 --- a/include/CDynamicMeshBuffer.h +++ b/include/CDynamicMeshBuffer.h @@ -35,17 +35,17 @@ namespace scene IndexBuffer->drop(); } - virtual IVertexBuffer& getVertexBuffer() const + virtual IVertexBuffer& getVertexBuffer() const _IRR_OVERRIDE_ { return *VertexBuffer; } - virtual IIndexBuffer& getIndexBuffer() const + virtual IIndexBuffer& getIndexBuffer() const _IRR_OVERRIDE_ { return *IndexBuffer; } - virtual void setVertexBuffer(IVertexBuffer *newVertexBuffer) + virtual void setVertexBuffer(IVertexBuffer *newVertexBuffer) _IRR_OVERRIDE_ { if (newVertexBuffer) newVertexBuffer->grab(); @@ -55,7 +55,7 @@ namespace scene VertexBuffer=newVertexBuffer; } - virtual void setIndexBuffer(IIndexBuffer *newIndexBuffer) + virtual void setIndexBuffer(IIndexBuffer *newIndexBuffer) _IRR_OVERRIDE_ { if (newIndexBuffer) newIndexBuffer->grab(); @@ -66,31 +66,31 @@ namespace scene } //! Get Material of this buffer. - virtual const video::SMaterial& getMaterial() const + virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_ { return Material; } //! Get Material of this buffer. - virtual video::SMaterial& getMaterial() + virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_ { return Material; } //! Get bounding box - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return BoundingBox; } //! Set bounding box - virtual void setBoundingBox( const core::aabbox3df& box) + virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_ { BoundingBox = box; } //! Recalculate bounding box - virtual void recalculateBoundingBox() + virtual void recalculateBoundingBox() _IRR_OVERRIDE_ { if (!getVertexBuffer().size()) BoundingBox.reset(0,0,0); @@ -103,13 +103,13 @@ namespace scene } //! Describe what kind of primitive geometry is used by the meshbuffer - virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) + virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ { PrimitiveType = type; } //! Get the kind of primitive geometry which is used by the meshbuffer - virtual E_PRIMITIVE_TYPE getPrimitiveType() const + virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_ { return PrimitiveType; } diff --git a/include/CIndexBuffer.h b/include/CIndexBuffer.h index b0bb436f..69253c34 100644 --- a/include/CIndexBuffer.h +++ b/include/CIndexBuffer.h @@ -39,46 +39,46 @@ namespace scene public: core::array Indices; - virtual u32 stride() const {return sizeof(T);} + virtual u32 stride() const _IRR_OVERRIDE_ {return sizeof(T);} - virtual u32 size() const {return Indices.size();} + virtual u32 size() const _IRR_OVERRIDE_ {return Indices.size();} - virtual void push_back(const u32 &element) + virtual void push_back(const u32 &element) _IRR_OVERRIDE_ { // push const ref due to compiler problem with gcc 4.6, big endian Indices.push_back((const T&)element); } - virtual u32 operator [](u32 index) const + virtual u32 operator [](u32 index) const _IRR_OVERRIDE_ { return (u32)(Indices[index]); } - virtual u32 getLast() {return (u32)Indices.getLast();} + virtual u32 getLast() _IRR_OVERRIDE_ {return (u32)Indices.getLast();} - virtual void setValue(u32 index, u32 value) + virtual void setValue(u32 index, u32 value) _IRR_OVERRIDE_ { Indices[index]=(T)value; } - virtual void set_used(u32 usedNow) + virtual void set_used(u32 usedNow) _IRR_OVERRIDE_ { Indices.set_used(usedNow); } - virtual void reallocate(u32 new_size) + virtual void reallocate(u32 new_size) _IRR_OVERRIDE_ { Indices.reallocate(new_size); } - virtual u32 allocated_size() const + virtual u32 allocated_size() const _IRR_OVERRIDE_ { return Indices.allocated_size(); } - virtual void* pointer() {return Indices.pointer();} + virtual void* pointer() _IRR_OVERRIDE_ {return Indices.pointer();} - virtual video::E_INDEX_TYPE getType() const + virtual video::E_INDEX_TYPE getType() const _IRR_OVERRIDE_ { if (sizeof(T)==sizeof(u16)) return video::EIT_16BIT; @@ -110,7 +110,7 @@ namespace scene } //virtual void setType(video::E_INDEX_TYPE IndexType); - virtual void setType(video::E_INDEX_TYPE IndexType) + virtual void setType(video::E_INDEX_TYPE IndexType) _IRR_OVERRIDE_ { IIndexList *NewIndices=0; @@ -141,78 +141,78 @@ namespace scene Indices=NewIndices; } - virtual void* getData() {return Indices->pointer();} + virtual void* getData() _IRR_OVERRIDE_ {return Indices->pointer();} - virtual video::E_INDEX_TYPE getType() const {return Indices->getType();} + virtual video::E_INDEX_TYPE getType() const _IRR_OVERRIDE_ {return Indices->getType();} - virtual u32 stride() const {return Indices->stride();} + virtual u32 stride() const _IRR_OVERRIDE_ {return Indices->stride();} - virtual u32 size() const + virtual u32 size() const _IRR_OVERRIDE_ { return Indices->size(); } - virtual void push_back(const u32 &element) + virtual void push_back(const u32 &element) _IRR_OVERRIDE_ { Indices->push_back(element); } - virtual u32 operator [](u32 index) const + virtual u32 operator [](u32 index) const _IRR_OVERRIDE_ { return (*Indices)[index]; } - virtual u32 getLast() + virtual u32 getLast() _IRR_OVERRIDE_ { return Indices->getLast(); } - virtual void setValue(u32 index, u32 value) + virtual void setValue(u32 index, u32 value) _IRR_OVERRIDE_ { Indices->setValue(index, value); } - virtual void set_used(u32 usedNow) + virtual void set_used(u32 usedNow) _IRR_OVERRIDE_ { Indices->set_used(usedNow); } - virtual void reallocate(u32 new_size) + virtual void reallocate(u32 new_size) _IRR_OVERRIDE_ { Indices->reallocate(new_size); } - virtual u32 allocated_size() const + virtual u32 allocated_size() const _IRR_OVERRIDE_ { return Indices->allocated_size(); } - virtual void* pointer() + virtual void* pointer() _IRR_OVERRIDE_ { return Indices->pointer(); } //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_ { return MappingHint; } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) _IRR_OVERRIDE_ { MappingHint=NewMappingHint; } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty() + virtual void setDirty() _IRR_OVERRIDE_ { ++ChangedID; } //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID() const {return ChangedID;} + virtual u32 getChangedID() const _IRR_OVERRIDE_ {return ChangedID;} E_HARDWARE_MAPPING MappingHint; u32 ChangedID; diff --git a/include/CMeshBuffer.h b/include/CMeshBuffer.h index db7a7993..f89eb8a2 100644 --- a/include/CMeshBuffer.h +++ b/include/CMeshBuffer.h @@ -31,7 +31,7 @@ namespace scene //! Get material of this meshbuffer /** \return Material of this buffer */ - virtual const video::SMaterial& getMaterial() const + virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_ { return Material; } @@ -39,7 +39,7 @@ namespace scene //! Get material of this meshbuffer /** \return Material of this buffer */ - virtual video::SMaterial& getMaterial() + virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_ { return Material; } @@ -47,7 +47,7 @@ namespace scene //! Get pointer to vertices /** \return Pointer to vertices. */ - virtual const void* getVertices() const + virtual const void* getVertices() const _IRR_OVERRIDE_ { return Vertices.const_pointer(); } @@ -55,7 +55,7 @@ namespace scene //! Get pointer to vertices /** \return Pointer to vertices. */ - virtual void* getVertices() + virtual void* getVertices() _IRR_OVERRIDE_ { return Vertices.pointer(); } @@ -63,21 +63,21 @@ namespace scene //! Get number of vertices /** \return Number of vertices. */ - virtual u32 getVertexCount() const + virtual u32 getVertexCount() const _IRR_OVERRIDE_ { return Vertices.size(); } //! Get type of index data which is stored in this meshbuffer. /** \return Index type of this buffer. */ - virtual video::E_INDEX_TYPE getIndexType() const + virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_ { return video::EIT_16BIT; } //! Get pointer to indices /** \return Pointer to indices. */ - virtual const u16* getIndices() const + virtual const u16* getIndices() const _IRR_OVERRIDE_ { return Indices.const_pointer(); } @@ -85,7 +85,7 @@ namespace scene //! Get pointer to indices /** \return Pointer to indices. */ - virtual u16* getIndices() + virtual u16* getIndices() _IRR_OVERRIDE_ { return Indices.pointer(); } @@ -93,7 +93,7 @@ namespace scene //! Get number of indices /** \return Number of indices. */ - virtual u32 getIndexCount() const + virtual u32 getIndexCount() const _IRR_OVERRIDE_ { return Indices.size(); } @@ -101,7 +101,7 @@ namespace scene //! Get the axis aligned bounding box /** \return Axis aligned bounding box of this buffer. */ - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return BoundingBox; } @@ -110,7 +110,7 @@ namespace scene //! Set the axis aligned bounding box /** \param box New axis aligned bounding box for this buffer. */ //! set user axis aligned bounding box - virtual void setBoundingBox(const core::aabbox3df& box) + virtual void setBoundingBox(const core::aabbox3df& box) _IRR_OVERRIDE_ { BoundingBox = box; } @@ -118,7 +118,7 @@ namespace scene //! Recalculate the bounding box. /** should be called if the mesh changed. */ - virtual void recalculateBoundingBox() + virtual void recalculateBoundingBox() _IRR_OVERRIDE_ { if (!Vertices.empty()) { @@ -135,43 +135,43 @@ namespace scene //! Get type of vertex data stored in this buffer. /** \return Type of vertex data. */ - virtual video::E_VERTEX_TYPE getVertexType() const + virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_ { return T().getType(); } //! returns position of vertex i - virtual const core::vector3df& getPosition(u32 i) const + virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_ { return Vertices[i].Pos; } //! returns position of vertex i - virtual core::vector3df& getPosition(u32 i) + virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_ { return Vertices[i].Pos; } //! returns normal of vertex i - virtual const core::vector3df& getNormal(u32 i) const + virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_ { return Vertices[i].Normal; } //! returns normal of vertex i - virtual core::vector3df& getNormal(u32 i) + virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_ { return Vertices[i].Normal; } //! returns texture coord of vertex i - virtual const core::vector2df& getTCoords(u32 i) const + virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_ { return Vertices[i].TCoords; } //! returns texture coord of vertex i - virtual core::vector2df& getTCoords(u32 i) + virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_ { return Vertices[i].TCoords; } @@ -182,7 +182,7 @@ namespace scene or the main buffer is of standard type. Otherwise, behavior is undefined. */ - virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) + virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_ { if (vertices == getVertices()) return; @@ -211,7 +211,7 @@ namespace scene undefined. \param other Meshbuffer to be appended to this one. */ - virtual void append(const IMeshBuffer* const other) + virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_ { /* if (this==other) @@ -237,19 +237,19 @@ namespace scene //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_ { return MappingHint_Vertex; } //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_ { return MappingHint_Index; } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX) MappingHint_Vertex=NewMappingHint; @@ -258,19 +258,19 @@ namespace scene } //! Describe what kind of primitive geometry is used by the meshbuffer - virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) + virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ { PrimitiveType = type; } //! Get the kind of primitive geometry which is used by the meshbuffer - virtual E_PRIMITIVE_TYPE getPrimitiveType() const + virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_ { return PrimitiveType; } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX_AND_INDEX ||Buffer==EBT_VERTEX) ++ChangedID_Vertex; @@ -280,11 +280,11 @@ namespace scene //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID_Vertex() const {return ChangedID_Vertex;} + virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ {return ChangedID_Vertex;} //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID_Index() const {return ChangedID_Index;} + virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ {return ChangedID_Index;} u32 ChangedID_Vertex; u32 ChangedID_Index; diff --git a/include/CVertexBuffer.h b/include/CVertexBuffer.h index c721419d..bb66cac2 100644 --- a/include/CVertexBuffer.h +++ b/include/CVertexBuffer.h @@ -40,33 +40,33 @@ namespace scene public: core::array Vertices; - virtual u32 stride() const {return sizeof(T);} + virtual u32 stride() const _IRR_OVERRIDE_ {return sizeof(T);} - virtual u32 size() const {return Vertices.size();} + virtual u32 size() const _IRR_OVERRIDE_ {return Vertices.size();} - virtual void push_back (const video::S3DVertex &element) + virtual void push_back (const video::S3DVertex &element) _IRR_OVERRIDE_ {Vertices.push_back((T&)element);} - virtual video::S3DVertex& operator [](const u32 index) const + virtual video::S3DVertex& operator [](const u32 index) const _IRR_OVERRIDE_ {return (video::S3DVertex&)Vertices[index];} - virtual video::S3DVertex& getLast() + virtual video::S3DVertex& getLast() _IRR_OVERRIDE_ {return (video::S3DVertex&)Vertices.getLast();} - virtual void set_used(u32 usedNow) + virtual void set_used(u32 usedNow) _IRR_OVERRIDE_ {Vertices.set_used(usedNow);} - virtual void reallocate(u32 new_size) + virtual void reallocate(u32 new_size) _IRR_OVERRIDE_ {Vertices.reallocate(new_size);} - virtual u32 allocated_size() const + virtual u32 allocated_size() const _IRR_OVERRIDE_ { return Vertices.allocated_size(); } - virtual video::S3DVertex* pointer() {return Vertices.pointer();} + virtual video::S3DVertex* pointer() _IRR_OVERRIDE_ {return Vertices.pointer();} - virtual video::E_VERTEX_TYPE getType() const {return T().getType();} + virtual video::E_VERTEX_TYPE getType() const _IRR_OVERRIDE_ {return T().getType();} }; public: @@ -95,7 +95,7 @@ namespace scene } - virtual void setType(video::E_VERTEX_TYPE vertexType) + virtual void setType(video::E_VERTEX_TYPE vertexType) _IRR_OVERRIDE_ { IVertexList *NewVertices=0; @@ -130,73 +130,73 @@ namespace scene Vertices=NewVertices; } - virtual void* getData() {return Vertices->pointer();} + virtual void* getData() _IRR_OVERRIDE_ {return Vertices->pointer();} - virtual video::E_VERTEX_TYPE getType() const {return Vertices->getType();} + virtual video::E_VERTEX_TYPE getType() const _IRR_OVERRIDE_ {return Vertices->getType();} - virtual u32 stride() const {return Vertices->stride();} + virtual u32 stride() const _IRR_OVERRIDE_ {return Vertices->stride();} - virtual u32 size() const + virtual u32 size() const _IRR_OVERRIDE_ { return Vertices->size(); } - virtual void push_back (const video::S3DVertex &element) + virtual void push_back (const video::S3DVertex &element) _IRR_OVERRIDE_ { Vertices->push_back(element); } - virtual video::S3DVertex& operator [](const u32 index) const + virtual video::S3DVertex& operator [](const u32 index) const _IRR_OVERRIDE_ { return (*Vertices)[index]; } - virtual video::S3DVertex& getLast() + virtual video::S3DVertex& getLast() _IRR_OVERRIDE_ { return Vertices->getLast(); } - virtual void set_used(u32 usedNow) + virtual void set_used(u32 usedNow) _IRR_OVERRIDE_ { Vertices->set_used(usedNow); } - virtual void reallocate(u32 new_size) + virtual void reallocate(u32 new_size) _IRR_OVERRIDE_ { Vertices->reallocate(new_size); } - virtual u32 allocated_size() const + virtual u32 allocated_size() const _IRR_OVERRIDE_ { return Vertices->allocated_size(); } - virtual video::S3DVertex* pointer() + virtual video::S3DVertex* pointer() _IRR_OVERRIDE_ { return Vertices->pointer(); } //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_ { return MappingHint; } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) _IRR_OVERRIDE_ { MappingHint=NewMappingHint; } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty() + virtual void setDirty() _IRR_OVERRIDE_ { ++ChangedID; } //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID() const {return ChangedID;} + virtual u32 getChangedID() const _IRR_OVERRIDE_ {return ChangedID;} E_HARDWARE_MAPPING MappingHint; u32 ChangedID; diff --git a/include/IAnimatedMesh.h b/include/IAnimatedMesh.h index b61065ce..0d252e8d 100644 --- a/include/IAnimatedMesh.h +++ b/include/IAnimatedMesh.h @@ -61,7 +61,7 @@ namespace scene if getMeshType() returns EAMT_MD2 it's safe to cast the IAnimatedMesh to IAnimatedMeshMD2. \returns Type of the mesh. */ - virtual E_ANIMATED_MESH_TYPE getMeshType() const + virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_ { return EAMT_UNKNOWN; } diff --git a/include/IBoneSceneNode.h b/include/IBoneSceneNode.h index 63426681..4032bb0a 100644 --- a/include/IBoneSceneNode.h +++ b/include/IBoneSceneNode.h @@ -84,7 +84,7 @@ namespace scene //! The render method. /** Does nothing as bones are not visible. */ - virtual void render() { } + virtual void render() _IRR_OVERRIDE_ { } //! How the relative transformation of the bone is used virtual void setSkinningSpace( E_BONE_SKINNING_SPACE space ) =0; diff --git a/include/ICameraSceneNode.h b/include/ICameraSceneNode.h index 369d7847..491ef363 100644 --- a/include/ICameraSceneNode.h +++ b/include/ICameraSceneNode.h @@ -171,7 +171,7 @@ namespace scene virtual bool getTargetAndRotationBinding(void) const =0; //! Writes attributes of the camera node - virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const + virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const _IRR_OVERRIDE_ { ISceneNode::serializeAttributes(out, options); @@ -181,7 +181,7 @@ namespace scene } //! Reads attributes of the camera node - virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) + virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) _IRR_OVERRIDE_ { ISceneNode::deserializeAttributes(in, options); if (!in) diff --git a/include/IDynamicMeshBuffer.h b/include/IDynamicMeshBuffer.h index c4130ca1..e7c4ffe5 100644 --- a/include/IDynamicMeshBuffer.h +++ b/include/IDynamicMeshBuffer.h @@ -50,7 +50,7 @@ namespace scene \param numVertices Number of vertices in the array. \param indices Pointer to index array. \param numIndices Number of indices in array. */ - virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) + virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_ { } @@ -58,7 +58,7 @@ namespace scene //! 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) + virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_ { } @@ -66,19 +66,19 @@ namespace scene // ------------------- To be removed? ------------------- // //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_ { return getVertexBuffer().getHardwareMappingHint(); } //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_ { return getIndexBuffer().getHardwareMappingHint(); } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX) getVertexBuffer().setHardwareMappingHint(NewMappingHint); @@ -87,7 +87,7 @@ namespace scene } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX) getVertexBuffer().setDirty(); @@ -95,12 +95,12 @@ namespace scene getIndexBuffer().setDirty(); } - virtual u32 getChangedID_Vertex() const + virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ { return getVertexBuffer().getChangedID(); } - virtual u32 getChangedID_Index() const + virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ { return getIndexBuffer().getChangedID(); } @@ -109,7 +109,7 @@ namespace scene //! Get type of vertex data which is stored in this meshbuffer. /** \return Vertex type of this buffer. */ - virtual video::E_VERTEX_TYPE getVertexType() const + virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_ { return getVertexBuffer().getType(); } @@ -117,7 +117,7 @@ namespace scene //! Get access to vertex data. The data is an array of vertices. /** Which vertex type is used can be determined by getVertexType(). \return Pointer to array of vertices. */ - virtual const void* getVertices() const + virtual const void* getVertices() const _IRR_OVERRIDE_ { return getVertexBuffer().getData(); } @@ -125,78 +125,78 @@ namespace scene //! Get access to vertex data. The data is an array of vertices. /** Which vertex type is used can be determined by getVertexType(). \return Pointer to array of vertices. */ - virtual void* getVertices() + virtual void* getVertices() _IRR_OVERRIDE_ { return getVertexBuffer().getData(); } //! Get amount of vertices in meshbuffer. /** \return Number of vertices in this buffer. */ - virtual u32 getVertexCount() const + virtual u32 getVertexCount() const _IRR_OVERRIDE_ { return getVertexBuffer().size(); } //! Get type of index data which is stored in this meshbuffer. /** \return Index type of this buffer. */ - virtual video::E_INDEX_TYPE getIndexType() const + virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_ { return getIndexBuffer().getType(); } //! Get access to indices. /** \return Pointer to indices array. */ - virtual const u16* getIndices() const + virtual const u16* getIndices() const _IRR_OVERRIDE_ { return (u16*)getIndexBuffer().getData(); } //! Get access to indices. /** \return Pointer to indices array. */ - virtual u16* getIndices() + virtual u16* getIndices() _IRR_OVERRIDE_ { return (u16*)getIndexBuffer().getData(); } //! Get amount of indices in this meshbuffer. /** \return Number of indices in this buffer. */ - virtual u32 getIndexCount() const - { + virtual u32 getIndexCount() const _IRR_OVERRIDE_ + { return getIndexBuffer().size(); } //! returns position of vertex i - virtual const core::vector3df& getPosition(u32 i) const + virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_ { return getVertexBuffer()[i].Pos; } //! returns position of vertex i - virtual core::vector3df& getPosition(u32 i) + virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_ { return getVertexBuffer()[i].Pos; } //! returns texture coords of vertex i - virtual const core::vector2df& getTCoords(u32 i) const + virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_ { return getVertexBuffer()[i].TCoords; } //! returns texture coords of vertex i - virtual core::vector2df& getTCoords(u32 i) + virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_ { return getVertexBuffer()[i].TCoords; } //! returns normal of vertex i - virtual const core::vector3df& getNormal(u32 i) const + virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_ { return getVertexBuffer()[i].Normal; } //! returns normal of vertex i - virtual core::vector3df& getNormal(u32 i) + virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_ { return getVertexBuffer()[i].Normal; } diff --git a/include/IGUIElement.h b/include/IGUIElement.h index 45ab6fb5..d5d0bace 100644 --- a/include/IGUIElement.h +++ b/include/IGUIElement.h @@ -524,7 +524,7 @@ public: //! Called if an event happened. - virtual bool OnEvent(const SEvent& event) + virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_ { return Parent ? Parent->OnEvent(event) : false; } @@ -769,7 +769,7 @@ public: //! Writes attributes of the scene node. /** Implement this to expose the attributes of your scene node for scripting languages, editors, debuggers or xml serialization purposes. */ - virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const + virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const _IRR_OVERRIDE_ { out->addString("Name", Name.c_str()); out->addInt("Id", ID ); @@ -794,7 +794,7 @@ public: //! Reads attributes of the scene node. /** Implement this to set the attributes of your scene node for scripting languages, editors, debuggers or xml deserialization purposes. */ - virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) + virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) _IRR_OVERRIDE_ { setName(in->getAttributeAsString("Name", Name)); setID(in->getAttributeAsInt("Id", ID)); diff --git a/include/IGUIFontBitmap.h b/include/IGUIFontBitmap.h index 36ae37ef..42b94d94 100644 --- a/include/IGUIFontBitmap.h +++ b/include/IGUIFontBitmap.h @@ -19,7 +19,7 @@ class IGUIFontBitmap : public IGUIFont public: //! Returns the type of this font - virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; } + virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_ { return EGFT_BITMAP; } //! returns the parsed Symbol Information virtual IGUISpriteBank* getSpriteBank() const = 0; diff --git a/include/IParticleAnimatedMeshSceneNodeEmitter.h b/include/IParticleAnimatedMeshSceneNodeEmitter.h index 9be329d6..0e0646f2 100644 --- a/include/IParticleAnimatedMeshSceneNodeEmitter.h +++ b/include/IParticleAnimatedMeshSceneNodeEmitter.h @@ -43,7 +43,7 @@ public: virtual bool getEveryMeshVertex() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_ANIMATED_MESH; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_ANIMATED_MESH; } }; } // end namespace scene diff --git a/include/IParticleAttractionAffector.h b/include/IParticleAttractionAffector.h index 6321ff21..e858f8ac 100644 --- a/include/IParticleAttractionAffector.h +++ b/include/IParticleAttractionAffector.h @@ -54,7 +54,7 @@ public: virtual bool getAffectZ() const = 0; //! Get emitter type - virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_ATTRACT; } + virtual E_PARTICLE_AFFECTOR_TYPE getType() const _IRR_OVERRIDE_ { return EPAT_ATTRACT; } }; } // end namespace scene diff --git a/include/IParticleBoxEmitter.h b/include/IParticleBoxEmitter.h index d3592722..10790bf8 100644 --- a/include/IParticleBoxEmitter.h +++ b/include/IParticleBoxEmitter.h @@ -25,7 +25,7 @@ public: virtual const core::aabbox3df& getBox() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_BOX; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_BOX; } }; } // end namespace scene diff --git a/include/IParticleCylinderEmitter.h b/include/IParticleCylinderEmitter.h index dac5ebeb..ca42defe 100644 --- a/include/IParticleCylinderEmitter.h +++ b/include/IParticleCylinderEmitter.h @@ -48,7 +48,7 @@ public: virtual bool getOutlineOnly() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_CYLINDER; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_CYLINDER; } }; } // end namespace scene diff --git a/include/IParticleFadeOutAffector.h b/include/IParticleFadeOutAffector.h index 759ba58b..67000c0b 100644 --- a/include/IParticleFadeOutAffector.h +++ b/include/IParticleFadeOutAffector.h @@ -30,7 +30,7 @@ public: virtual u32 getFadeOutTime() const = 0; //! Get emitter type - virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_FADE_OUT; } + virtual E_PARTICLE_AFFECTOR_TYPE getType() const _IRR_OVERRIDE_ { return EPAT_FADE_OUT; } }; } // end namespace scene diff --git a/include/IParticleGravityAffector.h b/include/IParticleGravityAffector.h index 41138885..be2c244b 100644 --- a/include/IParticleGravityAffector.h +++ b/include/IParticleGravityAffector.h @@ -31,7 +31,7 @@ public: virtual const core::vector3df& getGravity() const = 0; //! Get emitter type - virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_GRAVITY; } + virtual E_PARTICLE_AFFECTOR_TYPE getType() const _IRR_OVERRIDE_ { return EPAT_GRAVITY; } }; } // end namespace scene diff --git a/include/IParticleMeshEmitter.h b/include/IParticleMeshEmitter.h index 6550d24e..7f078064 100644 --- a/include/IParticleMeshEmitter.h +++ b/include/IParticleMeshEmitter.h @@ -43,7 +43,7 @@ public: virtual bool getEveryMeshVertex() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_MESH; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_MESH; } }; } // end namespace scene diff --git a/include/IParticleRingEmitter.h b/include/IParticleRingEmitter.h index 089b2ae6..7828b898 100644 --- a/include/IParticleRingEmitter.h +++ b/include/IParticleRingEmitter.h @@ -36,7 +36,7 @@ public: virtual f32 getRingThickness() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_RING; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_RING; } }; } // end namespace scene diff --git a/include/IParticleRotationAffector.h b/include/IParticleRotationAffector.h index d7d4cce8..374a2682 100644 --- a/include/IParticleRotationAffector.h +++ b/include/IParticleRotationAffector.h @@ -30,7 +30,7 @@ public: virtual const core::vector3df& getSpeed() const = 0; //! Get emitter type - virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_ROTATE; } + virtual E_PARTICLE_AFFECTOR_TYPE getType() const _IRR_OVERRIDE_ { return EPAT_ROTATE; } }; } // end namespace scene diff --git a/include/IParticleSphereEmitter.h b/include/IParticleSphereEmitter.h index 75c14a85..1bfe98c3 100644 --- a/include/IParticleSphereEmitter.h +++ b/include/IParticleSphereEmitter.h @@ -30,7 +30,7 @@ public: virtual f32 getRadius() const = 0; //! Get emitter type - virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_SPHERE; } + virtual E_PARTICLE_EMITTER_TYPE getType() const _IRR_OVERRIDE_ { return EPET_SPHERE; } }; } // end namespace scene diff --git a/include/ISceneNode.h b/include/ISceneNode.h index 1e903857..71910276 100644 --- a/include/ISceneNode.h +++ b/include/ISceneNode.h @@ -697,7 +697,7 @@ namespace scene \param out The attribute container to write into. \param options Additional options which might influence the serialization. */ - virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const + virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const _IRR_OVERRIDE_ { if (!out) return; @@ -722,7 +722,7 @@ namespace scene \param in The attribute container to read from. \param options Additional options which might influence the deserialization. */ - virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) + virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) _IRR_OVERRIDE_ { if (!in) return; diff --git a/include/IVolumeLightSceneNode.h b/include/IVolumeLightSceneNode.h index 63861123..d67dff58 100644 --- a/include/IVolumeLightSceneNode.h +++ b/include/IVolumeLightSceneNode.h @@ -27,7 +27,7 @@ namespace scene : ISceneNode(parent, mgr, id, position, rotation, scale) {}; //! Returns type of the scene node - virtual ESCENE_NODE_TYPE getType() const { return ESNT_VOLUME_LIGHT; } + virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_VOLUME_LIGHT; } //! Sets the number of segments across the U axis virtual void setSubDivideU(const u32 inU) =0; diff --git a/include/SAnimatedMesh.h b/include/SAnimatedMesh.h index ced40602..45a4d486 100644 --- a/include/SAnimatedMesh.h +++ b/include/SAnimatedMesh.h @@ -38,14 +38,14 @@ namespace scene //! Gets the frame count of the animated mesh. /** \return Amount of frames. If the amount is 1, it is a static, non animated mesh. */ - virtual u32 getFrameCount() const + virtual u32 getFrameCount() const _IRR_OVERRIDE_ { return Meshes.size(); } //! Gets the default animation speed of the animated mesh. /** \return Amount of frames per second. If the amount is 0, it is a static, non animated mesh. */ - virtual f32 getAnimationSpeed() const + virtual f32 getAnimationSpeed() const _IRR_OVERRIDE_ { return FramesPerSecond; } @@ -53,7 +53,7 @@ namespace scene //! Gets the frame count of the animated mesh. /** \param fps Frames per second to play the animation with. If the amount is 0, it is not animated. The actual speed is set in the scene node the mesh is instantiated in.*/ - virtual void setAnimationSpeed(f32 fps) + virtual void setAnimationSpeed(f32 fps) _IRR_OVERRIDE_ { FramesPerSecond=fps; } @@ -66,7 +66,7 @@ namespace scene \param startFrameLoop: start frame \param endFrameLoop: end frame \return The animated mesh based on a detail level. */ - virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) + virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) _IRR_OVERRIDE_ { if (Meshes.empty()) return 0; @@ -86,13 +86,13 @@ namespace scene //! Returns an axis aligned bounding box of the mesh. /** \return A bounding box of this mesh is returned. */ - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return Box; } //! set user axis aligned bounding box - virtual void setBoundingBox(const core::aabbox3df& box) + virtual void setBoundingBox(const core::aabbox3df& box) _IRR_OVERRIDE_ { Box = box; } @@ -112,13 +112,13 @@ namespace scene } //! Returns the type of the animated mesh. - virtual E_ANIMATED_MESH_TYPE getMeshType() const + virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_ { return Type; } //! returns amount of mesh buffers. - virtual u32 getMeshBufferCount() const + virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_ { if (Meshes.empty()) return 0; @@ -127,7 +127,7 @@ namespace scene } //! returns pointer to a mesh buffer - virtual IMeshBuffer* getMeshBuffer(u32 nr) const + virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_ { if (Meshes.empty()) return 0; @@ -139,7 +139,7 @@ namespace scene /** \param material: material to search for \return Returns the pointer to the mesh buffer or NULL if there is no such mesh buffer. */ - virtual IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const + virtual IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const _IRR_OVERRIDE_ { if (Meshes.empty()) return 0; @@ -148,21 +148,21 @@ namespace scene } //! Set a material flag for all meshbuffers of this mesh. - virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) + virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_ { for (u32 i=0; isetMaterialFlag(flag, newvalue); } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { for (u32 i=0; isetHardwareMappingHint(newMappingHint, buffer); } //! flags the meshbuffer as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { for (u32 i=0; isetDirty(buffer); diff --git a/include/SMesh.h b/include/SMesh.h index 91151c99..add6c9fb 100644 --- a/include/SMesh.h +++ b/include/SMesh.h @@ -44,20 +44,20 @@ namespace scene //! returns amount of mesh buffers. - virtual u32 getMeshBufferCount() const + virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_ { return MeshBuffers.size(); } //! returns pointer to a mesh buffer - virtual IMeshBuffer* getMeshBuffer(u32 nr) const + virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_ { return MeshBuffers[nr]; } //! returns a meshbuffer which fits a material /** reverse search */ - virtual IMeshBuffer* getMeshBuffer( const video::SMaterial & material) const + virtual IMeshBuffer* getMeshBuffer( const video::SMaterial & material) const _IRR_OVERRIDE_ { for (s32 i = (s32)MeshBuffers.size()-1; i >= 0; --i) { @@ -69,13 +69,13 @@ namespace scene } //! returns an axis aligned bounding box - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return BoundingBox; } //! set user axis aligned bounding box - virtual void setBoundingBox( const core::aabbox3df& box) + virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_ { BoundingBox = box; } @@ -118,21 +118,21 @@ namespace scene } //! sets a flag of all contained materials to a new value - virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) + virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_ { for (u32 i=0; igetMaterial().setFlag(flag, newvalue); } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { for (u32 i=0; isetHardwareMappingHint(newMappingHint, buffer); } //! flags the meshbuffer as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { for (u32 i=0; isetDirty(buffer); diff --git a/include/SSharedMeshBuffer.h b/include/SSharedMeshBuffer.h index 4aa7ad06..51172998 100644 --- a/include/SSharedMeshBuffer.h +++ b/include/SSharedMeshBuffer.h @@ -36,19 +36,19 @@ namespace scene } //! returns the material of this meshbuffer - virtual const video::SMaterial& getMaterial() const + virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_ { return Material; } //! returns the material of this meshbuffer - virtual video::SMaterial& getMaterial() + virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_ { return Material; } //! returns pointer to vertices - virtual const void* getVertices() const + virtual const void* getVertices() const _IRR_OVERRIDE_ { if (Vertices) return Vertices->const_pointer(); @@ -57,7 +57,7 @@ namespace scene } //! returns pointer to vertices - virtual void* getVertices() + virtual void* getVertices() _IRR_OVERRIDE_ { if (Vertices) return Vertices->pointer(); @@ -66,7 +66,7 @@ namespace scene } //! returns amount of vertices - virtual u32 getVertexCount() const + virtual u32 getVertexCount() const _IRR_OVERRIDE_ { if (Vertices) return Vertices->size(); @@ -75,49 +75,49 @@ namespace scene } //! returns pointer to indices - virtual const u16* getIndices() const + virtual const u16* getIndices() const _IRR_OVERRIDE_ { return Indices.const_pointer(); } //! returns pointer to indices - virtual u16* getIndices() + virtual u16* getIndices() _IRR_OVERRIDE_ { return Indices.pointer(); } //! returns amount of indices - virtual u32 getIndexCount() const + virtual u32 getIndexCount() const _IRR_OVERRIDE_ { return Indices.size(); } //! Get type of index data which is stored in this meshbuffer. - virtual video::E_INDEX_TYPE getIndexType() const + virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_ { return video::EIT_16BIT; } //! returns an axis aligned bounding box - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return BoundingBox; } //! set user axis aligned bounding box - virtual void setBoundingBox( const core::aabbox3df& box) + virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_ { BoundingBox = box; } //! returns which type of vertex data is stored. - virtual video::E_VERTEX_TYPE getVertexType() const + virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_ { return video::EVT_STANDARD; } //! recalculates the bounding box. should be called if the mesh changed. - virtual void recalculateBoundingBox() + virtual void recalculateBoundingBox() _IRR_OVERRIDE_ { if (!Vertices || Vertices->empty() || Indices.empty()) BoundingBox.reset(0,0,0); @@ -130,67 +130,66 @@ namespace scene } //! returns position of vertex i - virtual const core::vector3df& getPosition(u32 i) const + virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].Pos; } //! returns position of vertex i - virtual core::vector3df& getPosition(u32 i) + virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].Pos; } //! returns normal of vertex i - virtual const core::vector3df& getNormal(u32 i) const + virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].Normal; } //! returns normal of vertex i - virtual core::vector3df& getNormal(u32 i) + virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].Normal; } //! returns texture coord of vertex i - virtual const core::vector2df& getTCoords(u32 i) const + virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].TCoords; } //! returns texture coord of vertex i - virtual core::vector2df& getTCoords(u32 i) + virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_ { _IRR_DEBUG_BREAK_IF(!Vertices); return (*Vertices)[Indices[i]].TCoords; } //! append the vertices and indices to the current buffer - virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) {} - + virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_ {} //! append the meshbuffer to the current buffer - virtual void append(const IMeshBuffer* const other) {} + virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_ {} //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_ { return MappingHintVertex; } //! get the current hardware mapping hint - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_ { return MappingHintIndex; } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { if (buffer==EBT_VERTEX_AND_INDEX || buffer==EBT_VERTEX) MappingHintVertex=NewMappingHint; @@ -199,19 +198,19 @@ namespace scene } //! Describe what kind of primitive geometry is used by the meshbuffer - virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) + virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ { PrimitiveType = type; } //! Get the kind of primitive geometry which is used by the meshbuffer - virtual E_PRIMITIVE_TYPE getPrimitiveType() const + virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_ { return PrimitiveType; } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { if (buffer==EBT_VERTEX_AND_INDEX || buffer==EBT_VERTEX) ++ChangedID_Vertex; @@ -221,11 +220,11 @@ namespace scene //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID_Vertex() const {return ChangedID_Vertex;} + virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ {return ChangedID_Vertex;} //! Get the currently used ID for identification of changes. /** This shouldn't be used for anything outside the VideoDriver. */ - virtual u32 getChangedID_Index() const {return ChangedID_Index;} + virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ {return ChangedID_Index;} //! Material of this meshBuffer video::SMaterial Material; diff --git a/include/SSkinMeshBuffer.h b/include/SSkinMeshBuffer.h index 92bee188..a6c2b68d 100644 --- a/include/SSkinMeshBuffer.h +++ b/include/SSkinMeshBuffer.h @@ -31,13 +31,13 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Get Material of this buffer. - virtual const video::SMaterial& getMaterial() const + virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_ { return Material; } //! Get Material of this buffer. - virtual video::SMaterial& getMaterial() + virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_ { return Material; } @@ -57,7 +57,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Get pointer to vertex array - virtual const void* getVertices() const + virtual const void* getVertices() const _IRR_OVERRIDE_ { switch (VertexType) { @@ -71,7 +71,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Get pointer to vertex array - virtual void* getVertices() + virtual void* getVertices() _IRR_OVERRIDE_ { switch (VertexType) { @@ -85,7 +85,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Get vertex count - virtual u32 getVertexCount() const + virtual u32 getVertexCount() const _IRR_OVERRIDE_ { switch (VertexType) { @@ -100,43 +100,43 @@ struct SSkinMeshBuffer : public IMeshBuffer //! Get type of index data which is stored in this meshbuffer. /** \return Index type of this buffer. */ - virtual video::E_INDEX_TYPE getIndexType() const + virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_ { return video::EIT_16BIT; } //! Get pointer to index array - virtual const u16* getIndices() const + virtual const u16* getIndices() const _IRR_OVERRIDE_ { return Indices.const_pointer(); } //! Get pointer to index array - virtual u16* getIndices() + virtual u16* getIndices() _IRR_OVERRIDE_ { return Indices.pointer(); } //! Get index count - virtual u32 getIndexCount() const + virtual u32 getIndexCount() const _IRR_OVERRIDE_ { return Indices.size(); } //! Get bounding box - virtual const core::aabbox3d& getBoundingBox() const + virtual const core::aabbox3d& getBoundingBox() const _IRR_OVERRIDE_ { return BoundingBox; } //! Set bounding box - virtual void setBoundingBox( const core::aabbox3df& box) + virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_ { BoundingBox = box; } //! Recalculate bounding box - virtual void recalculateBoundingBox() + virtual void recalculateBoundingBox() _IRR_OVERRIDE_ { if(!BoundingBoxNeedsRecalculated) return; @@ -185,13 +185,13 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Get vertex type - virtual video::E_VERTEX_TYPE getVertexType() const + virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_ { return VertexType; } //! Convert to 2tcoords vertex type - virtual void convertTo2TCoords() + void convertTo2TCoords() { if (VertexType==video::EVT_STANDARD) { @@ -210,7 +210,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Convert to tangents vertex type - virtual void convertToTangents() + void convertToTangents() { if (VertexType==video::EVT_STANDARD) { @@ -243,7 +243,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns position of vertex i - virtual const core::vector3df& getPosition(u32 i) const + virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_ { switch (VertexType) { @@ -257,7 +257,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns position of vertex i - virtual core::vector3df& getPosition(u32 i) + virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_ { switch (VertexType) { @@ -271,7 +271,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns normal of vertex i - virtual const core::vector3df& getNormal(u32 i) const + virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_ { switch (VertexType) { @@ -285,7 +285,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns normal of vertex i - virtual core::vector3df& getNormal(u32 i) + virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_ { switch (VertexType) { @@ -299,7 +299,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns texture coords of vertex i - virtual const core::vector2df& getTCoords(u32 i) const + virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_ { switch (VertexType) { @@ -313,7 +313,7 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! returns texture coords of vertex i - virtual core::vector2df& getTCoords(u32 i) + virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_ { switch (VertexType) { @@ -327,25 +327,25 @@ 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) {} + virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_ {} //! append the meshbuffer to the current buffer - virtual void append(const IMeshBuffer* const other) {} + virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_ {} //! get the current hardware mapping hint for vertex buffers - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_ { return MappingHint_Vertex; } //! get the current hardware mapping hint for index buffers - virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const + virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_ { return MappingHint_Index; } //! set the hardware mapping hint, for driver - virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) + virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX) MappingHint_Vertex=NewMappingHint; @@ -359,19 +359,19 @@ struct SSkinMeshBuffer : public IMeshBuffer } //! Describe what kind of primitive geometry is used by the meshbuffer - virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) + virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ { PrimitiveType = type; } //! Get the kind of primitive geometry which is used by the meshbuffer - virtual E_PRIMITIVE_TYPE getPrimitiveType() const + virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_ { return PrimitiveType; } //! flags the mesh as changed, reloads hardware buffers - virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) + virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ { if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX) ++ChangedID_Vertex; @@ -379,9 +379,9 @@ struct SSkinMeshBuffer : public IMeshBuffer ++ChangedID_Index; } - virtual u32 getChangedID_Vertex() const {return ChangedID_Vertex;} + virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ {return ChangedID_Vertex;} - virtual u32 getChangedID_Index() const {return ChangedID_Index;} + virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ {return ChangedID_Index;} //! Call this after changing the positions of any vertex. void boundingBoxNeedsRecalculated(void) { BoundingBoxNeedsRecalculated = true; } diff --git a/source/Irrlicht/CB3DMeshWriter.h b/source/Irrlicht/CB3DMeshWriter.h index 7d74ee02..454b7a6e 100644 --- a/source/Irrlicht/CB3DMeshWriter.h +++ b/source/Irrlicht/CB3DMeshWriter.h @@ -27,10 +27,10 @@ public: CB3DMeshWriter(); //! Returns the type of the mesh writer - virtual EMESH_WRITER_TYPE getType() const; + virtual EMESH_WRITER_TYPE getType() const _IRR_OVERRIDE_; //! writes a mesh - virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE); + virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE) _IRR_OVERRIDE_; private: u32 Size; diff --git a/source/Irrlicht/CBurningShader_Raster_Reference.cpp b/source/Irrlicht/CBurningShader_Raster_Reference.cpp index c0ea0397..4f1a4474 100644 --- a/source/Irrlicht/CBurningShader_Raster_Reference.cpp +++ b/source/Irrlicht/CBurningShader_Raster_Reference.cpp @@ -512,9 +512,9 @@ public: CBurningShader_Raster_Reference(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; - virtual void setMaterial ( const SBurningShaderMaterial &material ); + virtual void setMaterial ( const SBurningShaderMaterial &material ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CColladaFileLoader.cpp b/source/Irrlicht/CColladaFileLoader.cpp index 62b5216f..ab4d7fe0 100644 --- a/source/Irrlicht/CColladaFileLoader.cpp +++ b/source/Irrlicht/CColladaFileLoader.cpp @@ -143,14 +143,14 @@ namespace //! creates an instance of this prefab virtual scene::ISceneNode* addInstance(scene::ISceneNode* parent, - scene::ISceneManager* mgr) + scene::ISceneManager* mgr) _IRR_OVERRIDE_ { // empty implementation return 0; } //! returns id of this prefab - virtual const core::stringc& getId() + virtual const core::stringc& getId() _IRR_OVERRIDE_ { return Id; } @@ -177,7 +177,7 @@ namespace //! creates an instance of this prefab virtual scene::ISceneNode* addInstance(scene::ISceneNode* parent, - scene::ISceneManager* mgr) + scene::ISceneManager* mgr) _IRR_OVERRIDE_ { #ifdef COLLADA_READER_DEBUG os::Printer::log("COLLADA: Constructing light instance", Id.c_str(), ELL_DEBUG); @@ -213,7 +213,7 @@ namespace //! creates an instance of this prefab virtual scene::ISceneNode* addInstance(scene::ISceneNode* parent, - scene::ISceneManager* mgr) + scene::ISceneManager* mgr) _IRR_OVERRIDE_ { #ifdef COLLADA_READER_DEBUG os::Printer::log("COLLADA: Constructing mesh instance", Id.c_str(), ELL_DEBUG); @@ -251,7 +251,7 @@ namespace //! creates an instance of this prefab virtual scene::ISceneNode* addInstance(scene::ISceneNode* parent, - scene::ISceneManager* mgr) + scene::ISceneManager* mgr) _IRR_OVERRIDE_ { #ifdef COLLADA_READER_DEBUG os::Printer::log("COLLADA: Constructing camera instance", Id.c_str(), ELL_DEBUG); @@ -285,7 +285,7 @@ namespace //! creates an instance of this prefab virtual scene::ISceneNode* addInstance(scene::ISceneNode* parent, - scene::ISceneManager* mgr) + scene::ISceneManager* mgr) _IRR_OVERRIDE_ { #ifdef COLLADA_READER_DEBUG os::Printer::log("COLLADA: Constructing scene instance", Id.c_str(), ELL_DEBUG); diff --git a/source/Irrlicht/CD3D9Driver.h b/source/Irrlicht/CD3D9Driver.h index 7b229b42..c5c23641 100644 --- a/source/Irrlicht/CD3D9Driver.h +++ b/source/Irrlicht/CD3D9Driver.h @@ -364,7 +364,7 @@ namespace video //! vertex shaders to render geometry. s32 addShaderMaterial(const c8* vertexShaderProgram, const c8* pixelShaderProgram, IShaderConstantSetCallBack* callback, - E_MATERIAL_TYPE baseMaterial, s32 userData); + E_MATERIAL_TYPE baseMaterial, s32 userData) _IRR_OVERRIDE_; //! Adds a new material renderer to the VideoDriver, based on a high level shading //! language. diff --git a/source/Irrlicht/CD3D9HLSLMaterialRenderer.h b/source/Irrlicht/CD3D9HLSLMaterialRenderer.h index 93823857..c485ee6f 100644 --- a/source/Irrlicht/CD3D9HLSLMaterialRenderer.h +++ b/source/Irrlicht/CD3D9HLSLMaterialRenderer.h @@ -56,7 +56,7 @@ public: //! Int interface for the above. virtual bool setVariable(bool vertexShader, s32 index, const s32* ints, int count); - bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype); + bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) _IRR_OVERRIDE_; protected: diff --git a/source/Irrlicht/CGeometryCreator.h b/source/Irrlicht/CGeometryCreator.h index 2c456440..f87f9814 100644 --- a/source/Irrlicht/CGeometryCreator.h +++ b/source/Irrlicht/CGeometryCreator.h @@ -19,44 +19,44 @@ class CGeometryCreator : public IGeometryCreator { void addToBuffer(const video::S3DVertex& v, SMeshBuffer* Buffer) const; public: - IMesh* createCubeMesh(const core::vector3df& size) const; + virtual IMesh* createCubeMesh(const core::vector3df& size) const _IRR_OVERRIDE_; - IMesh* createHillPlaneMesh( + virtual IMesh* createHillPlaneMesh( const core::dimension2d& tileSize, const core::dimension2d& tileCount, video::SMaterial* material, f32 hillHeight, const core::dimension2d& countHills, - const core::dimension2d& textureRepeatCount) const; + const core::dimension2d& textureRepeatCount) const _IRR_OVERRIDE_; - IMesh* createGeoplaneMesh(f32 radius, u32 rows, u32 columns) const; + virtual IMesh* createGeoplaneMesh(f32 radius, u32 rows, u32 columns) const _IRR_OVERRIDE_; - IMesh* createTerrainMesh(video::IImage* texture, + virtual IMesh* createTerrainMesh(video::IImage* texture, video::IImage* heightmap, const core::dimension2d& stretchSize, f32 maxHeight, video::IVideoDriver* driver, const core::dimension2d& defaultVertexBlockSize, - bool debugBorders=false) const; + bool debugBorders=false) const _IRR_OVERRIDE_; - IMesh* createArrowMesh(const u32 tesselationCylinder, + virtual IMesh* createArrowMesh(const u32 tesselationCylinder, const u32 tesselationCone, const f32 height, const f32 cylinderHeight, const f32 width0, const f32 width1, const video::SColor vtxColor0, - const video::SColor vtxColor1) const; + const video::SColor vtxColor1) const _IRR_OVERRIDE_; - IMesh* createSphereMesh(f32 radius, u32 polyCountX, u32 polyCountY) const; + virtual IMesh* createSphereMesh(f32 radius, u32 polyCountX, u32 polyCountY) const _IRR_OVERRIDE_; - IMesh* createCylinderMesh(f32 radius, f32 length, u32 tesselation, + virtual IMesh* createCylinderMesh(f32 radius, f32 length, u32 tesselation, const video::SColor& color=0xffffffff, - bool closeTop=true, f32 oblique=0.f) const; + bool closeTop=true, f32 oblique=0.f) const _IRR_OVERRIDE_; - IMesh* createConeMesh(f32 radius, f32 length, u32 tesselation, + virtual IMesh* createConeMesh(f32 radius, f32 length, u32 tesselation, const video::SColor& colorTop=0xffffffff, const video::SColor& colorBottom=0xffffffff, - f32 oblique=0.f) const; + f32 oblique=0.f) const _IRR_OVERRIDE_; - IMesh* createVolumeLightMesh( + virtual IMesh* createVolumeLightMesh( const u32 subdivideU=32, const u32 subdivideV=32, const video::SColor footColor=0xffffffff, const video::SColor tailColor=0xffffffff, const f32 lpDistance = 8.f, - const core::vector3df& lightDim = core::vector3df(1.f,1.2f,1.f)) const; + const core::vector3df& lightDim = core::vector3df(1.f,1.2f,1.f)) const _IRR_OVERRIDE_; }; diff --git a/source/Irrlicht/CImageLoaderPVR.h b/source/Irrlicht/CImageLoaderPVR.h index 40541d77..4a4cfee3 100644 --- a/source/Irrlicht/CImageLoaderPVR.h +++ b/source/Irrlicht/CImageLoaderPVR.h @@ -39,13 +39,13 @@ struct SPVRHeader class CImageLoaderPVR : public IImageLoader { public: - virtual bool isALoadableFileExtension(const io::path& filename) const; + virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_; - virtual bool isALoadableFileFormat(io::IReadFile* file) const; + virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_; - virtual IImage* loadImage(io::IReadFile* file) const; + virtual IImage* loadImage(io::IReadFile* file) const _IRR_OVERRIDE_; - virtual core::array loadImages(io::IReadFile* file, E_TEXTURE_TYPE* type) const; + virtual core::array loadImages(io::IReadFile* file, E_TEXTURE_TYPE* type) const _IRR_OVERRIDE_; }; } diff --git a/source/Irrlicht/CIrrDeviceStub.cpp b/source/Irrlicht/CIrrDeviceStub.cpp index c1f28331..98f2106b 100644 --- a/source/Irrlicht/CIrrDeviceStub.cpp +++ b/source/Irrlicht/CIrrDeviceStub.cpp @@ -298,22 +298,22 @@ namespace { struct SDefaultRandomizer : public IRandomizer { - virtual void reset(s32 value=0x0f0f0f0f) + virtual void reset(s32 value=0x0f0f0f0f) _IRR_OVERRIDE_ { os::Randomizer::reset(value); } - virtual s32 rand() const + virtual s32 rand() const _IRR_OVERRIDE_ { return os::Randomizer::rand(); } - virtual f32 frand() const + virtual f32 frand() const _IRR_OVERRIDE_ { return os::Randomizer::frand(); } - virtual s32 randMax() const + virtual s32 randMax() const _IRR_OVERRIDE_ { return os::Randomizer::randMax(); } diff --git a/source/Irrlicht/CTRFlat.cpp b/source/Irrlicht/CTRFlat.cpp index 1693893b..b3910b1a 100644 --- a/source/Irrlicht/CTRFlat.cpp +++ b/source/Irrlicht/CTRFlat.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRFlatWire.cpp b/source/Irrlicht/CTRFlatWire.cpp index c967fc3d..2f1cca56 100644 --- a/source/Irrlicht/CTRFlatWire.cpp +++ b/source/Irrlicht/CTRFlatWire.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRGouraud.cpp b/source/Irrlicht/CTRGouraud.cpp index 828d8eb6..830aa55a 100644 --- a/source/Irrlicht/CTRGouraud.cpp +++ b/source/Irrlicht/CTRGouraud.cpp @@ -26,7 +26,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRGouraud2.cpp b/source/Irrlicht/CTRGouraud2.cpp index 3a65756c..fce5e494 100644 --- a/source/Irrlicht/CTRGouraud2.cpp +++ b/source/Irrlicht/CTRGouraud2.cpp @@ -83,7 +83,7 @@ public: CTRGouraud2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRGouraudAlpha2.cpp b/source/Irrlicht/CTRGouraudAlpha2.cpp index 8406b8d9..889df1d0 100644 --- a/source/Irrlicht/CTRGouraudAlpha2.cpp +++ b/source/Irrlicht/CTRGouraudAlpha2.cpp @@ -84,7 +84,7 @@ public: CTRGouraudAlpha2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRGouraudAlphaNoZ2.cpp b/source/Irrlicht/CTRGouraudAlphaNoZ2.cpp index 141ec912..e03fb192 100644 --- a/source/Irrlicht/CTRGouraudAlphaNoZ2.cpp +++ b/source/Irrlicht/CTRGouraudAlphaNoZ2.cpp @@ -84,7 +84,7 @@ public: CTRGouraudAlphaNoZ2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRGouraudWire.cpp b/source/Irrlicht/CTRGouraudWire.cpp index 9da653b3..fa3402c1 100644 --- a/source/Irrlicht/CTRGouraudWire.cpp +++ b/source/Irrlicht/CTRGouraudWire.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRNormalMap.cpp b/source/Irrlicht/CTRNormalMap.cpp index 7264e1ac..61fc258e 100644 --- a/source/Irrlicht/CTRNormalMap.cpp +++ b/source/Irrlicht/CTRNormalMap.cpp @@ -87,7 +87,7 @@ public: CTRNormalMap(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRStencilShadow.cpp b/source/Irrlicht/CTRStencilShadow.cpp index 1e5a059d..45a4c19e 100644 --- a/source/Irrlicht/CTRStencilShadow.cpp +++ b/source/Irrlicht/CTRStencilShadow.cpp @@ -84,8 +84,8 @@ public: CTRStencilShadow(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); - virtual void setParam ( u32 index, f32 value); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; + virtual void setParam ( u32 index, f32 value) _IRR_OVERRIDE_; private: // fragment shader diff --git a/source/Irrlicht/CTRTextureBlend.cpp b/source/Irrlicht/CTRTextureBlend.cpp index bcd597fa..472cd924 100644 --- a/source/Irrlicht/CTRTextureBlend.cpp +++ b/source/Irrlicht/CTRTextureBlend.cpp @@ -84,10 +84,10 @@ public: CTRTextureBlend(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; - virtual void setZCompareFunc ( u32 func); - virtual void setParam ( u32 index, f32 value); + virtual void setZCompareFunc ( u32 func) _IRR_OVERRIDE_; + virtual void setParam ( u32 index, f32 value) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureDetailMap2.cpp b/source/Irrlicht/CTRTextureDetailMap2.cpp index e26d5aaf..88eb4c69 100644 --- a/source/Irrlicht/CTRTextureDetailMap2.cpp +++ b/source/Irrlicht/CTRTextureDetailMap2.cpp @@ -84,7 +84,7 @@ public: CTRTextureDetailMap2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureFlat.cpp b/source/Irrlicht/CTRTextureFlat.cpp index 3f3498e5..9ef5ade0 100644 --- a/source/Irrlicht/CTRTextureFlat.cpp +++ b/source/Irrlicht/CTRTextureFlat.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRTextureFlatWire.cpp b/source/Irrlicht/CTRTextureFlatWire.cpp index 91323743..2147edd0 100644 --- a/source/Irrlicht/CTRTextureFlatWire.cpp +++ b/source/Irrlicht/CTRTextureFlatWire.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRTextureGouraud2.cpp b/source/Irrlicht/CTRTextureGouraud2.cpp index eeb55d8a..e1788a99 100644 --- a/source/Irrlicht/CTRTextureGouraud2.cpp +++ b/source/Irrlicht/CTRTextureGouraud2.cpp @@ -83,7 +83,7 @@ public: CTRTextureGouraud2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudAdd.cpp b/source/Irrlicht/CTRTextureGouraudAdd.cpp index ec3da8ef..853bef27 100644 --- a/source/Irrlicht/CTRTextureGouraudAdd.cpp +++ b/source/Irrlicht/CTRTextureGouraudAdd.cpp @@ -20,7 +20,7 @@ public: CTRTextureGouraudAdd(IZBuffer* zbuffer); //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount); + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_; protected: diff --git a/source/Irrlicht/CTRTextureGouraudAdd2.cpp b/source/Irrlicht/CTRTextureGouraudAdd2.cpp index a9e89a67..1042341a 100644 --- a/source/Irrlicht/CTRTextureGouraudAdd2.cpp +++ b/source/Irrlicht/CTRTextureGouraudAdd2.cpp @@ -84,7 +84,7 @@ public: CTRTextureGouraudAdd2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudAddNoZ2.cpp b/source/Irrlicht/CTRTextureGouraudAddNoZ2.cpp index e8cfadc3..e0fa1f97 100644 --- a/source/Irrlicht/CTRTextureGouraudAddNoZ2.cpp +++ b/source/Irrlicht/CTRTextureGouraudAddNoZ2.cpp @@ -83,7 +83,7 @@ public: CTRTextureGouraudAddNoZ2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudAlpha.cpp b/source/Irrlicht/CTRTextureGouraudAlpha.cpp index 8f46ea7c..f83a8d1a 100644 --- a/source/Irrlicht/CTRTextureGouraudAlpha.cpp +++ b/source/Irrlicht/CTRTextureGouraudAlpha.cpp @@ -84,9 +84,9 @@ public: CTRTextureGouraudAlpha2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; - virtual void setParam ( u32 index, f32 value); + virtual void setParam ( u32 index, f32 value) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudAlphaNoZ.cpp b/source/Irrlicht/CTRTextureGouraudAlphaNoZ.cpp index c3986758..d2104700 100644 --- a/source/Irrlicht/CTRTextureGouraudAlphaNoZ.cpp +++ b/source/Irrlicht/CTRTextureGouraudAlphaNoZ.cpp @@ -84,9 +84,9 @@ public: CTRTextureGouraudAlphaNoZ(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; - virtual void setParam ( u32 index, f32 value); + virtual void setParam ( u32 index, f32 value) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudNoZ.cpp b/source/Irrlicht/CTRTextureGouraudNoZ.cpp index 4cc9c2b0..f6cd1456 100644 --- a/source/Irrlicht/CTRTextureGouraudNoZ.cpp +++ b/source/Irrlicht/CTRTextureGouraudNoZ.cpp @@ -26,7 +26,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRTextureGouraudNoZ2.cpp b/source/Irrlicht/CTRTextureGouraudNoZ2.cpp index 3f549c39..3b10abff 100644 --- a/source/Irrlicht/CTRTextureGouraudNoZ2.cpp +++ b/source/Irrlicht/CTRTextureGouraudNoZ2.cpp @@ -88,7 +88,7 @@ public: CTRTextureGouraudNoZ2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudVertexAlpha2.cpp b/source/Irrlicht/CTRTextureGouraudVertexAlpha2.cpp index 40ef14fb..65e24b2a 100644 --- a/source/Irrlicht/CTRTextureGouraudVertexAlpha2.cpp +++ b/source/Irrlicht/CTRTextureGouraudVertexAlpha2.cpp @@ -82,7 +82,7 @@ public: CTRTextureVertexAlpha2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureGouraudWire.cpp b/source/Irrlicht/CTRTextureGouraudWire.cpp index c3ef92e9..369b91ac 100644 --- a/source/Irrlicht/CTRTextureGouraudWire.cpp +++ b/source/Irrlicht/CTRTextureGouraudWire.cpp @@ -25,7 +25,7 @@ public: } //! draws an indexed triangle list - virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) + virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount) _IRR_OVERRIDE_ { const S2DVertex *v1, *v2, *v3; diff --git a/source/Irrlicht/CTRTextureLightMap2_Add.cpp b/source/Irrlicht/CTRTextureLightMap2_Add.cpp index 50011468..2aaa9f9b 100644 --- a/source/Irrlicht/CTRTextureLightMap2_Add.cpp +++ b/source/Irrlicht/CTRTextureLightMap2_Add.cpp @@ -82,7 +82,7 @@ public: CTRTextureLightMap2_Add(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureLightMap2_M1.cpp b/source/Irrlicht/CTRTextureLightMap2_M1.cpp index 32d600f1..b5d741b5 100644 --- a/source/Irrlicht/CTRTextureLightMap2_M1.cpp +++ b/source/Irrlicht/CTRTextureLightMap2_M1.cpp @@ -82,7 +82,7 @@ public: CTRTextureLightMap2_M1(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureLightMap2_M2.cpp b/source/Irrlicht/CTRTextureLightMap2_M2.cpp index 435f433e..f2bc7d4e 100644 --- a/source/Irrlicht/CTRTextureLightMap2_M2.cpp +++ b/source/Irrlicht/CTRTextureLightMap2_M2.cpp @@ -82,7 +82,7 @@ public: CTRTextureLightMap2_M2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureLightMap2_M4.cpp b/source/Irrlicht/CTRTextureLightMap2_M4.cpp index a2200276..c98f7cc7 100644 --- a/source/Irrlicht/CTRTextureLightMap2_M4.cpp +++ b/source/Irrlicht/CTRTextureLightMap2_M4.cpp @@ -82,7 +82,7 @@ public: CTRTextureLightMap2_M4(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureLightMapGouraud2_M4.cpp b/source/Irrlicht/CTRTextureLightMapGouraud2_M4.cpp index 5fee88a7..742de513 100644 --- a/source/Irrlicht/CTRTextureLightMapGouraud2_M4.cpp +++ b/source/Irrlicht/CTRTextureLightMapGouraud2_M4.cpp @@ -82,7 +82,7 @@ public: CTRGTextureLightMap2_M4(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; private: diff --git a/source/Irrlicht/CTRTextureWire2.cpp b/source/Irrlicht/CTRTextureWire2.cpp index 3b687091..e1bb8ba6 100644 --- a/source/Irrlicht/CTRTextureWire2.cpp +++ b/source/Irrlicht/CTRTextureWire2.cpp @@ -80,8 +80,8 @@ public: CTRTextureWire2(CBurningVideoDriver* driver); //! draws an indexed triangle list - virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ); - virtual void drawLine ( const s4DVertex *a,const s4DVertex *b); + virtual void drawTriangle ( const s4DVertex *a,const s4DVertex *b,const s4DVertex *c ) _IRR_OVERRIDE_; + virtual void drawLine ( const s4DVertex *a,const s4DVertex *b) _IRR_OVERRIDE_; diff --git a/source/Irrlicht/CXMLReader.cpp b/source/Irrlicht/CXMLReader.cpp index b6aa3187..db5a9443 100644 --- a/source/Irrlicht/CXMLReader.cpp +++ b/source/Irrlicht/CXMLReader.cpp @@ -31,13 +31,13 @@ namespace io } //! Reads an amount of bytes from the file. - virtual int read(void* buffer, int sizeToRead) + virtual int read(void* buffer, int sizeToRead) _IRR_OVERRIDE_ { return (int)ReadFile->read(buffer, sizeToRead); } //! Returns size of file in bytes - virtual long getSize() const + virtual long getSize() const _IRR_OVERRIDE_ { return ReadFile->getSize(); } diff --git a/source/Irrlicht/ISceneNodeAnimatorFinishing.h b/source/Irrlicht/ISceneNodeAnimatorFinishing.h index 6535a6c2..a6425621 100644 --- a/source/Irrlicht/ISceneNodeAnimatorFinishing.h +++ b/source/Irrlicht/ISceneNodeAnimatorFinishing.h @@ -20,7 +20,7 @@ namespace scene ISceneNodeAnimatorFinishing(u32 finishTime) : FinishTime(finishTime), HasFinished(false) { } - virtual bool hasFinished(void) const { return HasFinished; } + virtual bool hasFinished(void) const _IRR_OVERRIDE_ { return HasFinished; } protected: diff --git a/source/Irrlicht/Irrlicht.ruleset b/source/Irrlicht/Irrlicht.ruleset index 528b3c90..81794983 100644 --- a/source/Irrlicht/Irrlicht.ruleset +++ b/source/Irrlicht/Irrlicht.ruleset @@ -241,10 +241,12 @@ + + @@ -262,6 +264,8 @@ + + \ No newline at end of file diff --git a/source/Irrlicht/irrXML.cpp b/source/Irrlicht/irrXML.cpp index a5553ade..96f0ec79 100644 --- a/source/Irrlicht/irrXML.cpp +++ b/source/Irrlicht/irrXML.cpp @@ -48,7 +48,7 @@ public: } //! Reads an amount of bytes from the file. - virtual int read(void* buffer, int sizeToRead) + virtual int read(void* buffer, int sizeToRead) _IRR_OVERRIDE_ { if (!File) return 0; @@ -57,7 +57,7 @@ public: } //! Returns size of file in bytes - virtual long getSize() const + virtual long getSize() const _IRR_OVERRIDE_ { return Size; }