]> git.lizzy.rs Git - irrlicht.git/commitdiff
Replace _IRR_OVERRIDE_ macro with override keyword
authorJosiahWI <josiah_vanderzee@mediacombb.net>
Sun, 9 Oct 2022 18:57:28 +0000 (13:57 -0500)
committersfan5 <sfan5@live.de>
Fri, 14 Oct 2022 23:09:09 +0000 (01:09 +0200)
The commit also establishes a precedent of leaving off the `virtual`
keyword in overrides. Although not strictly necessary, I believe this is
good for readability because it makes it clear it is an override and not
a pure virtual function, and it helps keep line lengths shorter. We
should move towards eliminating the macro altogether, but the definition
has been left in with a note on deprecation so that in-progress work
will not suffer merge conflicts.

87 files changed:
include/CIndexBuffer.h
include/CMeshBuffer.h
include/CVertexBuffer.h
include/IAnimatedMesh.h
include/IBoneSceneNode.h
include/ICameraSceneNode.h
include/IGUIElement.h
include/IGUIFontBitmap.h
include/SAnimatedMesh.h
include/SMesh.h
include/SSkinMeshBuffer.h
include/irrTypes.h
source/Irrlicht/Android/CAndroidAssetFileArchive.h
source/Irrlicht/CAnimatedMeshSceneNode.h
source/Irrlicht/CAttributeImpl.h
source/Irrlicht/CAttributes.h
source/Irrlicht/CB3DMeshFileLoader.h
source/Irrlicht/CB3DMeshWriter.h
source/Irrlicht/CBillboardSceneNode.h
source/Irrlicht/CBoneSceneNode.h
source/Irrlicht/CCameraSceneNode.h
source/Irrlicht/CDummyTransformationSceneNode.h
source/Irrlicht/CEGLManager.h
source/Irrlicht/CEmptySceneNode.h
source/Irrlicht/CFileList.h
source/Irrlicht/CFileSystem.h
source/Irrlicht/CGLXManager.h
source/Irrlicht/CGUIButton.h
source/Irrlicht/CGUICheckBox.h
source/Irrlicht/CGUIComboBox.h
source/Irrlicht/CGUIEditBox.h
source/Irrlicht/CGUIEnvironment.h
source/Irrlicht/CGUIFileOpenDialog.h
source/Irrlicht/CGUIFont.h
source/Irrlicht/CGUIImage.h
source/Irrlicht/CGUIImageList.h
source/Irrlicht/CGUIListBox.h
source/Irrlicht/CGUIScrollBar.h
source/Irrlicht/CGUISkin.h
source/Irrlicht/CGUISpriteBank.h
source/Irrlicht/CGUIStaticText.h
source/Irrlicht/CGUITabControl.h
source/Irrlicht/CImage.h
source/Irrlicht/CImageLoaderBMP.h
source/Irrlicht/CImageLoaderJPG.h
source/Irrlicht/CImageLoaderPNG.h
source/Irrlicht/CImageLoaderTGA.h
source/Irrlicht/CImageWriterJPG.h
source/Irrlicht/CImageWriterPNG.h
source/Irrlicht/CIrrDeviceLinux.h
source/Irrlicht/CIrrDeviceOSX.h
source/Irrlicht/CIrrDeviceSDL.h
source/Irrlicht/CIrrDeviceStub.h
source/Irrlicht/CIrrDeviceWin32.h
source/Irrlicht/CIrrDeviceiOS.h
source/Irrlicht/CLimitReadFile.h
source/Irrlicht/CLogger.h
source/Irrlicht/CMemoryFile.h
source/Irrlicht/CMeshCache.h
source/Irrlicht/CMeshManipulator.h
source/Irrlicht/CMeshSceneNode.h
source/Irrlicht/CNSOGLManager.h
source/Irrlicht/CNullDriver.h
source/Irrlicht/COBJMeshFileLoader.h
source/Irrlicht/COGLES2Driver.h
source/Irrlicht/COGLES2MaterialRenderer.h
source/Irrlicht/COGLESDriver.h
source/Irrlicht/COGLESMaterialRenderer.h
source/Irrlicht/COSOperator.h
source/Irrlicht/COpenGLCoreRenderTarget.h
source/Irrlicht/COpenGLCoreTexture.h
source/Irrlicht/COpenGLDriver.h
source/Irrlicht/COpenGLMaterialRenderer.h
source/Irrlicht/COpenGLSLMaterialRenderer.h
source/Irrlicht/COpenGLShaderMaterialRenderer.h
source/Irrlicht/CProfiler.h
source/Irrlicht/CReadFile.h
source/Irrlicht/CSDLManager.h
source/Irrlicht/CSceneCollisionManager.h
source/Irrlicht/CSceneManager.h
source/Irrlicht/CSkinnedMesh.h
source/Irrlicht/CTimer.h
source/Irrlicht/CWGLManager.h
source/Irrlicht/CWebGL1Driver.h
source/Irrlicht/CWriteFile.h
source/Irrlicht/CXMeshFileLoader.h
source/Irrlicht/CZipReader.h

index 69253c3433038a57491d73691253c1ba9cd4b79d..be3d36f2b0c3bdd4254caa1b7feb8f49b02ca94c 100644 (file)
@@ -39,46 +39,46 @@ namespace scene
                public:\r
                        core::array<T> Indices;\r
 \r
-                       virtual u32 stride() const _IRR_OVERRIDE_ {return sizeof(T);}\r
+                       u32 stride() const override {return sizeof(T);}\r
 \r
-                       virtual u32 size() const _IRR_OVERRIDE_ {return Indices.size();}\r
+                       u32 size() const override {return Indices.size();}\r
 \r
-                       virtual void push_back(const u32 &element) _IRR_OVERRIDE_\r
+                       void push_back(const u32 &element) override\r
                        {\r
                                // push const ref due to compiler problem with gcc 4.6, big endian\r
                                Indices.push_back((const T&)element);\r
                        }\r
 \r
-                       virtual u32 operator [](u32 index) const _IRR_OVERRIDE_\r
+                       u32 operator [](u32 index) const override\r
                        {\r
                                return (u32)(Indices[index]);\r
                        }\r
 \r
-                       virtual u32 getLast() _IRR_OVERRIDE_ {return (u32)Indices.getLast();}\r
+                       u32 getLast() override {return (u32)Indices.getLast();}\r
 \r
-                       virtual void setValue(u32 index, u32 value) _IRR_OVERRIDE_\r
+                       void setValue(u32 index, u32 value) override\r
                        {\r
                                Indices[index]=(T)value;\r
                        }\r
 \r
-                       virtual void set_used(u32 usedNow) _IRR_OVERRIDE_\r
+                       void set_used(u32 usedNow) override\r
                        {\r
                                Indices.set_used(usedNow);\r
                        }\r
 \r
-                       virtual void reallocate(u32 new_size) _IRR_OVERRIDE_\r
+                       void reallocate(u32 new_size) override\r
                        {\r
                                Indices.reallocate(new_size);\r
                        }\r
 \r
-                       virtual u32 allocated_size() const _IRR_OVERRIDE_\r
+                       u32 allocated_size() const override\r
                        {\r
                                return Indices.allocated_size();\r
                        }\r
 \r
-                       virtual void* pointer() _IRR_OVERRIDE_  {return Indices.pointer();}\r
+                       void* pointer() override  {return Indices.pointer();}\r
 \r
-                       virtual video::E_INDEX_TYPE getType() const _IRR_OVERRIDE_\r
+                       video::E_INDEX_TYPE getType() const override\r
                        {\r
                                if (sizeof(T)==sizeof(u16))\r
                                        return video::EIT_16BIT;\r
@@ -110,7 +110,7 @@ namespace scene
                }\r
 \r
                //virtual void setType(video::E_INDEX_TYPE IndexType);\r
-               virtual void setType(video::E_INDEX_TYPE IndexType) _IRR_OVERRIDE_\r
+               void setType(video::E_INDEX_TYPE IndexType) override\r
                {\r
                        IIndexList *NewIndices=0;\r
 \r
@@ -141,78 +141,78 @@ namespace scene
                        Indices=NewIndices;\r
                }\r
 \r
-               virtual void* getData() _IRR_OVERRIDE_ {return Indices->pointer();}\r
+               void* getData() override {return Indices->pointer();}\r
 \r
-               virtual video::E_INDEX_TYPE getType() const _IRR_OVERRIDE_ {return Indices->getType();}\r
+               video::E_INDEX_TYPE getType() const override {return Indices->getType();}\r
 \r
-               virtual u32 stride() const _IRR_OVERRIDE_ {return Indices->stride();}\r
+               u32 stride() const override {return Indices->stride();}\r
 \r
-               virtual u32 size() const _IRR_OVERRIDE_\r
+               u32 size() const override\r
                {\r
                        return Indices->size();\r
                }\r
 \r
-               virtual void push_back(const u32 &element) _IRR_OVERRIDE_\r
+               void push_back(const u32 &element) override\r
                {\r
                        Indices->push_back(element);\r
                }\r
 \r
-               virtual u32 operator [](u32 index) const _IRR_OVERRIDE_\r
+               u32 operator [](u32 index) const override\r
                {\r
                        return (*Indices)[index];\r
                }\r
 \r
-               virtual u32 getLast() _IRR_OVERRIDE_\r
+               u32 getLast() override\r
                {\r
                        return Indices->getLast();\r
                }\r
 \r
-               virtual void setValue(u32 index, u32 value) _IRR_OVERRIDE_\r
+               void setValue(u32 index, u32 value) override\r
                {\r
                        Indices->setValue(index, value);\r
                }\r
 \r
-               virtual void set_used(u32 usedNow) _IRR_OVERRIDE_\r
+               void set_used(u32 usedNow) override\r
                {\r
                        Indices->set_used(usedNow);\r
                }\r
 \r
-               virtual void reallocate(u32 new_size) _IRR_OVERRIDE_\r
+               void reallocate(u32 new_size) override\r
                {\r
                        Indices->reallocate(new_size);\r
                }\r
 \r
-               virtual u32 allocated_size() const _IRR_OVERRIDE_\r
+               u32 allocated_size() const override\r
                {\r
                        return Indices->allocated_size();\r
                }\r
 \r
-               virtual void* pointer() _IRR_OVERRIDE_\r
+               void* pointer() override\r
                {\r
                        return Indices->pointer();\r
                }\r
 \r
                //! get the current hardware mapping hint\r
-               virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_\r
+               E_HARDWARE_MAPPING getHardwareMappingHint() const override\r
                {\r
                        return MappingHint;\r
                }\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) _IRR_OVERRIDE_\r
+               void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) override\r
                {\r
                        MappingHint=NewMappingHint;\r
                }\r
 \r
                //! flags the mesh as changed, reloads hardware buffers\r
-               virtual void setDirty() _IRR_OVERRIDE_\r
+               void setDirty() override\r
                {\r
                        ++ChangedID;\r
                }\r
 \r
                //! Get the currently used ID for identification of changes.\r
                /** This shouldn't be used for anything outside the VideoDriver. */\r
-               virtual u32 getChangedID() const _IRR_OVERRIDE_ {return ChangedID;}\r
+               u32 getChangedID() const override {return ChangedID;}\r
 \r
                E_HARDWARE_MAPPING MappingHint;\r
                u32 ChangedID;\r
index 6233bbe52dbbf76ee22cecd00823ade20a16be1e..e8fb5066cf90e45e85e027ea450ac4c06d4ff766 100644 (file)
@@ -32,7 +32,7 @@ namespace scene
 \r
                //! Get material of this meshbuffer\r
                /** \return Material of this buffer */\r
-               virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_\r
+               const video::SMaterial& getMaterial() const override\r
                {\r
                        return Material;\r
                }\r
@@ -40,7 +40,7 @@ namespace scene
 \r
                //! Get material of this meshbuffer\r
                /** \return Material of this buffer */\r
-               virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_\r
+               video::SMaterial& getMaterial() override\r
                {\r
                        return Material;\r
                }\r
@@ -48,7 +48,7 @@ namespace scene
 \r
                //! Get pointer to vertices\r
                /** \return Pointer to vertices. */\r
-               virtual const void* getVertices() const _IRR_OVERRIDE_\r
+               const void* getVertices() const override\r
                {\r
                        return Vertices.const_pointer();\r
                }\r
@@ -56,7 +56,7 @@ namespace scene
 \r
                //! Get pointer to vertices\r
                /** \return Pointer to vertices. */\r
-               virtual void* getVertices() _IRR_OVERRIDE_\r
+               void* getVertices() override\r
                {\r
                        return Vertices.pointer();\r
                }\r
@@ -64,21 +64,21 @@ namespace scene
 \r
                //! Get number of vertices\r
                /** \return Number of vertices. */\r
-               virtual u32 getVertexCount() const _IRR_OVERRIDE_\r
+               u32 getVertexCount() const override\r
                {\r
                        return Vertices.size();\r
                }\r
 \r
                //! Get type of index data which is stored in this meshbuffer.\r
                /** \return Index type of this buffer. */\r
-               virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_\r
+               video::E_INDEX_TYPE getIndexType() const override\r
                {\r
                        return video::EIT_16BIT;\r
                }\r
 \r
                //! Get pointer to indices\r
                /** \return Pointer to indices. */\r
-               virtual const u16* getIndices() const _IRR_OVERRIDE_\r
+               const u16* getIndices() const override\r
                {\r
                        return Indices.const_pointer();\r
                }\r
@@ -86,7 +86,7 @@ namespace scene
 \r
                //! Get pointer to indices\r
                /** \return Pointer to indices. */\r
-               virtual u16* getIndices() _IRR_OVERRIDE_\r
+               u16* getIndices() override\r
                {\r
                        return Indices.pointer();\r
                }\r
@@ -94,7 +94,7 @@ namespace scene
 \r
                //! Get number of indices\r
                /** \return Number of indices. */\r
-               virtual u32 getIndexCount() const _IRR_OVERRIDE_\r
+               u32 getIndexCount() const override\r
                {\r
                        return Indices.size();\r
                }\r
@@ -102,7 +102,7 @@ namespace scene
 \r
                //! Get the axis aligned bounding box\r
                /** \return Axis aligned bounding box of this buffer. */\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_\r
+               const core::aabbox3d<f32>& getBoundingBox() const override\r
                {\r
                        return BoundingBox;\r
                }\r
@@ -111,7 +111,7 @@ namespace scene
                //! Set the axis aligned bounding box\r
                /** \param box New axis aligned bounding box for this buffer. */\r
                //! set user axis aligned bounding box\r
-               virtual void setBoundingBox(const core::aabbox3df& box) _IRR_OVERRIDE_\r
+               void setBoundingBox(const core::aabbox3df& box) override\r
                {\r
                        BoundingBox = box;\r
                }\r
@@ -119,7 +119,7 @@ namespace scene
 \r
                //! Recalculate the bounding box.\r
                /** should be called if the mesh changed. */\r
-               virtual void recalculateBoundingBox() _IRR_OVERRIDE_\r
+               void recalculateBoundingBox() override\r
                {\r
                        if (!Vertices.empty())\r
                        {\r
@@ -136,43 +136,43 @@ namespace scene
 \r
                //! Get type of vertex data stored in this buffer.\r
                /** \return Type of vertex data. */\r
-               virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_\r
+               video::E_VERTEX_TYPE getVertexType() const override\r
                {\r
                        return T::getType();\r
                }\r
 \r
                //! returns position of vertex i\r
-               virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_\r
+               const core::vector3df& getPosition(u32 i) const override\r
                {\r
                        return Vertices[i].Pos;\r
                }\r
 \r
                //! returns position of vertex i\r
-               virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_\r
+               core::vector3df& getPosition(u32 i) override\r
                {\r
                        return Vertices[i].Pos;\r
                }\r
 \r
                //! returns normal of vertex i\r
-               virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_\r
+               const core::vector3df& getNormal(u32 i) const override\r
                {\r
                        return Vertices[i].Normal;\r
                }\r
 \r
                //! returns normal of vertex i\r
-               virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_\r
+               core::vector3df& getNormal(u32 i) override\r
                {\r
                        return Vertices[i].Normal;\r
                }\r
 \r
                //! returns texture coord of vertex i\r
-               virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_\r
+               const core::vector2df& getTCoords(u32 i) const override\r
                {\r
                        return Vertices[i].TCoords;\r
                }\r
 \r
                //! returns texture coord of vertex i\r
-               virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_\r
+               core::vector2df& getTCoords(u32 i) override\r
                {\r
                        return Vertices[i].TCoords;\r
                }\r
@@ -183,7 +183,7 @@ namespace scene
                or the main buffer is of standard type. Otherwise, behavior is\r
                undefined.\r
                */\r
-               virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_\r
+               void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) override\r
                {\r
                        if (vertices == getVertices())\r
                                return;\r
@@ -212,7 +212,7 @@ namespace scene
                undefined.\r
                \param other Meshbuffer to be appended to this one.\r
                */\r
-               virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_\r
+               void append(const IMeshBuffer* const other) override\r
                {\r
                        /*\r
                        if (this==other)\r
@@ -238,19 +238,19 @@ namespace scene
 \r
 \r
                //! get the current hardware mapping hint\r
-               virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_\r
+               E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const override\r
                {\r
                        return MappingHint_Vertex;\r
                }\r
 \r
                //! get the current hardware mapping hint\r
-               virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_\r
+               E_HARDWARE_MAPPING getHardwareMappingHint_Index() const override\r
                {\r
                        return MappingHint_Index;\r
                }\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_\r
+               void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) override\r
                {\r
                        if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX)\r
                                MappingHint_Vertex=NewMappingHint;\r
@@ -259,19 +259,19 @@ namespace scene
                }\r
 \r
                //! Describe what kind of primitive geometry is used by the meshbuffer\r
-               virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_\r
+               void setPrimitiveType(E_PRIMITIVE_TYPE type) override\r
                {\r
                        PrimitiveType = type;\r
                }\r
 \r
                //! Get the kind of primitive geometry which is used by the meshbuffer\r
-               virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_\r
+               E_PRIMITIVE_TYPE getPrimitiveType() const override\r
                {\r
                        return PrimitiveType;\r
                }\r
 \r
                //! flags the mesh as changed, reloads hardware buffers\r
-               virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_\r
+               void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) override\r
                {\r
                        if (Buffer==EBT_VERTEX_AND_INDEX ||Buffer==EBT_VERTEX)\r
                                ++ChangedID_Vertex;\r
@@ -281,17 +281,17 @@ namespace scene
 \r
                //! Get the currently used ID for identification of changes.\r
                /** This shouldn't be used for anything outside the VideoDriver. */\r
-               virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ {return ChangedID_Vertex;}\r
+               u32 getChangedID_Vertex() const override {return ChangedID_Vertex;}\r
 \r
                //! Get the currently used ID for identification of changes.\r
                /** This shouldn't be used for anything outside the VideoDriver. */\r
-               virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ {return ChangedID_Index;}\r
+               u32 getChangedID_Index() const override {return ChangedID_Index;}\r
 \r
-               virtual void setHWBuffer(void *ptr) const _IRR_OVERRIDE_ {\r
+               void setHWBuffer(void *ptr) const override {\r
                        HWBuffer = ptr;\r
                }\r
 \r
-               virtual void *getHWBuffer() const _IRR_OVERRIDE_ {\r
+               void *getHWBuffer() const override {\r
                        return HWBuffer;\r
                }\r
 \r
index 4d52779b4ab751a67bcf54aaf0647ba0e48765a8..e382dc5a788381f10f2a245fa87e80e3b14c7c7f 100644 (file)
@@ -40,33 +40,33 @@ namespace scene
                public:\r
                        core::array<T> Vertices;\r
 \r
-                       virtual u32 stride() const _IRR_OVERRIDE_ {return sizeof(T);}\r
+                       u32 stride() const override {return sizeof(T);}\r
 \r
-                       virtual u32 size() const _IRR_OVERRIDE_ {return Vertices.size();}\r
+                       u32 size() const override {return Vertices.size();}\r
 \r
-                       virtual void push_back (const video::S3DVertex &element) _IRR_OVERRIDE_\r
+                       void push_back (const video::S3DVertex &element) override\r
                        {Vertices.push_back((T&)element);}\r
 \r
-                       virtual video::S3DVertex& operator [](const u32 index) const _IRR_OVERRIDE_\r
+                       video::S3DVertex& operator [](const u32 index) const override\r
                        {return (video::S3DVertex&)Vertices[index];}\r
 \r
-                       virtual video::S3DVertex& getLast() _IRR_OVERRIDE_\r
+                       video::S3DVertex& getLast() override\r
                        {return (video::S3DVertex&)Vertices.getLast();}\r
 \r
-                       virtual void set_used(u32 usedNow) _IRR_OVERRIDE_\r
+                       void set_used(u32 usedNow) override\r
                        {Vertices.set_used(usedNow);}\r
 \r
-                       virtual void reallocate(u32 new_size) _IRR_OVERRIDE_\r
+                       void reallocate(u32 new_size) override\r
                        {Vertices.reallocate(new_size);}\r
 \r
-                       virtual u32 allocated_size() const _IRR_OVERRIDE_\r
+                       u32 allocated_size() const override\r
                        {\r
                                return Vertices.allocated_size();\r
                        }\r
 \r
-                       virtual video::S3DVertex* pointer() _IRR_OVERRIDE_ {return Vertices.pointer();}\r
+                       video::S3DVertex* pointer() override {return Vertices.pointer();}\r
 \r
-                       virtual video::E_VERTEX_TYPE getType() const _IRR_OVERRIDE_ {return T::getType();}\r
+                       video::E_VERTEX_TYPE getType() const override {return T::getType();}\r
                };\r
 \r
        public:\r
@@ -95,7 +95,7 @@ namespace scene
                }\r
 \r
 \r
-               virtual void setType(video::E_VERTEX_TYPE vertexType) _IRR_OVERRIDE_\r
+               void setType(video::E_VERTEX_TYPE vertexType) override\r
                {\r
                        IVertexList *NewVertices=0;\r
 \r
@@ -130,73 +130,73 @@ namespace scene
                        Vertices=NewVertices;\r
                }\r
 \r
-               virtual void* getData() _IRR_OVERRIDE_ {return Vertices->pointer();}\r
+               void* getData() override {return Vertices->pointer();}\r
 \r
-               virtual video::E_VERTEX_TYPE getType() const _IRR_OVERRIDE_ {return Vertices->getType();}\r
+               video::E_VERTEX_TYPE getType() const override {return Vertices->getType();}\r
 \r
-               virtual u32 stride() const _IRR_OVERRIDE_ {return Vertices->stride();}\r
+               u32 stride() const override {return Vertices->stride();}\r
 \r
-               virtual u32 size() const _IRR_OVERRIDE_\r
+               u32 size() const override\r
                {\r
                        return Vertices->size();\r
                }\r
 \r
-               virtual void push_back (const video::S3DVertex &element) _IRR_OVERRIDE_\r
+               void push_back (const video::S3DVertex &element) override\r
                {\r
                        Vertices->push_back(element);\r
                }\r
 \r
-               virtual video::S3DVertex& operator [](const u32 index) const _IRR_OVERRIDE_\r
+               video::S3DVertex& operator [](const u32 index) const override\r
                {\r
                        return (*Vertices)[index];\r
                }\r
 \r
-               virtual video::S3DVertex& getLast() _IRR_OVERRIDE_\r
+               video::S3DVertex& getLast() override\r
                {\r
                        return Vertices->getLast();\r
                }\r
 \r
-               virtual void set_used(u32 usedNow) _IRR_OVERRIDE_\r
+               void set_used(u32 usedNow) override\r
                {\r
                        Vertices->set_used(usedNow);\r
                }\r
 \r
-               virtual void reallocate(u32 new_size) _IRR_OVERRIDE_\r
+               void reallocate(u32 new_size) override\r
                {\r
                        Vertices->reallocate(new_size);\r
                }\r
 \r
-               virtual u32 allocated_size() const _IRR_OVERRIDE_\r
+               u32 allocated_size() const override\r
                {\r
                        return Vertices->allocated_size();\r
                }\r
 \r
-               virtual video::S3DVertex* pointer() _IRR_OVERRIDE_\r
+               video::S3DVertex* pointer() override\r
                {\r
                        return Vertices->pointer();\r
                }\r
 \r
                //! get the current hardware mapping hint\r
-               virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_\r
+               E_HARDWARE_MAPPING getHardwareMappingHint() const override\r
                {\r
                        return MappingHint;\r
                }\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) _IRR_OVERRIDE_\r
+               void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) override\r
                {\r
                        MappingHint=NewMappingHint;\r
                }\r
 \r
                //! flags the mesh as changed, reloads hardware buffers\r
-               virtual void setDirty() _IRR_OVERRIDE_\r
+               void setDirty() override\r
                {\r
                        ++ChangedID;\r
                }\r
 \r
                //! Get the currently used ID for identification of changes.\r
                /** This shouldn't be used for anything outside the VideoDriver. */\r
-               virtual u32 getChangedID() const _IRR_OVERRIDE_  {return ChangedID;}\r
+               u32 getChangedID() const override  {return ChangedID;}\r
 \r
                E_HARDWARE_MAPPING MappingHint;\r
                u32 ChangedID;\r
index 0d252e8dc6b904b0a67b080a18558ca40a2566b7..e876315f26684c52029204defc37d6e72834a51b 100644 (file)
@@ -61,7 +61,7 @@ namespace scene
                if getMeshType() returns EAMT_MD2 it's safe to cast the\r
                IAnimatedMesh to IAnimatedMeshMD2.\r
                \returns Type of the mesh. */\r
-               virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_\r
+               E_ANIMATED_MESH_TYPE getMeshType() const override\r
                {\r
                        return EAMT_UNKNOWN;\r
                }\r
index a96a28be4ef79d81170702942c6d886efa6a6071..8cc8c075fdacd78378e1cf0125642b5921f6041a 100644 (file)
@@ -74,17 +74,17 @@ namespace scene
                virtual E_BONE_ANIMATION_MODE getAnimationMode() const = 0;\r
 \r
                //! Get the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_ = 0;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override = 0;\r
 \r
                //! Returns the relative transformation of the scene node.\r
                //virtual core::matrix4 getRelativeTransformation() const = 0;\r
 \r
                //! The animation method.\r
-               virtual void OnAnimate(u32 timeMs) _IRR_OVERRIDE_ =0;\r
+               void OnAnimate(u32 timeMs) override =0;\r
 \r
                //! The render method.\r
                /** Does nothing as bones are not visible. */\r
-               virtual void render() _IRR_OVERRIDE_ { }\r
+               void render() override { }\r
 \r
                //! How the relative transformation of the bone is used\r
                virtual void setSkinningSpace( E_BONE_SKINNING_SPACE space ) =0;\r
index 8e7a78fe4bc16fbf3ee1f91ba2e28b1886aa045c..cca53b6b96454579c3ae569ee7fff9e34d6a1bd4 100644 (file)
@@ -72,7 +72,7 @@ namespace scene
                ISceneManager::addCameraSceneNodeFPS, may want to get\r
                this input for changing their position, look at target or\r
                whatever. */\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_ =0;\r
+               bool OnEvent(const SEvent& event) override =0;\r
 \r
                //! Sets the look at target of the camera\r
                /** If the camera's target and rotation are bound ( @see\r
@@ -90,7 +90,7 @@ namespace scene
                bindTargetAndRotation() ) then calling this will also change\r
                the camera's target to match the rotation.\r
                \param rotation New rotation of the node in degrees. */\r
-               virtual void setRotation(const core::vector3df& rotation) _IRR_OVERRIDE_ =0;\r
+               void setRotation(const core::vector3df& rotation) override =0;\r
 \r
                //! Gets the current look at target of the camera\r
                /** \return The current look at target of the camera, in world co-ordinates */\r
index 9c4b6423f6561b6643c85d1cbb308a0bb36866fe..4026b7eb2066dd345b7cd5382f68c1742a7c7cad 100644 (file)
@@ -545,7 +545,7 @@ public:
 \r
 \r
        //! Called if an event happened.\r
-       virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_\r
+       bool OnEvent(const SEvent& event) override\r
        {\r
                return Parent ? Parent->OnEvent(event) : false;\r
        }\r
index 4141236ebcf24a29951663272dcf2bb07c033560..a170b9242f3143831f320897398fbd9e41c486ed 100644 (file)
@@ -19,7 +19,7 @@ class IGUIFontBitmap : public IGUIFont
 public:\r
 \r
        //! Returns the type of this font\r
-       virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_ { return EGFT_BITMAP; }\r
+       EGUI_FONT_TYPE getType() const override { return EGFT_BITMAP; }\r
 \r
        //! returns the parsed Symbol Information\r
        virtual IGUISpriteBank* getSpriteBank() const = 0;\r
@@ -36,7 +36,7 @@ public:
        kerning value. For example, EGFT_BITMAP will add the right kerning value of previousLetter to the\r
        left side kerning value of thisLetter, then add the global value.\r
        */\r
-       virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const _IRR_OVERRIDE_ = 0;\r
+       s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const override = 0;\r
 };\r
 \r
 } // end namespace gui\r
index 45a4d486738dd7c1a798391608ea8aba18513fea..7ab45ef2edf812bbf09a348e27596d503db23088 100644 (file)
@@ -38,14 +38,14 @@ namespace scene
 \r
                //! Gets the frame count of the animated mesh.\r
                /** \return Amount of frames. If the amount is 1, it is a static, non animated mesh. */\r
-               virtual u32 getFrameCount() const _IRR_OVERRIDE_\r
+               u32 getFrameCount() const override\r
                {\r
                        return Meshes.size();\r
                }\r
 \r
                //! Gets the default animation speed of the animated mesh.\r
                /** \return Amount of frames per second. If the amount is 0, it is a static, non animated mesh. */\r
-               virtual f32 getAnimationSpeed() const _IRR_OVERRIDE_\r
+               f32 getAnimationSpeed() const override\r
                {\r
                        return FramesPerSecond;\r
                }\r
@@ -53,7 +53,7 @@ namespace scene
                //! Gets the frame count of the animated mesh.\r
                /** \param fps Frames per second to play the animation with. If the amount is 0, it is not animated.\r
                The actual speed is set in the scene node the mesh is instantiated in.*/\r
-               virtual void setAnimationSpeed(f32 fps) _IRR_OVERRIDE_\r
+               void setAnimationSpeed(f32 fps) override\r
                {\r
                        FramesPerSecond=fps;\r
                }\r
@@ -66,7 +66,7 @@ namespace scene
                \param startFrameLoop: start frame\r
                \param endFrameLoop: end frame\r
                \return The animated mesh based on a detail level. */\r
-               virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) _IRR_OVERRIDE_\r
+               IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) override\r
                {\r
                        if (Meshes.empty())\r
                                return 0;\r
@@ -86,13 +86,13 @@ namespace scene
 \r
                //! Returns an axis aligned bounding box of the mesh.\r
                /** \return A bounding box of this mesh is returned. */\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_\r
+               const core::aabbox3d<f32>& getBoundingBox() const override\r
                {\r
                        return Box;\r
                }\r
 \r
                //! set user axis aligned bounding box\r
-               virtual void setBoundingBox(const core::aabbox3df& box) _IRR_OVERRIDE_\r
+               void setBoundingBox(const core::aabbox3df& box) override\r
                {\r
                        Box = box;\r
                }\r
@@ -112,13 +112,13 @@ namespace scene
                }\r
 \r
                //! Returns the type of the animated mesh.\r
-               virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_\r
+               E_ANIMATED_MESH_TYPE getMeshType() const override\r
                {\r
                        return Type;\r
                }\r
 \r
                //! returns amount of mesh buffers.\r
-               virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_\r
+               u32 getMeshBufferCount() const override\r
                {\r
                        if (Meshes.empty())\r
                                return 0;\r
@@ -127,7 +127,7 @@ namespace scene
                }\r
 \r
                //! returns pointer to a mesh buffer\r
-               virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_\r
+               IMeshBuffer* getMeshBuffer(u32 nr) const override\r
                {\r
                        if (Meshes.empty())\r
                                return 0;\r
@@ -139,7 +139,7 @@ namespace scene
                /** \param material: material to search for\r
                \return Returns the pointer to the mesh buffer or\r
                NULL if there is no such mesh buffer. */\r
-               virtual IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const _IRR_OVERRIDE_\r
+               IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const override\r
                {\r
                        if (Meshes.empty())\r
                                return 0;\r
@@ -148,21 +148,21 @@ namespace scene
                }\r
 \r
                //! Set a material flag for all meshbuffers of this mesh.\r
-               virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_\r
+               void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) override\r
                {\r
                        for (u32 i=0; i<Meshes.size(); ++i)\r
                                Meshes[i]->setMaterialFlag(flag, newvalue);\r
                }\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_\r
+               void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) override\r
                {\r
                        for (u32 i=0; i<Meshes.size(); ++i)\r
                                Meshes[i]->setHardwareMappingHint(newMappingHint, buffer);\r
                }\r
 \r
                //! flags the meshbuffer as changed, reloads hardware buffers\r
-               virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_\r
+               void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) override\r
                {\r
                        for (u32 i=0; i<Meshes.size(); ++i)\r
                                Meshes[i]->setDirty(buffer);\r
index add6c9fb42d6ae89c762b15ccafdbf04c9dd7f2d..f4b7e2aa9ab54314db2281e034a4079567b081f4 100644 (file)
@@ -44,20 +44,20 @@ namespace scene
 \r
 \r
                //! returns amount of mesh buffers.\r
-               virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_\r
+               u32 getMeshBufferCount() const override\r
                {\r
                        return MeshBuffers.size();\r
                }\r
 \r
                //! returns pointer to a mesh buffer\r
-               virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_\r
+               IMeshBuffer* getMeshBuffer(u32 nr) const override\r
                {\r
                        return MeshBuffers[nr];\r
                }\r
 \r
                //! returns a meshbuffer which fits a material\r
                /** reverse search */\r
-               virtual IMeshBuffer* getMeshBuffer( const video::SMaterial & material) const _IRR_OVERRIDE_\r
+               IMeshBuffer* getMeshBuffer( const video::SMaterial & material) const override\r
                {\r
                        for (s32 i = (s32)MeshBuffers.size()-1; i >= 0; --i)\r
                        {\r
@@ -69,13 +69,13 @@ namespace scene
                }\r
 \r
                //! returns an axis aligned bounding box\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_\r
+               const core::aabbox3d<f32>& getBoundingBox() const override\r
                {\r
                        return BoundingBox;\r
                }\r
 \r
                //! set user axis aligned bounding box\r
-               virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_\r
+               void setBoundingBox( const core::aabbox3df& box) override\r
                {\r
                        BoundingBox = box;\r
                }\r
@@ -118,21 +118,21 @@ namespace scene
                }\r
 \r
                //! sets a flag of all contained materials to a new value\r
-               virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_\r
+               void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) override\r
                {\r
                        for (u32 i=0; i<MeshBuffers.size(); ++i)\r
                                MeshBuffers[i]->getMaterial().setFlag(flag, newvalue);\r
                }\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_\r
+               void setHardwareMappingHint( E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX ) override\r
                {\r
                        for (u32 i=0; i<MeshBuffers.size(); ++i)\r
                                MeshBuffers[i]->setHardwareMappingHint(newMappingHint, buffer);\r
                }\r
 \r
                //! flags the meshbuffer as changed, reloads hardware buffers\r
-               virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_\r
+               void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) override\r
                {\r
                        for (u32 i=0; i<MeshBuffers.size(); ++i)\r
                                MeshBuffers[i]->setDirty(buffer);\r
index 809bd6800dee8fb6efa1e328ea24229e98a5e15d..29b67d8b56d47d450f05f3b3eeb30c129f3ac715 100644 (file)
@@ -32,13 +32,13 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Get Material of this buffer.\r
-       virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_\r
+       const video::SMaterial& getMaterial() const override\r
        {\r
                return Material;\r
        }\r
 \r
        //! Get Material of this buffer.\r
-       virtual video::SMaterial& getMaterial() _IRR_OVERRIDE_\r
+       video::SMaterial& getMaterial() override\r
        {\r
                return Material;\r
        }\r
@@ -58,7 +58,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Get pointer to vertex array\r
-       virtual const void* getVertices() const _IRR_OVERRIDE_\r
+       const void* getVertices() const override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -72,7 +72,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Get pointer to vertex array\r
-       virtual void* getVertices() _IRR_OVERRIDE_\r
+       void* getVertices() override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -86,7 +86,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Get vertex count\r
-       virtual u32 getVertexCount() const _IRR_OVERRIDE_\r
+       u32 getVertexCount() const override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -101,43 +101,43 @@ struct SSkinMeshBuffer : public IMeshBuffer
 \r
        //! Get type of index data which is stored in this meshbuffer.\r
        /** \return Index type of this buffer. */\r
-       virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_\r
+       video::E_INDEX_TYPE getIndexType() const override\r
        {\r
                return video::EIT_16BIT;\r
        }\r
 \r
        //! Get pointer to index array\r
-       virtual const u16* getIndices() const _IRR_OVERRIDE_\r
+       const u16* getIndices() const override\r
        {\r
                return Indices.const_pointer();\r
        }\r
 \r
        //! Get pointer to index array\r
-       virtual u16* getIndices() _IRR_OVERRIDE_\r
+       u16* getIndices() override\r
        {\r
                return Indices.pointer();\r
        }\r
 \r
        //! Get index count\r
-       virtual u32 getIndexCount() const _IRR_OVERRIDE_\r
+       u32 getIndexCount() const override\r
        {\r
                return Indices.size();\r
        }\r
 \r
        //! Get bounding box\r
-       virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_\r
+       const core::aabbox3d<f32>& getBoundingBox() const override\r
        {\r
                return BoundingBox;\r
        }\r
 \r
        //! Set bounding box\r
-       virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_\r
+       void setBoundingBox( const core::aabbox3df& box) override\r
        {\r
                BoundingBox = box;\r
        }\r
 \r
        //! Recalculate bounding box\r
-       virtual void recalculateBoundingBox() _IRR_OVERRIDE_\r
+       void recalculateBoundingBox() override\r
        {\r
                if(!BoundingBoxNeedsRecalculated)\r
                        return;\r
@@ -186,7 +186,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Get vertex type\r
-       virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_\r
+       video::E_VERTEX_TYPE getVertexType() const override\r
        {\r
                return VertexType;\r
        }\r
@@ -244,7 +244,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns position of vertex i\r
-       virtual const core::vector3df& getPosition(u32 i) const _IRR_OVERRIDE_\r
+       const core::vector3df& getPosition(u32 i) const override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -258,7 +258,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns position of vertex i\r
-       virtual core::vector3df& getPosition(u32 i) _IRR_OVERRIDE_\r
+       core::vector3df& getPosition(u32 i) override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -272,7 +272,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns normal of vertex i\r
-       virtual const core::vector3df& getNormal(u32 i) const _IRR_OVERRIDE_\r
+       const core::vector3df& getNormal(u32 i) const override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -286,7 +286,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns normal of vertex i\r
-       virtual core::vector3df& getNormal(u32 i) _IRR_OVERRIDE_\r
+       core::vector3df& getNormal(u32 i) override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -300,7 +300,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns texture coords of vertex i\r
-       virtual const core::vector2df& getTCoords(u32 i) const _IRR_OVERRIDE_\r
+       const core::vector2df& getTCoords(u32 i) const override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -314,7 +314,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! returns texture coords of vertex i\r
-       virtual core::vector2df& getTCoords(u32 i) _IRR_OVERRIDE_\r
+       core::vector2df& getTCoords(u32 i) override\r
        {\r
                switch (VertexType)\r
                {\r
@@ -328,25 +328,25 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! append the vertices and indices to the current buffer\r
-       virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) _IRR_OVERRIDE_ {}\r
+       void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) override {}\r
 \r
        //! append the meshbuffer to the current buffer\r
-       virtual void append(const IMeshBuffer* const other) _IRR_OVERRIDE_ {}\r
+       void append(const IMeshBuffer* const other) override {}\r
 \r
        //! get the current hardware mapping hint for vertex buffers\r
-       virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_\r
+       E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const override\r
        {\r
                return MappingHint_Vertex;\r
        }\r
 \r
        //! get the current hardware mapping hint for index buffers\r
-       virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_\r
+       E_HARDWARE_MAPPING getHardwareMappingHint_Index() const override\r
        {\r
                return MappingHint_Index;\r
        }\r
 \r
        //! set the hardware mapping hint, for driver\r
-       virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) _IRR_OVERRIDE_\r
+       void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX ) override\r
        {\r
                if (Buffer==EBT_VERTEX)\r
                        MappingHint_Vertex=NewMappingHint;\r
@@ -360,19 +360,19 @@ struct SSkinMeshBuffer : public IMeshBuffer
        }\r
 \r
        //! Describe what kind of primitive geometry is used by the meshbuffer\r
-       virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_\r
+       void setPrimitiveType(E_PRIMITIVE_TYPE type) override\r
        {\r
                PrimitiveType = type;\r
        }\r
 \r
        //! Get the kind of primitive geometry which is used by the meshbuffer\r
-       virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_\r
+       E_PRIMITIVE_TYPE getPrimitiveType() const override\r
        {\r
                return PrimitiveType;\r
        }\r
 \r
        //! flags the mesh as changed, reloads hardware buffers\r
-       virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_\r
+       void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) override\r
        {\r
                if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX)\r
                        ++ChangedID_Vertex;\r
@@ -380,15 +380,15 @@ struct SSkinMeshBuffer : public IMeshBuffer
                        ++ChangedID_Index;\r
        }\r
 \r
-       virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_ {return ChangedID_Vertex;}\r
+       u32 getChangedID_Vertex() const override {return ChangedID_Vertex;}\r
 \r
-       virtual u32 getChangedID_Index() const _IRR_OVERRIDE_ {return ChangedID_Index;}\r
+       u32 getChangedID_Index() const override {return ChangedID_Index;}\r
 \r
-       virtual void setHWBuffer(void *ptr) const _IRR_OVERRIDE_ {\r
+       void setHWBuffer(void *ptr) const override {\r
                HWBuffer = ptr;\r
        }\r
 \r
-       virtual void *getHWBuffer() const _IRR_OVERRIDE_ {\r
+       void *getHWBuffer() const override {\r
                return HWBuffer;\r
        }\r
 \r
index f73e0a97f232496a6adee6187b6645ed999d2108..e67b3958abe5da29ddecee4188ed30de10ba1495 100644 (file)
@@ -112,13 +112,10 @@ For functions:            template<class T> _IRR_DEPRECATED_ void test4(void) {}
 #define _IRR_DEPRECATED_\r
 #endif\r
 \r
-//! Defines an override macro, to protect virtual functions from typos and other mismatches\r
-/** Usage in a derived class:\r
-virtual void somefunc() _IRR_OVERRIDE_;\r
-*/\r
+//! deprecated macro for virtual function override\r
+/** prefer to use the override keyword for new code */\r
 #define _IRR_OVERRIDE_ override\r
 \r
-\r
 //! creates four CC codes used in Irrlicht for simple ids\r
 /** some compilers can create those by directly writing the\r
 code like 'code', but some generate warnings so we use this macro here */\r
index 7acf9f41e302783fb8fbf899858bfaec05d5d75a..7d7ab3515f0afde16bfbab888c70aec6c6a51043 100644 (file)
@@ -54,7 +54,7 @@ namespace io
                virtual void addDirectoryToFileList(const io::path &filename);\r
 \r
                //! return the name (id) of the file Archive\r
-               virtual const io::path& getArchiveName() const _IRR_OVERRIDE_ {return Path;}\r
+               const io::path& getArchiveName() const override {return Path;}\r
 \r
        protected:\r
                //! Android's asset manager\r
index ba5df8805b0c29c29c20e314999815c5891c0e69..a11a19091c4dff1e638b01a373177e1d55760803 100644 (file)
@@ -31,114 +31,114 @@ namespace scene
                virtual ~CAnimatedMeshSceneNode();\r
 \r
                //! sets the current frame. from now on the animation is played from this frame.\r
-               virtual void setCurrentFrame(f32 frame) _IRR_OVERRIDE_;\r
+               void setCurrentFrame(f32 frame) override;\r
 \r
                //! frame\r
-               virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;\r
+               void OnRegisterSceneNode() override;\r
 \r
                //! OnAnimate() is called just before rendering the whole scene.\r
-               virtual void OnAnimate(u32 timeMs) _IRR_OVERRIDE_;\r
+               void OnAnimate(u32 timeMs) override;\r
 \r
                //! renders the node.\r
-               virtual void render() _IRR_OVERRIDE_;\r
+               void render() override;\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! sets the frames between the animation is looped.\r
                //! the default is 0 - MaximalFrameCount of the mesh.\r
                //! NOTE: setMesh will also change this value and set it to the full range of animations of the mesh\r
-               virtual bool setFrameLoop(s32 begin, s32 end) _IRR_OVERRIDE_;\r
+               bool setFrameLoop(s32 begin, s32 end) override;\r
 \r
                //! Sets looping mode which is on by default. If set to false,\r
                //! animations will not be looped.\r
-               virtual void setLoopMode(bool playAnimationLooped) _IRR_OVERRIDE_;\r
+               void setLoopMode(bool playAnimationLooped) override;\r
 \r
                //! returns the current loop mode\r
-               virtual bool getLoopMode() const _IRR_OVERRIDE_;\r
+               bool getLoopMode() const override;\r
 \r
                //! Sets a callback interface which will be called if an animation\r
                //! playback has ended. Set this to 0 to disable the callback again.\r
-               virtual void setAnimationEndCallback(IAnimationEndCallBack* callback=0) _IRR_OVERRIDE_;\r
+               void setAnimationEndCallback(IAnimationEndCallBack* callback=0) override;\r
 \r
                //! sets the speed with which the animation is played\r
                //! NOTE: setMesh will also change this value and set it to the default speed of the mesh\r
-               virtual void setAnimationSpeed(f32 framesPerSecond) _IRR_OVERRIDE_;\r
+               void setAnimationSpeed(f32 framesPerSecond) override;\r
 \r
                //! gets the speed with which the animation is played\r
-               virtual f32 getAnimationSpeed() const _IRR_OVERRIDE_;\r
+               f32 getAnimationSpeed() const override;\r
 \r
                //! returns the material based on the zero based index i. To get the amount\r
                //! of materials used by this scene node, use getMaterialCount().\r
                //! This function is needed for inserting the node into the scene hierarchy on a\r
                //! optimal position for minimizing renderstate changes, but can also be used\r
                //! to directly modify the material of a scene node.\r
-               virtual video::SMaterial& getMaterial(u32 i) _IRR_OVERRIDE_;\r
+               video::SMaterial& getMaterial(u32 i) override;\r
 \r
                //! returns amount of materials used by this scene node.\r
-               virtual u32 getMaterialCount() const _IRR_OVERRIDE_;\r
+               u32 getMaterialCount() const override;\r
 \r
                //! Returns a pointer to a child node, which has the same transformation as\r
                //! the corresponding joint, if the mesh in this scene node is a skinned mesh.\r
-               virtual IBoneSceneNode* getJointNode(const c8* jointName) _IRR_OVERRIDE_;\r
+               IBoneSceneNode* getJointNode(const c8* jointName) override;\r
 \r
                //! same as getJointNode(const c8* jointName), but based on id\r
-               virtual IBoneSceneNode* getJointNode(u32 jointID) _IRR_OVERRIDE_;\r
+               IBoneSceneNode* getJointNode(u32 jointID) override;\r
 \r
                //! Gets joint count.\r
-               virtual u32 getJointCount() const _IRR_OVERRIDE_;\r
+               u32 getJointCount() const override;\r
 \r
                //! Removes a child from this scene node.\r
                //! Implemented here, to be able to remove the shadow properly, if there is one,\r
                //! or to remove attached child.\r
-               virtual bool removeChild(ISceneNode* child) _IRR_OVERRIDE_;\r
+               bool removeChild(ISceneNode* child) override;\r
 \r
                //! Returns the current displayed frame number.\r
-               virtual f32 getFrameNr() const _IRR_OVERRIDE_;\r
+               f32 getFrameNr() const override;\r
                //! Returns the current start frame number.\r
-               virtual s32 getStartFrame() const _IRR_OVERRIDE_;\r
+               s32 getStartFrame() const override;\r
                //! Returns the current end frame number.\r
-               virtual s32 getEndFrame() const _IRR_OVERRIDE_;\r
+               s32 getEndFrame() const override;\r
 \r
                //! Sets if the scene node should not copy the materials of the mesh but use them in a read only style.\r
                /* In this way it is possible to change the materials a mesh causing all mesh scene nodes\r
                referencing this mesh to change too. */\r
-               virtual void setReadOnlyMaterials(bool readonly) _IRR_OVERRIDE_;\r
+               void setReadOnlyMaterials(bool readonly) override;\r
 \r
                //! Returns if the scene node should not copy the materials of the mesh but use them in a read only style\r
-               virtual bool isReadOnlyMaterials() const _IRR_OVERRIDE_;\r
+               bool isReadOnlyMaterials() const override;\r
 \r
                //! Sets a new mesh\r
-               virtual void setMesh(IAnimatedMesh* mesh) _IRR_OVERRIDE_;\r
+               void setMesh(IAnimatedMesh* mesh) override;\r
 \r
                //! Returns the current mesh\r
-               virtual IAnimatedMesh* getMesh(void) _IRR_OVERRIDE_ { return Mesh; }\r
+               IAnimatedMesh* getMesh(void) override { return Mesh; }\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_ANIMATED_MESH; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_ANIMATED_MESH; }\r
 \r
                //! updates the absolute position based on the relative and the parents position\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
 \r
                //! Set the joint update mode (0-unused, 1-get joints only, 2-set joints only, 3-move and set)\r
-               virtual void setJointMode(E_JOINT_UPDATE_ON_RENDER mode) _IRR_OVERRIDE_;\r
+               void setJointMode(E_JOINT_UPDATE_ON_RENDER mode) override;\r
 \r
                //! Sets the transition time in seconds (note: This needs to enable joints, and setJointmode maybe set to 2)\r
                //! you must call animateJoints(), or the mesh will not animate\r
-               virtual void setTransitionTime(f32 Time) _IRR_OVERRIDE_;\r
+               void setTransitionTime(f32 Time) override;\r
 \r
                //! updates the joint positions of this mesh\r
-               virtual void animateJoints(bool CalculateAbsolutePositions=true) _IRR_OVERRIDE_;\r
+               void animateJoints(bool CalculateAbsolutePositions=true) override;\r
 \r
                //! render mesh ignoring its transformation. Used with ragdolls. (culling is unaffected)\r
-               virtual void setRenderFromIdentity( bool On ) _IRR_OVERRIDE_;\r
+               void setRenderFromIdentity( bool On ) override;\r
 \r
                //! Creates a clone of this scene node and its children.\r
                /** \param newParent An optional new parent.\r
                \param newManager An optional new scene manager.\r
                \return The newly created clone of this node. */\r
-               virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+               ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
        private:\r
 \r
index df9102a8195d7079010fd4e936c648b2c25c3b30..e25058d8fccbccdd36adfb739bb608465d1789ef 100644 (file)
@@ -27,42 +27,42 @@ public:
                setBool(value);\r
        }\r
 \r
-       virtual s32 getInt() const _IRR_OVERRIDE_\r
+       s32 getInt() const override\r
        {\r
                return BoolValue ? 1 : 0;\r
        }\r
 \r
-       virtual f32 getFloat() const _IRR_OVERRIDE_\r
+       f32 getFloat() const override\r
        {\r
                return BoolValue ? 1.0f : 0.0f;\r
        }\r
 \r
-       virtual bool getBool() const _IRR_OVERRIDE_\r
+       bool getBool() const override\r
        {\r
                return BoolValue;\r
        }\r
 \r
-       virtual void setInt(s32 intValue) _IRR_OVERRIDE_\r
+       void setInt(s32 intValue) override\r
        {\r
                BoolValue = (intValue != 0);\r
        }\r
 \r
-       virtual void setFloat(f32 floatValue) _IRR_OVERRIDE_\r
+       void setFloat(f32 floatValue) override\r
        {\r
                BoolValue = (floatValue != 0);\r
        }\r
 \r
-       virtual void setBool(bool boolValue) _IRR_OVERRIDE_\r
+       void setBool(bool boolValue) override\r
        {\r
                BoolValue = boolValue;\r
        }\r
 \r
-       virtual E_ATTRIBUTE_TYPE getType() const _IRR_OVERRIDE_\r
+       E_ATTRIBUTE_TYPE getType() const override\r
        {\r
                return EAT_BOOL;\r
        }\r
 \r
-       virtual const wchar_t* getTypeString() const _IRR_OVERRIDE_\r
+       const wchar_t* getTypeString() const override\r
        {\r
                return L"bool";\r
        }\r
@@ -81,32 +81,32 @@ public:
                setInt(value);\r
        }\r
 \r
-       virtual s32 getInt() const _IRR_OVERRIDE_\r
+       s32 getInt() const override\r
        {\r
                return Value;\r
        }\r
 \r
-       virtual f32 getFloat() const _IRR_OVERRIDE_\r
+       f32 getFloat() const override\r
        {\r
                return (f32)Value;\r
        }\r
 \r
-       virtual void setInt(s32 intValue) _IRR_OVERRIDE_\r
+       void setInt(s32 intValue) override\r
        {\r
                Value = intValue;\r
        }\r
 \r
-       virtual void setFloat(f32 floatValue) _IRR_OVERRIDE_\r
+       void setFloat(f32 floatValue) override\r
        {\r
                Value = (s32)floatValue;\r
        };\r
 \r
-       virtual E_ATTRIBUTE_TYPE getType() const _IRR_OVERRIDE_\r
+       E_ATTRIBUTE_TYPE getType() const override\r
        {\r
                return EAT_INT;\r
        }\r
 \r
-       virtual const wchar_t* getTypeString() const _IRR_OVERRIDE_\r
+       const wchar_t* getTypeString() const override\r
        {\r
                return L"int";\r
        }\r
@@ -125,32 +125,32 @@ public:
                setFloat(value);\r
        }\r
 \r
-       virtual s32 getInt() const _IRR_OVERRIDE_\r
+       s32 getInt() const override\r
        {\r
                return (s32)Value;\r
        }\r
 \r
-       virtual f32 getFloat() const _IRR_OVERRIDE_\r
+       f32 getFloat() const override\r
        {\r
                return Value;\r
        }\r
 \r
-       virtual void setInt(s32 intValue) _IRR_OVERRIDE_\r
+       void setInt(s32 intValue) override\r
        {\r
                Value = (f32)intValue;\r
        }\r
 \r
-       virtual void setFloat(f32 floatValue) _IRR_OVERRIDE_\r
+       void setFloat(f32 floatValue) override\r
        {\r
                Value = floatValue;\r
        }\r
 \r
-       virtual E_ATTRIBUTE_TYPE getType() const _IRR_OVERRIDE_\r
+       E_ATTRIBUTE_TYPE getType() const override\r
        {\r
                return EAT_FLOAT;\r
        }\r
 \r
-       virtual const wchar_t* getTypeString() const _IRR_OVERRIDE_\r
+       const wchar_t* getTypeString() const override\r
        {\r
                return L"float";\r
        }\r
index 966d31cb1140b0aa4ea31a2d41735d8263de95fa..7156b8eee3a97754dac626627b5e8376596cccc1 100644 (file)
@@ -30,37 +30,37 @@ public:
        ~CAttributes();\r
 \r
        //! Returns amount of attributes in this collection of attributes.\r
-       virtual u32 getAttributeCount() const _IRR_OVERRIDE_;\r
+       u32 getAttributeCount() const override;\r
 \r
        //! Returns attribute name by index.\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual const c8* getAttributeName(s32 index) const _IRR_OVERRIDE_;\r
+       const c8* getAttributeName(s32 index) const override;\r
 \r
        //! Returns the type of an attribute\r
        //! \param attributeName: Name for the attribute\r
-       virtual E_ATTRIBUTE_TYPE getAttributeType(const c8* attributeName) const _IRR_OVERRIDE_;\r
+       E_ATTRIBUTE_TYPE getAttributeType(const c8* attributeName) const override;\r
 \r
        //! Returns attribute type by index.\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual E_ATTRIBUTE_TYPE getAttributeType(s32 index) const _IRR_OVERRIDE_;\r
+       E_ATTRIBUTE_TYPE getAttributeType(s32 index) const override;\r
 \r
        //! Returns the type string of the attribute\r
        //! \param attributeName: String for the attribute type\r
        //! \param defaultNotFound Value returned when attributeName was not found\r
-       virtual const wchar_t* getAttributeTypeString(const c8* attributeName, const wchar_t* defaultNotFound = L"unknown") const _IRR_OVERRIDE_;\r
+       const wchar_t* getAttributeTypeString(const c8* attributeName, const wchar_t* defaultNotFound = L"unknown") const override;\r
 \r
        //! Returns the type string of the attribute by index.\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual const wchar_t* getAttributeTypeString(s32 index, const wchar_t* defaultNotFound = L"unknown") const _IRR_OVERRIDE_;\r
+       const wchar_t* getAttributeTypeString(s32 index, const wchar_t* defaultNotFound = L"unknown") const override;\r
 \r
        //! Returns if an attribute with a name exists\r
-       virtual bool existsAttribute(const c8* attributeName) const _IRR_OVERRIDE_;\r
+       bool existsAttribute(const c8* attributeName) const override;\r
 \r
        //! Returns attribute index from name, -1 if not found\r
-       virtual s32 findAttribute(const c8* attributeName) const _IRR_OVERRIDE_;\r
+       s32 findAttribute(const c8* attributeName) const override;\r
 \r
        //! Removes all attributes\r
-       virtual void clear() _IRR_OVERRIDE_;\r
+       void clear() override;\r
 \r
 \r
        /*\r
@@ -70,23 +70,23 @@ public:
        */\r
 \r
        //! Adds an attribute as integer\r
-       virtual void addInt(const c8* attributeName, s32 value) _IRR_OVERRIDE_;\r
+       void addInt(const c8* attributeName, s32 value) override;\r
 \r
        //! Sets an attribute as integer value\r
-       virtual void setAttribute(const c8* attributeName, s32 value) _IRR_OVERRIDE_;\r
+       void setAttribute(const c8* attributeName, s32 value) override;\r
 \r
        //! Gets an attribute as integer value\r
        //! \param attributeName: Name of the attribute to get.\r
        //! \param defaultNotFound Value returned when attributeName was not found\r
        //! \return Returns value of the attribute previously set by setAttribute()\r
-       virtual s32 getAttributeAsInt(const c8* attributeName, irr::s32 defaultNotFound=0) const _IRR_OVERRIDE_;\r
+       s32 getAttributeAsInt(const c8* attributeName, irr::s32 defaultNotFound=0) const override;\r
 \r
        //! Gets an attribute as integer value\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual s32 getAttributeAsInt(s32 index) const _IRR_OVERRIDE_;\r
+       s32 getAttributeAsInt(s32 index) const override;\r
 \r
        //! Sets an attribute as integer value\r
-       virtual void setAttribute(s32 index, s32 value) _IRR_OVERRIDE_;\r
+       void setAttribute(s32 index, s32 value) override;\r
 \r
        /*\r
 \r
@@ -95,23 +95,23 @@ public:
        */\r
 \r
        //! Adds an attribute as float\r
-       virtual void addFloat(const c8* attributeName, f32 value) _IRR_OVERRIDE_;\r
+       void addFloat(const c8* attributeName, f32 value) override;\r
 \r
        //! Sets a attribute as float value\r
-       virtual void setAttribute(const c8* attributeName, f32 value) _IRR_OVERRIDE_;\r
+       void setAttribute(const c8* attributeName, f32 value) override;\r
 \r
        //! Gets an attribute as float value\r
        //! \param attributeName: Name of the attribute to get.\r
        //! \param defaultNotFound Value returned when attributeName was not found\r
        //! \return Returns value of the attribute previously set by setAttribute()\r
-       virtual f32 getAttributeAsFloat(const c8* attributeName, irr::f32 defaultNotFound=0.f) const _IRR_OVERRIDE_;\r
+       f32 getAttributeAsFloat(const c8* attributeName, irr::f32 defaultNotFound=0.f) const override;\r
 \r
        //! Gets an attribute as float value\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual f32 getAttributeAsFloat(s32 index) const _IRR_OVERRIDE_;\r
+       f32 getAttributeAsFloat(s32 index) const override;\r
 \r
        //! Sets an attribute as float value\r
-       virtual void setAttribute(s32 index, f32 value) _IRR_OVERRIDE_;\r
+       void setAttribute(s32 index, f32 value) override;\r
 \r
 \r
        /*\r
@@ -119,23 +119,23 @@ public:
        */\r
 \r
        //! Adds an attribute as bool\r
-       virtual void addBool(const c8* attributeName, bool value) _IRR_OVERRIDE_;\r
+       void addBool(const c8* attributeName, bool value) override;\r
 \r
        //! Sets an attribute as boolean value\r
-       virtual void setAttribute(const c8* attributeName, bool value) _IRR_OVERRIDE_;\r
+       void setAttribute(const c8* attributeName, bool value) override;\r
 \r
        //! Gets an attribute as boolean value\r
        //! \param attributeName: Name of the attribute to get.\r
        //! \param defaultNotFound Value returned when attributeName was not found\r
        //! \return Returns value of the attribute previously set by setAttribute()\r
-       virtual bool getAttributeAsBool(const c8* attributeName, bool defaultNotFound=false) const _IRR_OVERRIDE_;\r
+       bool getAttributeAsBool(const c8* attributeName, bool defaultNotFound=false) const override;\r
 \r
        //! Gets an attribute as boolean value\r
        //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
-       virtual bool getAttributeAsBool(s32 index) const _IRR_OVERRIDE_;\r
+       bool getAttributeAsBool(s32 index) const override;\r
 \r
        //! Sets an attribute as boolean value\r
-       virtual void setAttribute(s32 index, bool value) _IRR_OVERRIDE_;\r
+       void setAttribute(s32 index, bool value) override;\r
 \r
 protected:\r
 \r
index 12784c4568a722ea71bd4472a046be30c9af6234..765405f7a1f65b2f9d7c6cbc74fd43d50b92200f 100644 (file)
@@ -33,13 +33,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".bsp")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! creates/loads an animated mesh from the file.\r
        //! \return Pointer to the created mesh. Returns 0 if loading failed.\r
        //! If you no longer need the mesh, you should call IAnimatedMesh::drop().\r
        //! See IReferenceCounted::drop() for more information.\r
-       virtual IAnimatedMesh* createMesh(io::IReadFile* file) _IRR_OVERRIDE_;\r
+       IAnimatedMesh* createMesh(io::IReadFile* file) override;\r
 \r
 private:\r
 \r
index 21dfeebaa7bdd8c37c87426e96316771382d0092..4a74f2159e6f0d59b678cbc628860303ca7c63d8 100644 (file)
@@ -27,10 +27,10 @@ public:
        CB3DMeshWriter();\r
 \r
        //! Returns the type of the mesh writer\r
-    virtual EMESH_WRITER_TYPE getType() const _IRR_OVERRIDE_;\r
+    EMESH_WRITER_TYPE getType() const override;\r
 \r
        //! writes a mesh\r
-    virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE) _IRR_OVERRIDE_;\r
+    bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE) override;\r
 \r
 private:\r
     void writeJointChunk(io::IWriteFile* file, ISkinnedMesh* mesh , ISkinnedMesh::SJoint* joint, f32 animationSpeedMultiplier);\r
index 4a32ea785c5f72a67d0b187cd5a06c34ac4587b6..6f13a27f84d5d94881aad35d7bccb30ed902b150 100644 (file)
@@ -28,58 +28,58 @@ public:
        virtual ~CBillboardSceneNode();\r
 \r
        //! pre render event\r
-       virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;\r
+       void OnRegisterSceneNode() override;\r
 \r
        //! render\r
-       virtual void render() _IRR_OVERRIDE_;\r
+       void render() override;\r
 \r
        //! returns the axis aligned bounding box of this node\r
-       virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+       const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
        //! sets the size of the billboard\r
-       virtual void setSize(const core::dimension2d<f32>& size) _IRR_OVERRIDE_;\r
+       void setSize(const core::dimension2d<f32>& size) override;\r
 \r
        //! Sets the widths of the top and bottom edges of the billboard independently.\r
-       virtual void setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWidth) _IRR_OVERRIDE_;\r
+       void setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWidth) override;\r
 \r
        //! gets the size of the billboard\r
-       virtual const core::dimension2d<f32>& getSize() const _IRR_OVERRIDE_;\r
+       const core::dimension2d<f32>& getSize() const override;\r
 \r
        //! Gets the widths of the top and bottom edges of the billboard.\r
-       virtual void getSize(f32& height, f32& bottomEdgeWidth, f32& topEdgeWidth) const _IRR_OVERRIDE_;\r
+       void getSize(f32& height, f32& bottomEdgeWidth, f32& topEdgeWidth) const override;\r
 \r
-       virtual video::SMaterial& getMaterial(u32 i) _IRR_OVERRIDE_;\r
+       video::SMaterial& getMaterial(u32 i) override;\r
 \r
        //! returns amount of materials used by this scene node.\r
-       virtual u32 getMaterialCount() const _IRR_OVERRIDE_;\r
+       u32 getMaterialCount() const override;\r
 \r
        //! Set the color of all vertices of the billboard\r
        //! \param overallColor: the color to set\r
-       virtual void setColor(const video::SColor& overallColor) _IRR_OVERRIDE_;\r
+       void setColor(const video::SColor& overallColor) override;\r
 \r
        //! Set the color of the top and bottom vertices of the billboard\r
        //! \param topColor: the color to set the top vertices\r
        //! \param bottomColor: the color to set the bottom vertices\r
        virtual void setColor(const video::SColor& topColor,\r
-                       const video::SColor& bottomColor) _IRR_OVERRIDE_;\r
+                       const video::SColor& bottomColor) override;\r
 \r
        //! Gets the color of the top and bottom vertices of the billboard\r
        //! \param[out] topColor: stores the color of the top vertices\r
        //! \param[out] bottomColor: stores the color of the bottom vertices\r
        virtual void getColor(video::SColor& topColor,\r
-                       video::SColor& bottomColor) const _IRR_OVERRIDE_;\r
+                       video::SColor& bottomColor) const override;\r
 \r
        //! Get the real boundingbox used by the billboard (which depends on the active camera)\r
-       virtual const core::aabbox3d<f32>& getTransformedBillboardBoundingBox(const irr::scene::ICameraSceneNode* camera) _IRR_OVERRIDE_;\r
+       const core::aabbox3d<f32>& getTransformedBillboardBoundingBox(const irr::scene::ICameraSceneNode* camera) override;\r
 \r
        //! Get the amount of mesh buffers.\r
-       virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_\r
+       u32 getMeshBufferCount() const override\r
        {\r
                return Buffer ? 1 : 0;\r
        }\r
 \r
        //! Get pointer to the mesh buffer.\r
-       virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_\r
+       IMeshBuffer* getMeshBuffer(u32 nr) const override\r
        {\r
                if ( nr == 0 )\r
                        return Buffer;\r
@@ -87,10 +87,10 @@ public:
        }\r
 \r
        //! Returns type of the scene node\r
-       virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_BILLBOARD; }\r
+       ESCENE_NODE_TYPE getType() const override { return ESNT_BILLBOARD; }\r
 \r
        //! Creates a clone of this scene node and its children.\r
-       virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+       ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
 protected:\r
        void updateMesh(const irr::scene::ICameraSceneNode* camera);\r
index 358fefc29c1c7e78ed35c755116cd3e22d7029a9..c23f3381cbd48c5389ba8216db1fb8ce34a9d1ad 100644 (file)
@@ -23,33 +23,33 @@ namespace scene
                        s32 id=-1, u32 boneIndex=0, const c8* boneName=0);\r
 \r
                //! Returns the index of the bone\r
-               virtual u32 getBoneIndex() const _IRR_OVERRIDE_;\r
+               u32 getBoneIndex() const override;\r
 \r
                //! Sets the animation mode of the bone. Returns true if successful.\r
-               virtual bool setAnimationMode(E_BONE_ANIMATION_MODE mode) _IRR_OVERRIDE_;\r
+               bool setAnimationMode(E_BONE_ANIMATION_MODE mode) override;\r
 \r
                //! Gets the current animation mode of the bone\r
-               virtual E_BONE_ANIMATION_MODE getAnimationMode() const _IRR_OVERRIDE_;\r
+               E_BONE_ANIMATION_MODE getAnimationMode() const override;\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                /*\r
                //! Returns the relative transformation of the scene node.\r
-               //virtual core::matrix4 getRelativeTransformation() const _IRR_OVERRIDE_;\r
+               //core::matrix4 getRelativeTransformation() const override;\r
                */\r
 \r
-               virtual void OnAnimate(u32 timeMs) _IRR_OVERRIDE_;\r
+               void OnAnimate(u32 timeMs) override;\r
 \r
-               virtual void updateAbsolutePositionOfAllChildren() _IRR_OVERRIDE_;\r
+               void updateAbsolutePositionOfAllChildren() override;\r
 \r
                //! How the relative transformation of the bone is used\r
-               virtual void setSkinningSpace(E_BONE_SKINNING_SPACE space) _IRR_OVERRIDE_\r
+               void setSkinningSpace(E_BONE_SKINNING_SPACE space) override\r
                {\r
                        SkinningSpace=space;\r
                }\r
 \r
-               virtual E_BONE_SKINNING_SPACE getSkinningSpace() const _IRR_OVERRIDE_\r
+               E_BONE_SKINNING_SPACE getSkinningSpace() const override\r
                {\r
                        return SkinningSpace;\r
                }\r
index 234f615f909070cafe741da58b34fb64dfe99583..d128d5c10c405b5274dbf14784e8fdb3b3e8249d 100644 (file)
@@ -30,117 +30,117 @@ namespace scene
                \param projection The new projection matrix of the camera.\r
                \param isOrthogonal Set this to true if the matrix is an orthogonal one (e.g.\r
                from matrix4::buildProjectionMatrixOrthoLH(). */\r
-               virtual void setProjectionMatrix(const core::matrix4& projection, bool isOrthogonal = false) _IRR_OVERRIDE_;\r
+               void setProjectionMatrix(const core::matrix4& projection, bool isOrthogonal = false) override;\r
 \r
                //! Gets the current projection matrix of the camera\r
                //! \return Returns the current projection matrix of the camera.\r
-               virtual const core::matrix4& getProjectionMatrix() const _IRR_OVERRIDE_;\r
+               const core::matrix4& getProjectionMatrix() const override;\r
 \r
                //! Gets the current view matrix of the camera\r
                //! \return Returns the current view matrix of the camera.\r
-               virtual const core::matrix4& getViewMatrix() const _IRR_OVERRIDE_;\r
+               const core::matrix4& getViewMatrix() const override;\r
 \r
                //! Sets a custom view matrix affector.\r
                /** \param affector: The affector matrix. */\r
-               virtual void setViewMatrixAffector(const core::matrix4& affector) _IRR_OVERRIDE_;\r
+               void setViewMatrixAffector(const core::matrix4& affector) override;\r
 \r
                //! Gets the custom view matrix affector.\r
-               virtual const core::matrix4& getViewMatrixAffector() const _IRR_OVERRIDE_;\r
+               const core::matrix4& getViewMatrixAffector() const override;\r
 \r
                //! It is possible to send mouse and key events to the camera. Most cameras\r
                //! may ignore this input, but camera scene nodes which are created for\r
                //! example with scene::ISceneManager::addMayaCameraSceneNode or\r
                //! scene::ISceneManager::addMeshViewerCameraSceneNode, may want to get this input\r
                //! for changing their position, look at target or whatever.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! Sets the look at target of the camera\r
                /** If the camera's target and rotation are bound ( @see bindTargetAndRotation() )\r
                then calling this will also change the camera's scene node rotation to match the target.\r
                \param pos: Look at target of the camera. */\r
-               virtual void setTarget(const core::vector3df& pos) _IRR_OVERRIDE_;\r
+               void setTarget(const core::vector3df& pos) override;\r
 \r
                //! Sets the rotation of the node.\r
                /** This only modifies the relative rotation of the node.\r
                If the camera's target and rotation are bound ( @see bindTargetAndRotation() )\r
                then calling this will also change the camera's target to match the rotation.\r
                \param rotation New rotation of the node in degrees. */\r
-               virtual void setRotation(const core::vector3df& rotation) _IRR_OVERRIDE_;\r
+               void setRotation(const core::vector3df& rotation) override;\r
 \r
                //! Gets the current look at target of the camera\r
                /** \return The current look at target of the camera */\r
-               virtual const core::vector3df& getTarget() const _IRR_OVERRIDE_;\r
+               const core::vector3df& getTarget() const override;\r
 \r
                //! Sets the up vector of the camera.\r
                //! \param pos: New upvector of the camera.\r
-               virtual void setUpVector(const core::vector3df& pos) _IRR_OVERRIDE_;\r
+               void setUpVector(const core::vector3df& pos) override;\r
 \r
                //! Gets the up vector of the camera.\r
                //! \return Returns the up vector of the camera.\r
-               virtual const core::vector3df& getUpVector() const _IRR_OVERRIDE_;\r
+               const core::vector3df& getUpVector() const override;\r
 \r
                //! Gets distance from the camera to the near plane.\r
                //! \return Value of the near plane of the camera.\r
-               virtual f32 getNearValue() const _IRR_OVERRIDE_;\r
+               f32 getNearValue() const override;\r
 \r
                //! Gets the distance from the camera to the far plane.\r
                //! \return Value of the far plane of the camera.\r
-               virtual f32 getFarValue() const _IRR_OVERRIDE_;\r
+               f32 getFarValue() const override;\r
 \r
                //! Get the aspect ratio of the camera.\r
                //! \return The aspect ratio of the camera.\r
-               virtual f32 getAspectRatio() const _IRR_OVERRIDE_;\r
+               f32 getAspectRatio() const override;\r
 \r
                //! Gets the field of view of the camera.\r
                //! \return Field of view of the camera\r
-               virtual f32 getFOV() const _IRR_OVERRIDE_;\r
+               f32 getFOV() const override;\r
 \r
                //! Sets the value of the near clipping plane. (default: 1.0f)\r
-               virtual void setNearValue(f32 zn) _IRR_OVERRIDE_;\r
+               void setNearValue(f32 zn) override;\r
 \r
                //! Sets the value of the far clipping plane (default: 2000.0f)\r
-               virtual void setFarValue(f32 zf) _IRR_OVERRIDE_;\r
+               void setFarValue(f32 zf) override;\r
 \r
                //! Sets the aspect ratio (default: 4.0f / 3.0f)\r
-               virtual void setAspectRatio(f32 aspect) _IRR_OVERRIDE_;\r
+               void setAspectRatio(f32 aspect) override;\r
 \r
                //! Sets the field of view (Default: PI / 3.5f)\r
-               virtual void setFOV(f32 fovy) _IRR_OVERRIDE_;\r
+               void setFOV(f32 fovy) override;\r
 \r
                //! PreRender event\r
-               virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;\r
+               void OnRegisterSceneNode() override;\r
 \r
                //! Render\r
-               virtual void render() _IRR_OVERRIDE_;\r
+               void render() override;\r
 \r
                //! Update\r
-               virtual void updateMatrices() _IRR_OVERRIDE_;\r
+               void updateMatrices() override;\r
 \r
                //! Returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! Returns the view area.\r
-               virtual const SViewFrustum* getViewFrustum() const _IRR_OVERRIDE_;\r
+               const SViewFrustum* getViewFrustum() const override;\r
 \r
                //! Disables or enables the camera to get key or mouse inputs.\r
                //! If this is set to true, the camera will respond to key inputs\r
                //! otherwise not.\r
-               virtual void setInputReceiverEnabled(bool enabled) _IRR_OVERRIDE_;\r
+               void setInputReceiverEnabled(bool enabled) override;\r
 \r
                //! Returns if the input receiver of the camera is currently enabled.\r
-               virtual bool isInputReceiverEnabled() const _IRR_OVERRIDE_;\r
+               bool isInputReceiverEnabled() const override;\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_CAMERA; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_CAMERA; }\r
 \r
                //! Binds the camera scene node's rotation to its target position and vice versa, or unbinds them.\r
-               virtual void bindTargetAndRotation(bool bound) _IRR_OVERRIDE_;\r
+               void bindTargetAndRotation(bool bound) override;\r
 \r
                //! Queries if the camera scene node's rotation and its target position are bound together.\r
-               virtual bool getTargetAndRotationBinding(void) const _IRR_OVERRIDE_;\r
+               bool getTargetAndRotationBinding(void) const override;\r
 \r
                //! Creates a clone of this scene node and its children.\r
-               virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+               ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
        protected:\r
 \r
index ac95b148b5ed76e38ceb86e8bf6a8c078c5d1137..b9f610b13a5cfeb6f87135d3eadf5c2e4069fa9e 100644 (file)
@@ -20,36 +20,36 @@ namespace scene
                CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! Returns a reference to the current relative transformation matrix.\r
                //! This is the matrix, this scene node uses instead of scale, translation\r
                //! and rotation.\r
-               virtual core::matrix4& getRelativeTransformationMatrix() _IRR_OVERRIDE_;\r
+               core::matrix4& getRelativeTransformationMatrix() override;\r
 \r
                //! Returns the relative transformation of the scene node.\r
-               virtual core::matrix4 getRelativeTransformation() const _IRR_OVERRIDE_;\r
+               core::matrix4 getRelativeTransformation() const override;\r
 \r
                //! does nothing.\r
-               virtual void render() _IRR_OVERRIDE_ {}\r
+               void render() override {}\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_DUMMY_TRANSFORMATION; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_DUMMY_TRANSFORMATION; }\r
 \r
                //! Creates a clone of this scene node and its children.\r
-               virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+               ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
 \r
        private:\r
 \r
                // TODO: We can add least add some warnings to find troubles faster until we have\r
                // fixed bug id 2318691.\r
-               virtual const core::vector3df& getScale() const _IRR_OVERRIDE_;\r
-               virtual void setScale(const core::vector3df& scale) _IRR_OVERRIDE_;\r
-               virtual const core::vector3df& getRotation() const _IRR_OVERRIDE_;\r
-               virtual void setRotation(const core::vector3df& rotation) _IRR_OVERRIDE_;\r
-               virtual const core::vector3df& getPosition() const _IRR_OVERRIDE_;\r
-               virtual void setPosition(const core::vector3df& newpos) _IRR_OVERRIDE_;\r
+               const core::vector3df& getScale() const override;\r
+               void setScale(const core::vector3df& scale) override;\r
+               const core::vector3df& getRotation() const override;\r
+               void setRotation(const core::vector3df& rotation) override;\r
+               const core::vector3df& getPosition() const override;\r
+               void setPosition(const core::vector3df& newpos) override;\r
 \r
                core::matrix4 RelativeTransformationMatrix;\r
                core::aabbox3d<f32> Box;\r
index d256e63dfea14c1e6a9034a98d6c7ad3d866e8ee..2d61bd2cda442b523f1e4d504a58f2772bba7960 100755 (executable)
@@ -32,42 +32,42 @@ namespace video
                // Initialize EGL.\r
                /* This method initialize EGLand create EGL display, anyway surface and context\r
                aren't create. */\r
-               virtual bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) _IRR_OVERRIDE_;\r
+               bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) override;\r
 \r
                // Terminate EGL.\r
                /* Terminate EGL context. This method break both existed surface and context. */\r
-               virtual void terminate() _IRR_OVERRIDE_;\r
+               void terminate() override;\r
 \r
                // Create EGL surface.\r
                /* This method create EGL surface. On some platforms eg. Android, we must\r
                recreate surface on each resume, because WindowID may change, so existed\r
                surface may not be valid. If EGL context already exist, this method\r
                automatically activates it. */\r
-               virtual bool generateSurface() _IRR_OVERRIDE_;\r
+               bool generateSurface() override;\r
 \r
                // Destroy EGL surface.\r
                /* This method destroy EGL. On some platforms eg. Android, we should call\r
                this method on each pause, because after resume this surface may not be valid.\r
                Hovewer this method doesn'r break EGL context. */\r
-               virtual void destroySurface() _IRR_OVERRIDE_;\r
+               void destroySurface() override;\r
 \r
                // Create EGL context.\r
                /* This method create and activate EGL context. */\r
-               virtual bool generateContext() _IRR_OVERRIDE_;\r
+               bool generateContext() override;\r
 \r
                // Destroy EGL context.\r
                /* This method destroy EGL context. */\r
-               virtual void destroyContext() _IRR_OVERRIDE_;\r
+               void destroyContext() override;\r
 \r
-               virtual const SExposedVideoData& getContext() const _IRR_OVERRIDE_;\r
+               const SExposedVideoData& getContext() const override;\r
 \r
-               virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) _IRR_OVERRIDE_;\r
+               bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) override;\r
 \r
                // Get procedure address.\r
-               virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;\r
+               void* getProcAddress(const std::string &procName) override;\r
 \r
                // Swap buffers.\r
-               virtual bool swapBuffers() _IRR_OVERRIDE_;\r
+               bool swapBuffers() override;\r
 \r
        protected:\r
                enum EConfigStyle\r
index 2832595c3211ef42eb97ca837e626a28f16d550b..8a35115c9e551c28541fd44fad7d896dfb043ac4 100644 (file)
@@ -20,19 +20,19 @@ namespace scene
                CEmptySceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! This method is called just before the rendering process of the whole scene.\r
-               virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;\r
+               void OnRegisterSceneNode() override;\r
 \r
                //! does nothing.\r
-               virtual void render() _IRR_OVERRIDE_;\r
+               void render() override;\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_EMPTY; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_EMPTY; }\r
 \r
                //! Creates a clone of this scene node and its children.\r
-               virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+               ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
        private:\r
 \r
index 228f231b9f950b0ea469f403d85a7115637e17c8..dd92d9826f767101439be6de9d05261218a09bf2 100644 (file)
@@ -82,37 +82,37 @@ public:
        \param offset The offset where the file is stored in an archive\r
        \param size The size of the file in bytes.\r
        \param id The ID of the file in the archive which owns it */\r
-       virtual u32 addItem(const io::path& fullPath, u32 offset, u32 size, bool isDirectory, u32 id=0) _IRR_OVERRIDE_;\r
+       u32 addItem(const io::path& fullPath, u32 offset, u32 size, bool isDirectory, u32 id=0) override;\r
 \r
        //! Sorts the file list. You should call this after adding any items to the file list\r
-       virtual void sort() _IRR_OVERRIDE_;\r
+       void sort() override;\r
 \r
        //! Returns the amount of files in the filelist.\r
-       virtual u32 getFileCount() const _IRR_OVERRIDE_;\r
+       u32 getFileCount() const override;\r
 \r
        //! Gets the name of a file in the list, based on an index.\r
-       virtual const io::path& getFileName(u32 index) const _IRR_OVERRIDE_;\r
+       const io::path& getFileName(u32 index) const override;\r
 \r
        //! Gets the full name of a file in the list, path included, based on an index.\r
-       virtual const io::path& getFullFileName(u32 index) const _IRR_OVERRIDE_;\r
+       const io::path& getFullFileName(u32 index) const override;\r
 \r
        //! Returns the ID of a file in the file list, based on an index.\r
-       virtual u32 getID(u32 index) const _IRR_OVERRIDE_;\r
+       u32 getID(u32 index) const override;\r
 \r
        //! Returns true if the file is a directory\r
-       virtual bool isDirectory(u32 index) const _IRR_OVERRIDE_;\r
+       bool isDirectory(u32 index) const override;\r
 \r
        //! Returns the size of a file\r
-       virtual u32 getFileSize(u32 index) const _IRR_OVERRIDE_;\r
+       u32 getFileSize(u32 index) const override;\r
 \r
        //! Returns the offset of a file\r
-       virtual u32 getFileOffset(u32 index) const _IRR_OVERRIDE_;\r
+       u32 getFileOffset(u32 index) const override;\r
 \r
        //! Searches for a file or folder within the list, returns the index\r
-       virtual s32 findFile(const io::path& filename, bool isFolder) const _IRR_OVERRIDE_;\r
+       s32 findFile(const io::path& filename, bool isFolder) const override;\r
 \r
        //! Returns the base path of the file list\r
-       virtual const io::path& getPath() const _IRR_OVERRIDE_;\r
+       const io::path& getPath() const override;\r
 \r
 protected:\r
 \r
index d9b5fbcee0e4ba4bbf1a14600cd1a1a94ce51930..bc04fd82c678dd054aec245de3453a677b8cd579 100644 (file)
@@ -29,101 +29,101 @@ public:
        virtual ~CFileSystem();\r
 \r
        //! opens a file for read access\r
-       virtual IReadFile* createAndOpenFile(const io::path& filename) _IRR_OVERRIDE_;\r
+       IReadFile* createAndOpenFile(const io::path& filename) override;\r
 \r
        //! Creates an IReadFile interface for accessing memory like a file.\r
-       virtual IReadFile* createMemoryReadFile(const void* memory, s32 len, const io::path& fileName, bool deleteMemoryWhenDropped = false) _IRR_OVERRIDE_;\r
+       IReadFile* createMemoryReadFile(const void* memory, s32 len, const io::path& fileName, bool deleteMemoryWhenDropped = false) override;\r
 \r
        //! Creates an IReadFile interface for accessing files inside files\r
-       virtual IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize) _IRR_OVERRIDE_;\r
+       IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize) override;\r
 \r
        //! Creates an IWriteFile interface for accessing memory like a file.\r
-       virtual IWriteFile* createMemoryWriteFile(void* memory, s32 len, const io::path& fileName, bool deleteMemoryWhenDropped=false) _IRR_OVERRIDE_;\r
+       IWriteFile* createMemoryWriteFile(void* memory, s32 len, const io::path& fileName, bool deleteMemoryWhenDropped=false) override;\r
 \r
        //! Opens a file for write access.\r
-       virtual IWriteFile* createAndWriteFile(const io::path& filename, bool append=false) _IRR_OVERRIDE_;\r
+       IWriteFile* createAndWriteFile(const io::path& filename, bool append=false) override;\r
 \r
        //! Adds an archive to the file system.\r
        virtual bool addFileArchive(const io::path& filename,\r
                        bool ignoreCase = true, bool ignorePaths = true,\r
                        E_FILE_ARCHIVE_TYPE archiveType = EFAT_UNKNOWN,\r
                        const core::stringc& password="",\r
-                       IFileArchive** retArchive = 0) _IRR_OVERRIDE_;\r
+                       IFileArchive** retArchive = 0) override;\r
 \r
        //! Adds an archive to the file system.\r
        virtual bool addFileArchive(IReadFile* file, bool ignoreCase=true,\r
                        bool ignorePaths=true,\r
                        E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN,\r
                        const core::stringc& password="",\r
-                       IFileArchive** retArchive = 0) _IRR_OVERRIDE_;\r
+                       IFileArchive** retArchive = 0) override;\r
 \r
        //! Adds an archive to the file system.\r
-       virtual bool addFileArchive(IFileArchive* archive) _IRR_OVERRIDE_;\r
+       bool addFileArchive(IFileArchive* archive) override;\r
 \r
        //! move the hirarchy of the filesystem. moves sourceIndex relative up or down\r
-       virtual bool moveFileArchive(u32 sourceIndex, s32 relative) _IRR_OVERRIDE_;\r
+       bool moveFileArchive(u32 sourceIndex, s32 relative) override;\r
 \r
        //! Adds an external archive loader to the engine.\r
-       virtual void addArchiveLoader(IArchiveLoader* loader) _IRR_OVERRIDE_;\r
+       void addArchiveLoader(IArchiveLoader* loader) override;\r
 \r
        //! Returns the total number of archive loaders added.\r
-       virtual u32 getArchiveLoaderCount() const _IRR_OVERRIDE_;\r
+       u32 getArchiveLoaderCount() const override;\r
 \r
        //! Gets the archive loader by index.\r
-       virtual IArchiveLoader* getArchiveLoader(u32 index) const _IRR_OVERRIDE_;\r
+       IArchiveLoader* getArchiveLoader(u32 index) const override;\r
 \r
        //! gets the file archive count\r
-       virtual u32 getFileArchiveCount() const _IRR_OVERRIDE_;\r
+       u32 getFileArchiveCount() const override;\r
 \r
        //! gets an archive\r
-       virtual IFileArchive* getFileArchive(u32 index) _IRR_OVERRIDE_;\r
+       IFileArchive* getFileArchive(u32 index) override;\r
 \r
        //! removes an archive from the file system.\r
-       virtual bool removeFileArchive(u32 index) _IRR_OVERRIDE_;\r
+       bool removeFileArchive(u32 index) override;\r
 \r
        //! removes an archive from the file system.\r
-       virtual bool removeFileArchive(const io::path& filename) _IRR_OVERRIDE_;\r
+       bool removeFileArchive(const io::path& filename) override;\r
 \r
        //! Removes an archive from the file system.\r
-       virtual bool removeFileArchive(const IFileArchive* archive) _IRR_OVERRIDE_;\r
+       bool removeFileArchive(const IFileArchive* archive) override;\r
 \r
        //! Returns the string of the current working directory\r
-       virtual const io::path& getWorkingDirectory() _IRR_OVERRIDE_;\r
+       const io::path& getWorkingDirectory() override;\r
 \r
        //! Changes the current Working Directory to the string given.\r
        //! The string is operating system dependent. Under Windows it will look\r
        //! like this: "drive:\directory\sudirectory\"\r
-       virtual bool changeWorkingDirectoryTo(const io::path& newDirectory) _IRR_OVERRIDE_;\r
+       bool changeWorkingDirectoryTo(const io::path& newDirectory) override;\r
 \r
        //! Converts a relative path to an absolute (unique) path, resolving symbolic links\r
-       virtual io::path getAbsolutePath(const io::path& filename) const _IRR_OVERRIDE_;\r
+       io::path getAbsolutePath(const io::path& filename) const override;\r
 \r
        //! Returns the directory a file is located in.\r
        /** \param filename: The file to get the directory from */\r
-       virtual io::path getFileDir(const io::path& filename) const _IRR_OVERRIDE_;\r
+       io::path getFileDir(const io::path& filename) const override;\r
 \r
        //! Returns the base part of a filename, i.e. the name without the directory\r
        //! part. If no directory is prefixed, the full name is returned.\r
        /** \param filename: The file to get the basename from */\r
-       virtual io::path getFileBasename(const io::path& filename, bool keepExtension=true) const _IRR_OVERRIDE_;\r
+       io::path getFileBasename(const io::path& filename, bool keepExtension=true) const override;\r
 \r
        //! flatten a path and file name for example: "/you/me/../." becomes "/you"\r
-       virtual io::path& flattenFilename( io::path& directory, const io::path& root = "/" ) const _IRR_OVERRIDE_;\r
+       io::path& flattenFilename( io::path& directory, const io::path& root = "/" ) const override;\r
 \r
        //! Get the relative filename, relative to the given directory\r
-       virtual path getRelativeFilename(const path& filename, const path& directory) const _IRR_OVERRIDE_;\r
+       path getRelativeFilename(const path& filename, const path& directory) const override;\r
 \r
-       virtual EFileSystemType setFileListSystem(EFileSystemType listType) _IRR_OVERRIDE_;\r
+       EFileSystemType setFileListSystem(EFileSystemType listType) override;\r
 \r
        //! Creates a list of files and directories in the current working directory\r
        //! and returns it.\r
-       virtual IFileList* createFileList() _IRR_OVERRIDE_;\r
+       IFileList* createFileList() override;\r
 \r
        //! Creates an empty filelist\r
-       virtual IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) _IRR_OVERRIDE_;\r
+       IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) override;\r
 \r
        //! determines if a file exists and would be able to be opened.\r
-       virtual bool existFile(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool existFile(const io::path& filename) const override;\r
 \r
 private:\r
 \r
index 28d394e8ba8f9860273ed4249f2b9feb2f27effe..85c3c94d3a011a424ee5819f64fcf88f87042103 100644 (file)
@@ -34,34 +34,34 @@ namespace video
         ~CGLXManager();\r
 \r
         // Initialize\r
-        virtual bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) _IRR_OVERRIDE_;\r
+        bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) override;\r
 \r
         // Terminate\r
-        virtual void terminate() _IRR_OVERRIDE_;\r
+        void terminate() override;\r
 \r
         // Create surface.\r
-        virtual bool generateSurface() _IRR_OVERRIDE_;\r
+        bool generateSurface() override;\r
 \r
         // Destroy surface.\r
-        virtual void destroySurface() _IRR_OVERRIDE_;\r
+        void destroySurface() override;\r
 \r
         // Create context.\r
-        virtual bool generateContext() _IRR_OVERRIDE_;\r
+        bool generateContext() override;\r
 \r
         // Destroy context.\r
-        virtual void destroyContext() _IRR_OVERRIDE_;\r
+        void destroyContext() override;\r
 \r
         //! Get current context\r
-        virtual const SExposedVideoData& getContext() const _IRR_OVERRIDE_;\r
+        const SExposedVideoData& getContext() const override;\r
 \r
         //! Change render context, disable old and activate new defined by videoData\r
-        virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) _IRR_OVERRIDE_;\r
+        bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) override;\r
 \r
                // Get procedure address.\r
-               virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;\r
+               void* getProcAddress(const std::string &procName) override;\r
 \r
         // Swap buffers.\r
-        virtual bool swapBuffers() _IRR_OVERRIDE_;\r
+        bool swapBuffers() override;\r
 \r
         XVisualInfo* getVisual() const {return VisualInfo;} // return XVisualInfo\r
 \r
index 4a6d770df758c84f2870d01ab59ab7782aa0cb19..9bd861223f61187cf569198062e0c550afffe1fa 100644 (file)
@@ -30,64 +30,64 @@ namespace gui
                virtual ~CGUIButton();\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! sets another skin independent font. if this is set to zero, the button uses the font of the skin.\r
-               virtual void setOverrideFont(IGUIFont* font=0) _IRR_OVERRIDE_;\r
+               void setOverrideFont(IGUIFont* font=0) override;\r
 \r
                //! Gets the override font (if any)\r
-               virtual IGUIFont* getOverrideFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getOverrideFont() const override;\r
 \r
                //! Get the font which is used right now for drawing\r
-               virtual IGUIFont* getActiveFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getActiveFont() const override;\r
 \r
                //! Sets another color for the button text.\r
-               virtual void setOverrideColor(video::SColor color)  _IRR_OVERRIDE_;\r
+               void setOverrideColor(video::SColor color)  override;\r
 \r
                //! Gets the override color\r
-               virtual video::SColor getOverrideColor(void) const  _IRR_OVERRIDE_;\r
+               video::SColor getOverrideColor(void) const  override;\r
 \r
                //! Gets the currently used text color\r
-               virtual video::SColor getActiveColor() const _IRR_OVERRIDE_;\r
+               video::SColor getActiveColor() const override;\r
 \r
                //! Sets if the button text should use the override color or the color in the gui skin.\r
-               virtual void enableOverrideColor(bool enable)  _IRR_OVERRIDE_;\r
+               void enableOverrideColor(bool enable)  override;\r
 \r
                //! Checks if an override color is enabled\r
-               virtual bool isOverrideColorEnabled(void) const  _IRR_OVERRIDE_;\r
+               bool isOverrideColorEnabled(void) const  override;\r
 \r
                //! Sets an image which should be displayed on the button when it is in the given state.\r
-               virtual void setImage(EGUI_BUTTON_IMAGE_STATE state, video::ITexture* image=0, const core::rect<s32>& sourceRect=core::rect<s32>(0,0,0,0))  _IRR_OVERRIDE_;\r
+               void setImage(EGUI_BUTTON_IMAGE_STATE state, video::ITexture* image=0, const core::rect<s32>& sourceRect=core::rect<s32>(0,0,0,0))  override;\r
 \r
                //! Sets an image which should be displayed on the button when it is in normal state.\r
-               virtual void setImage(video::ITexture* image=0) _IRR_OVERRIDE_\r
+               void setImage(video::ITexture* image=0) override\r
                {\r
                        setImage(EGBIS_IMAGE_UP, image);\r
                }\r
 \r
                //! Sets an image which should be displayed on the button when it is in normal state.\r
-               virtual void setImage(video::ITexture* image, const core::rect<s32>& pos) _IRR_OVERRIDE_\r
+               void setImage(video::ITexture* image, const core::rect<s32>& pos) override\r
                {\r
                        setImage(EGBIS_IMAGE_UP, image, pos);\r
                }\r
 \r
                //! Sets an image which should be displayed on the button when it is in pressed state.\r
-               virtual void setPressedImage(video::ITexture* image=0) _IRR_OVERRIDE_\r
+               void setPressedImage(video::ITexture* image=0) override\r
                {\r
                        setImage(EGBIS_IMAGE_DOWN, image);\r
                }\r
 \r
                //! Sets an image which should be displayed on the button when it is in pressed state.\r
-               virtual void setPressedImage(video::ITexture* image, const core::rect<s32>& pos) _IRR_OVERRIDE_\r
+               void setPressedImage(video::ITexture* image, const core::rect<s32>& pos) override\r
                {\r
                        setImage(EGBIS_IMAGE_DOWN, image, pos);\r
                }\r
 \r
                //! Sets the sprite bank used by the button\r
-               virtual void setSpriteBank(IGUISpriteBank* bank=0) _IRR_OVERRIDE_;\r
+               void setSpriteBank(IGUISpriteBank* bank=0) override;\r
 \r
                //! Sets the animated sprite for a specific button state\r
                /** \param index: Number of the sprite within the sprite bank, use -1 for no sprite\r
@@ -97,60 +97,60 @@ namespace gui
                */\r
                virtual void setSprite(EGUI_BUTTON_STATE state, s32 index,\r
                                video::SColor color=video::SColor(255,255,255,255),\r
-                               bool loop=false, bool scale=false) _IRR_OVERRIDE_;\r
+                               bool loop=false, bool scale=false) override;\r
 \r
                //! Get the sprite-index for the given state or -1 when no sprite is set\r
-               virtual s32 getSpriteIndex(EGUI_BUTTON_STATE state) const _IRR_OVERRIDE_;\r
+               s32 getSpriteIndex(EGUI_BUTTON_STATE state) const override;\r
 \r
                //! Get the sprite color for the given state. Color is only used when a sprite is set.\r
-               virtual video::SColor getSpriteColor(EGUI_BUTTON_STATE state) const _IRR_OVERRIDE_;\r
+               video::SColor getSpriteColor(EGUI_BUTTON_STATE state) const override;\r
 \r
                //! Returns if the sprite in the given state does loop\r
-               virtual bool getSpriteLoop(EGUI_BUTTON_STATE state) const _IRR_OVERRIDE_;\r
+               bool getSpriteLoop(EGUI_BUTTON_STATE state) const override;\r
 \r
                //! Returns if the sprite in the given state is scaled\r
-               virtual bool getSpriteScale(EGUI_BUTTON_STATE state) const _IRR_OVERRIDE_;\r
+               bool getSpriteScale(EGUI_BUTTON_STATE state) const override;\r
 \r
                //! Sets if the button should behave like a push button. Which means it\r
                //! can be in two states: Normal or Pressed. With a click on the button,\r
                //! the user can change the state of the button.\r
-               virtual void setIsPushButton(bool isPushButton=true) _IRR_OVERRIDE_;\r
+               void setIsPushButton(bool isPushButton=true) override;\r
 \r
                //! Checks whether the button is a push button\r
-               virtual bool isPushButton() const _IRR_OVERRIDE_;\r
+               bool isPushButton() const override;\r
 \r
                //! Sets the pressed state of the button if this is a pushbutton\r
-               virtual void setPressed(bool pressed=true) _IRR_OVERRIDE_;\r
+               void setPressed(bool pressed=true) override;\r
 \r
                //! Returns if the button is currently pressed\r
-               virtual bool isPressed() const _IRR_OVERRIDE_;\r
+               bool isPressed() const override;\r
 \r
                //! Sets if the button should use the skin to draw its border\r
-               virtual void setDrawBorder(bool border=true) _IRR_OVERRIDE_;\r
+               void setDrawBorder(bool border=true) override;\r
 \r
                //! Checks if the button face and border are being drawn\r
-               virtual bool isDrawingBorder() const _IRR_OVERRIDE_;\r
+               bool isDrawingBorder() const override;\r
 \r
                //! Sets if the alpha channel should be used for drawing images on the button (default is false)\r
-               virtual void setUseAlphaChannel(bool useAlphaChannel=true) _IRR_OVERRIDE_;\r
+               void setUseAlphaChannel(bool useAlphaChannel=true) override;\r
 \r
                //! Checks if the alpha channel should be used for drawing images on the button\r
-               virtual bool isAlphaChannelUsed() const _IRR_OVERRIDE_;\r
+               bool isAlphaChannelUsed() const override;\r
 \r
                //! Sets if the button should scale the button images to fit\r
-               virtual void setScaleImage(bool scaleImage=true) _IRR_OVERRIDE_;\r
+               void setScaleImage(bool scaleImage=true) override;\r
 \r
                //! Checks whether the button scales the used images\r
-               virtual bool isScalingImage() const _IRR_OVERRIDE_;\r
+               bool isScalingImage() const override;\r
 \r
                //! Get if the shift key was pressed in last EGET_BUTTON_CLICKED event\r
-               virtual bool getClickShiftState() const _IRR_OVERRIDE_\r
+               bool getClickShiftState() const override\r
                {\r
                        return ClickShiftState;\r
                }\r
 \r
                //! Get if the control key was pressed in last EGET_BUTTON_CLICKED event\r
-               virtual bool getClickControlState() const _IRR_OVERRIDE_\r
+               bool getClickControlState() const override\r
                {\r
                        return ClickControlState;\r
                }\r
index 366b7628e0cae04dae62a228868a44ba5195636b..adb46b4197bdfd05a9ac9c94b18fb9e6f9b3ac63 100644 (file)
@@ -23,30 +23,30 @@ namespace gui
                CGUICheckBox(bool checked, IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);\r
 \r
                //! set if box is checked\r
-               virtual void setChecked(bool checked) _IRR_OVERRIDE_;\r
+               void setChecked(bool checked) override;\r
 \r
                //! returns if box is checked\r
-               virtual bool isChecked() const _IRR_OVERRIDE_;\r
+               bool isChecked() const override;\r
 \r
                //! Sets whether to draw the background\r
-               virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBackground(bool draw) override;\r
 \r
                //! Checks if background drawing is enabled\r
                /** \return true if background drawing is enabled, false otherwise */\r
-               virtual bool isDrawBackgroundEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBackgroundEnabled() const override;\r
 \r
                //! Sets whether to draw the border\r
-               virtual void setDrawBorder(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBorder(bool draw) override;\r
 \r
                //! Checks if border drawing is enabled\r
                /** \return true if border drawing is enabled, false otherwise */\r
-               virtual bool isDrawBorderEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBorderEnabled() const override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
        private:\r
 \r
index a3e39b88ce5b083ea04b70c1a6e5395bf2c237b3..dbdae41b191fdd5ee801b73dbbd1f4854ed0ee22 100644 (file)
@@ -30,49 +30,49 @@ namespace gui
                        s32 id, core::rect<s32> rectangle);\r
 \r
                //! Returns amount of items in box\r
-               virtual u32 getItemCount() const _IRR_OVERRIDE_;\r
+               u32 getItemCount() const override;\r
 \r
                //! returns string of an item. the idx may be a value from 0 to itemCount-1\r
-               virtual const wchar_t* getItem(u32 idx) const _IRR_OVERRIDE_;\r
+               const wchar_t* getItem(u32 idx) const override;\r
 \r
                //! Returns item data of an item. the idx may be a value from 0 to itemCount-1\r
-               virtual u32 getItemData(u32 idx) const _IRR_OVERRIDE_;\r
+               u32 getItemData(u32 idx) const override;\r
 \r
                //! Returns index based on item data\r
-               virtual s32 getIndexForItemData( u32 data ) const _IRR_OVERRIDE_;\r
+               s32 getIndexForItemData( u32 data ) const override;\r
 \r
                //! adds an item and returns the index of it\r
-               virtual u32 addItem(const wchar_t* text, u32 data) _IRR_OVERRIDE_;\r
+               u32 addItem(const wchar_t* text, u32 data) override;\r
 \r
                //! Removes an item from the combo box.\r
-               virtual void removeItem(u32 id) _IRR_OVERRIDE_;\r
+               void removeItem(u32 id) override;\r
 \r
                //! deletes all items in the combo box\r
-               virtual void clear() _IRR_OVERRIDE_;\r
+               void clear() override;\r
 \r
                //! returns the text of the currently selected item\r
-               virtual const wchar_t* getText() const _IRR_OVERRIDE_;\r
+               const wchar_t* getText() const override;\r
 \r
                //! returns id of selected item. returns -1 if no item is selected.\r
-               virtual s32 getSelected() const _IRR_OVERRIDE_;\r
+               s32 getSelected() const override;\r
 \r
                //! sets the selected item. Set this to -1 if no item should be selected\r
-               virtual void setSelected(s32 idx) _IRR_OVERRIDE_;\r
+               void setSelected(s32 idx) override;\r
 \r
                //! sets the text alignment of the text part\r
-               virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) _IRR_OVERRIDE_;\r
+               void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) override;\r
 \r
                //! Set the maximal number of rows for the selection listbox\r
-               virtual void setMaxSelectionRows(u32 max) _IRR_OVERRIDE_;\r
+               void setMaxSelectionRows(u32 max) override;\r
 \r
                //! Get the maximal number of rows for the selection listbox\r
-               virtual u32 getMaxSelectionRows() const _IRR_OVERRIDE_;\r
+               u32 getMaxSelectionRows() const override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
        private:\r
 \r
index 60a189da5f50173d661b55be360dba8ab733b375..b0b5070643e22c5be641c51156bcf160573ced8f 100644 (file)
@@ -28,119 +28,119 @@ namespace gui
                virtual ~CGUIEditBox();\r
 \r
                //! Sets another skin independent font.\r
-               virtual void setOverrideFont(IGUIFont* font=0) _IRR_OVERRIDE_;\r
+               void setOverrideFont(IGUIFont* font=0) override;\r
 \r
                //! Gets the override font (if any)\r
                /** \return The override font (may be 0) */\r
-               virtual IGUIFont* getOverrideFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getOverrideFont() const override;\r
 \r
                //! Get the font which is used right now for drawing\r
                /** Currently this is the override font when one is set and the\r
                font of the active skin otherwise */\r
-               virtual IGUIFont* getActiveFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getActiveFont() const override;\r
 \r
                //! Sets another color for the text.\r
-               virtual void setOverrideColor(video::SColor color) _IRR_OVERRIDE_;\r
+               void setOverrideColor(video::SColor color) override;\r
 \r
                //! Gets the override color\r
-               virtual video::SColor getOverrideColor() const _IRR_OVERRIDE_;\r
+               video::SColor getOverrideColor() const override;\r
 \r
                //! Sets if the text should use the override color or the\r
                //! color in the gui skin.\r
-               virtual void enableOverrideColor(bool enable) _IRR_OVERRIDE_;\r
+               void enableOverrideColor(bool enable) override;\r
 \r
                //! Checks if an override color is enabled\r
                /** \return true if the override color is enabled, false otherwise */\r
-               virtual bool isOverrideColorEnabled(void) const _IRR_OVERRIDE_;\r
+               bool isOverrideColorEnabled(void) const override;\r
 \r
                //! Sets whether to draw the background\r
-               virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBackground(bool draw) override;\r
 \r
                //! Checks if background drawing is enabled\r
-               virtual bool isDrawBackgroundEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBackgroundEnabled() const override;\r
 \r
                //! Turns the border on or off\r
-               virtual void setDrawBorder(bool border) _IRR_OVERRIDE_;\r
+               void setDrawBorder(bool border) override;\r
 \r
                //! Checks if border drawing is enabled\r
-               virtual bool isDrawBorderEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBorderEnabled() const override;\r
 \r
                //! Enables or disables word wrap for using the edit box as multiline text editor.\r
-               virtual void setWordWrap(bool enable) _IRR_OVERRIDE_;\r
+               void setWordWrap(bool enable) override;\r
 \r
                //! Checks if word wrap is enabled\r
                //! \return true if word wrap is enabled, false otherwise\r
-               virtual bool isWordWrapEnabled() const _IRR_OVERRIDE_;\r
+               bool isWordWrapEnabled() const override;\r
 \r
                //! Enables or disables newlines.\r
                /** \param enable: If set to true, the EGET_EDITBOX_ENTER event will not be fired,\r
                instead a newline character will be inserted. */\r
-               virtual void setMultiLine(bool enable) _IRR_OVERRIDE_;\r
+               void setMultiLine(bool enable) override;\r
 \r
                //! Checks if multi line editing is enabled\r
                //! \return true if mult-line is enabled, false otherwise\r
-               virtual bool isMultiLineEnabled() const _IRR_OVERRIDE_;\r
+               bool isMultiLineEnabled() const override;\r
 \r
                //! Enables or disables automatic scrolling with cursor position\r
                //! \param enable: If set to true, the text will move around with the cursor position\r
-               virtual void setAutoScroll(bool enable) _IRR_OVERRIDE_;\r
+               void setAutoScroll(bool enable) override;\r
 \r
                //! Checks to see if automatic scrolling is enabled\r
                //! \return true if automatic scrolling is enabled, false if not\r
-               virtual bool isAutoScrollEnabled() const _IRR_OVERRIDE_;\r
+               bool isAutoScrollEnabled() const override;\r
 \r
                //! Gets the size area of the text in the edit box\r
                //! \return Returns the size in pixels of the text\r
-               virtual core::dimension2du getTextDimension() _IRR_OVERRIDE_;\r
+               core::dimension2du getTextDimension() override;\r
 \r
                //! Sets text justification\r
-               virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) _IRR_OVERRIDE_;\r
+               void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! Sets the new caption of this element.\r
-               virtual void setText(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setText(const wchar_t* text) override;\r
 \r
                //! Sets the maximum amount of characters which may be entered in the box.\r
                //! \param max: Maximum amount of characters. If 0, the character amount is\r
                //! infinity.\r
-               virtual void setMax(u32 max) _IRR_OVERRIDE_;\r
+               void setMax(u32 max) override;\r
 \r
                //! Returns maximum amount of characters, previously set by setMax();\r
-               virtual u32 getMax() const _IRR_OVERRIDE_;\r
+               u32 getMax() const override;\r
 \r
                //! Set the character used for the cursor.\r
                /** By default it's "_" */\r
-               virtual void setCursorChar(const wchar_t cursorChar) _IRR_OVERRIDE_;\r
+               void setCursorChar(const wchar_t cursorChar) override;\r
 \r
                //! Get the character used for the cursor.\r
-               virtual wchar_t getCursorChar() const _IRR_OVERRIDE_;\r
+               wchar_t getCursorChar() const override;\r
 \r
                //! Set the blinktime for the cursor. 2x blinktime is one full cycle.\r
                //** \param timeMs Blinktime in milliseconds. When set to 0 the cursor is constantly on without blinking */\r
-               virtual void setCursorBlinkTime(irr::u32 timeMs) _IRR_OVERRIDE_;\r
+               void setCursorBlinkTime(irr::u32 timeMs) override;\r
 \r
                //! Get the cursor blinktime\r
-               virtual irr::u32 getCursorBlinkTime() const _IRR_OVERRIDE_;\r
+               irr::u32 getCursorBlinkTime() const override;\r
 \r
                //! Sets whether the edit box is a password box. Setting this to true will\r
                /** disable MultiLine, WordWrap and the ability to copy with ctrl+c or ctrl+x\r
                \param passwordBox: true to enable password, false to disable\r
                \param passwordChar: the character that is displayed instead of letters */\r
-               virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') _IRR_OVERRIDE_;\r
+               void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') override;\r
 \r
                //! Returns true if the edit box is currently a password box.\r
-               virtual bool isPasswordBox() const _IRR_OVERRIDE_;\r
+               bool isPasswordBox() const override;\r
 \r
                //! Updates the absolute position, splits text if required\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
                //! Returns whether the element takes input from the IME\r
-               virtual bool acceptsIME() _IRR_OVERRIDE_;\r
+               bool acceptsIME() override;\r
 \r
        protected:\r
                //! Breaks the single text line.\r
index 5cf30c8be78c34299b10c6ee5f97ce51f0b5d02e..ab745865b66dfd72250620113bc51c23e35ab1c3 100644 (file)
@@ -31,143 +31,143 @@ public:
        virtual ~CGUIEnvironment();\r
 \r
        //! draws all gui elements\r
-       virtual void drawAll(bool useScreenSize) _IRR_OVERRIDE_;\r
+       void drawAll(bool useScreenSize) override;\r
 \r
        //! returns the current video driver\r
-       virtual video::IVideoDriver* getVideoDriver() const _IRR_OVERRIDE_;\r
+       video::IVideoDriver* getVideoDriver() const override;\r
 \r
        //! returns pointer to the filesystem\r
-       virtual io::IFileSystem* getFileSystem() const _IRR_OVERRIDE_;\r
+       io::IFileSystem* getFileSystem() const override;\r
 \r
        //! returns a pointer to the OS operator\r
-       virtual IOSOperator* getOSOperator() const _IRR_OVERRIDE_;\r
+       IOSOperator* getOSOperator() const override;\r
 \r
        //! posts an input event to the environment\r
-       virtual bool postEventFromUser(const SEvent& event) _IRR_OVERRIDE_;\r
+       bool postEventFromUser(const SEvent& event) override;\r
 \r
        //! This sets a new event receiver for gui events. Usually you do not have to\r
        //! use this method, it is used by the internal engine.\r
-       virtual void setUserEventReceiver(IEventReceiver* evr) _IRR_OVERRIDE_;\r
+       void setUserEventReceiver(IEventReceiver* evr) override;\r
 \r
        //! removes all elements from the environment\r
-       virtual void clear() _IRR_OVERRIDE_;\r
+       void clear() override;\r
 \r
        //! called if an event happened.\r
-       virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+       bool OnEvent(const SEvent& event) override;\r
 \r
        //! returns the current gui skin\r
-       virtual IGUISkin* getSkin() const _IRR_OVERRIDE_;\r
+       IGUISkin* getSkin() const override;\r
 \r
        //! Sets a new GUI Skin\r
-       virtual void setSkin(IGUISkin* skin) _IRR_OVERRIDE_;\r
+       void setSkin(IGUISkin* skin) override;\r
 \r
        //! Creates a new GUI Skin based on a template.\r
        /** \return Returns a pointer to the created skin.\r
        If you no longer need the skin, you should call IGUISkin::drop().\r
        See IReferenceCounted::drop() for more information. */\r
-       virtual IGUISkin* createSkin(EGUI_SKIN_TYPE type) _IRR_OVERRIDE_;\r
+       IGUISkin* createSkin(EGUI_SKIN_TYPE type) override;\r
 \r
        //! Creates the image list from the given texture.\r
        virtual IGUIImageList* createImageList(video::ITexture* texture,\r
-                                       core::dimension2d<s32> imageSize, bool useAlphaChannel) _IRR_OVERRIDE_;\r
+                                       core::dimension2d<s32> imageSize, bool useAlphaChannel) override;\r
 \r
        //! returns the font\r
-       virtual IGUIFont* getFont(const io::path& filename) _IRR_OVERRIDE_;\r
+       IGUIFont* getFont(const io::path& filename) override;\r
 \r
        //! add an externally loaded font\r
-       virtual IGUIFont* addFont(const io::path& name, IGUIFont* font) _IRR_OVERRIDE_;\r
+       IGUIFont* addFont(const io::path& name, IGUIFont* font) override;\r
 \r
        //! remove loaded font\r
-       virtual void removeFont(IGUIFont* font) _IRR_OVERRIDE_;\r
+       void removeFont(IGUIFont* font) override;\r
 \r
        //! returns default font\r
-       virtual IGUIFont* getBuiltInFont() const _IRR_OVERRIDE_;\r
+       IGUIFont* getBuiltInFont() const override;\r
 \r
        //! returns the sprite bank\r
-       virtual IGUISpriteBank* getSpriteBank(const io::path& filename) _IRR_OVERRIDE_;\r
+       IGUISpriteBank* getSpriteBank(const io::path& filename) override;\r
 \r
        //! returns the sprite bank\r
-       virtual IGUISpriteBank* addEmptySpriteBank(const io::path& name) _IRR_OVERRIDE_;\r
+       IGUISpriteBank* addEmptySpriteBank(const io::path& name) override;\r
 \r
        //! adds an button. The returned pointer must not be dropped.\r
-       virtual IGUIButton* addButton(const core::rect<s32>& rectangle, IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0,const wchar_t* tooltiptext = 0) _IRR_OVERRIDE_;\r
+       IGUIButton* addButton(const core::rect<s32>& rectangle, IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0,const wchar_t* tooltiptext = 0) override;\r
 \r
        //! adds a scrollbar. The returned pointer must not be dropped.\r
        virtual IGUIScrollBar* addScrollBar(bool horizontal, const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1) override;\r
 \r
        //! Adds an image element.\r
        virtual IGUIImage* addImage(video::ITexture* image, core::position2d<s32> pos,\r
-               bool useAlphaChannel=true, IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0) _IRR_OVERRIDE_;\r
+               bool useAlphaChannel=true, IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0) override;\r
 \r
        //! adds an image. The returned pointer must not be dropped.\r
        virtual IGUIImage* addImage(const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0, bool useAlphaChannel=true) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0, bool useAlphaChannel=true) override;\r
 \r
        //! adds a checkbox\r
        virtual IGUICheckBox* addCheckBox(bool checked, const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0) override;\r
 \r
        //! adds a list box\r
        virtual IGUIListBox* addListBox(const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1, bool drawBackground=false) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1, bool drawBackground=false) override;\r
 \r
        //! Adds a file open dialog.\r
        virtual IGUIFileOpenDialog* addFileOpenDialog(const wchar_t* title = 0,\r
                        bool modal=true, IGUIElement* parent=0, s32 id=-1,\r
-                       bool restoreCWD=false, io::path::char_type* startDir=0) _IRR_OVERRIDE_;\r
+                       bool restoreCWD=false, io::path::char_type* startDir=0) override;\r
 \r
        //! adds a static text. The returned pointer must not be dropped.\r
        virtual IGUIStaticText* addStaticText(const wchar_t* text, const core::rect<s32>& rectangle,\r
-               bool border=false, bool wordWrap=true, IGUIElement* parent=0, s32 id=-1, bool drawBackground = false) _IRR_OVERRIDE_;\r
+               bool border=false, bool wordWrap=true, IGUIElement* parent=0, s32 id=-1, bool drawBackground = false) override;\r
 \r
        //! Adds an edit box. The returned pointer must not be dropped.\r
        virtual IGUIEditBox* addEditBox(const wchar_t* text, const core::rect<s32>& rectangle,\r
-               bool border=false, IGUIElement* parent=0, s32 id=-1) _IRR_OVERRIDE_;\r
+               bool border=false, IGUIElement* parent=0, s32 id=-1) override;\r
 \r
        //! Adds a tab control to the environment.\r
        virtual IGUITabControl* addTabControl(const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, bool fillbackground=false, bool border=true, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, bool fillbackground=false, bool border=true, s32 id=-1) override;\r
 \r
        //! Adds tab to the environment.\r
        virtual IGUITab* addTab(const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1) override;\r
 \r
        //! Adds a combo box to the environment.\r
        virtual IGUIComboBox* addComboBox(const core::rect<s32>& rectangle,\r
-               IGUIElement* parent=0, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUIElement* parent=0, s32 id=-1) override;\r
 \r
        //! sets the focus to an element\r
-       virtual bool setFocus(IGUIElement* element) _IRR_OVERRIDE_;\r
+       bool setFocus(IGUIElement* element) override;\r
 \r
        //! removes the focus from an element\r
-       virtual bool removeFocus(IGUIElement* element) _IRR_OVERRIDE_;\r
+       bool removeFocus(IGUIElement* element) override;\r
 \r
        //! Returns if the element has focus\r
-       virtual bool hasFocus(const IGUIElement* element, bool checkSubElements=false) const _IRR_OVERRIDE_;\r
+       bool hasFocus(const IGUIElement* element, bool checkSubElements=false) const override;\r
 \r
        //! Returns the element with the focus\r
-       virtual IGUIElement* getFocus() const _IRR_OVERRIDE_;\r
+       IGUIElement* getFocus() const override;\r
 \r
        //! Returns the element last known to be under the mouse\r
-       virtual IGUIElement* getHovered() const _IRR_OVERRIDE_;\r
+       IGUIElement* getHovered() const override;\r
 \r
        //! Returns the root gui element.\r
-       virtual IGUIElement* getRootGUIElement() _IRR_OVERRIDE_;\r
+       IGUIElement* getRootGUIElement() override;\r
 \r
-       virtual void OnPostRender( u32 time ) _IRR_OVERRIDE_;\r
+       void OnPostRender( u32 time ) override;\r
 \r
        //! Find the next element which would be selected when pressing the tab-key\r
-       virtual IGUIElement* getNextElement(bool reverse=false, bool group=false) _IRR_OVERRIDE_;\r
+       IGUIElement* getNextElement(bool reverse=false, bool group=false) override;\r
 \r
        //! Set the way the gui will handle focus changes\r
-       virtual void setFocusBehavior(u32 flags) _IRR_OVERRIDE_;\r
+       void setFocusBehavior(u32 flags) override;\r
 \r
        //! Get the way the gui does handle focus changes\r
-       virtual u32 getFocusBehavior() const _IRR_OVERRIDE_;\r
+       u32 getFocusBehavior() const override;\r
 \r
        //! Adds a IGUIElement to deletion queue.\r
-       virtual void addToDeletionQueue(IGUIElement* element) _IRR_OVERRIDE_;\r
+       void addToDeletionQueue(IGUIElement* element) override;\r
 \r
 private:\r
 \r
index 9af576df2b73bb97a7528106395b5638808b5642..55b9ffa7ed4bf2aa9953faaed5caccbf10245e37 100644 (file)
@@ -32,22 +32,22 @@ namespace gui
                virtual ~CGUIFileOpenDialog();\r
 \r
                //! returns the filename of the selected file. Returns NULL, if no file was selected.\r
-               virtual const wchar_t* getFileName() const _IRR_OVERRIDE_;\r
+               const wchar_t* getFileName() const override;\r
 \r
                //! Returns the filename of the selected file. Is empty if no file was selected.\r
-               virtual const io::path& getFileNameP() const _IRR_OVERRIDE_;\r
+               const io::path& getFileNameP() const override;\r
 \r
                //! Returns the directory of the selected file. Returns NULL, if no directory was selected.\r
-               virtual const io::path& getDirectoryName() const _IRR_OVERRIDE_;\r
+               const io::path& getDirectoryName() const override;\r
 \r
                //! Returns the directory of the selected file converted to wide characters. Returns NULL if no directory was selected.\r
-               virtual const wchar_t* getDirectoryNameW() const _IRR_OVERRIDE_;\r
+               const wchar_t* getDirectoryNameW() const override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
        protected:\r
 \r
index a81f05f42d5d9394bd221546d55379aef60383eb..4cf93b8971590f9b479d49f5e5dff0742056e427 100644 (file)
@@ -47,32 +47,32 @@ public:
        //! draws an text and clips it to the specified rectangle if wanted\r
        virtual void draw(const core::stringw& text, const core::rect<s32>& position,\r
                        video::SColor color, bool hcenter=false,\r
-                       bool vcenter=false, const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                       bool vcenter=false, const core::rect<s32>* clip=0) override;\r
 \r
        //! returns the dimension of a text\r
-       virtual core::dimension2d<u32> getDimension(const wchar_t* text) const _IRR_OVERRIDE_;\r
+       core::dimension2d<u32> getDimension(const wchar_t* text) const override;\r
 \r
        //! Calculates the index of the character in the text which is on a specific position.\r
-       virtual s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const _IRR_OVERRIDE_;\r
+       s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const override;\r
 \r
        //! Returns the type of this font\r
-       virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_ { return EGFT_BITMAP; }\r
+       EGUI_FONT_TYPE getType() const override { return EGFT_BITMAP; }\r
 \r
        //! set an Pixel Offset on Drawing ( scale position on width )\r
-       virtual void setKerningWidth (s32 kerning) _IRR_OVERRIDE_;\r
-       virtual void setKerningHeight (s32 kerning) _IRR_OVERRIDE_;\r
+       void setKerningWidth (s32 kerning) override;\r
+       void setKerningHeight (s32 kerning) override;\r
 \r
        //! set an Pixel Offset on Drawing ( scale position on width )\r
-       virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const _IRR_OVERRIDE_;\r
-       virtual s32 getKerningHeight() const _IRR_OVERRIDE_;\r
+       s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const override;\r
+       s32 getKerningHeight() const override;\r
 \r
        //! gets the sprite bank\r
-       virtual IGUISpriteBank* getSpriteBank() const _IRR_OVERRIDE_;\r
+       IGUISpriteBank* getSpriteBank() const override;\r
 \r
        //! returns the sprite number from a given character\r
-       virtual u32 getSpriteNoFromChar(const wchar_t *c) const _IRR_OVERRIDE_;\r
+       u32 getSpriteNoFromChar(const wchar_t *c) const override;\r
 \r
-       virtual void setInvisibleCharacters( const wchar_t *s ) _IRR_OVERRIDE_;\r
+       void setInvisibleCharacters( const wchar_t *s ) override;\r
 \r
 private:\r
 \r
index 7b08b459977a63b5fedff996f3d4239ec05101ba..581fe1b5f685d7437ba7d1cf7eb844663c6b8333 100644 (file)
@@ -26,52 +26,52 @@ namespace gui
                virtual ~CGUIImage();\r
 \r
                //! sets an image\r
-               virtual void setImage(video::ITexture* image) _IRR_OVERRIDE_;\r
+               void setImage(video::ITexture* image) override;\r
 \r
                //! Gets the image texture\r
-               virtual video::ITexture* getImage() const _IRR_OVERRIDE_;\r
+               video::ITexture* getImage() const override;\r
 \r
                //! sets the color of the image\r
-               virtual void setColor(video::SColor color) _IRR_OVERRIDE_;\r
+               void setColor(video::SColor color) override;\r
 \r
                //! sets if the image should scale to fit the element\r
-               virtual void setScaleImage(bool scale) _IRR_OVERRIDE_;\r
+               void setScaleImage(bool scale) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! sets if the image should use its alpha channel to draw itself\r
-               virtual void setUseAlphaChannel(bool use) _IRR_OVERRIDE_;\r
+               void setUseAlphaChannel(bool use) override;\r
 \r
                //! Gets the color of the image\r
-               virtual video::SColor getColor() const _IRR_OVERRIDE_;\r
+               video::SColor getColor() const override;\r
 \r
                //! Returns true if the image is scaled to fit, false if not\r
-               virtual bool isImageScaled() const _IRR_OVERRIDE_;\r
+               bool isImageScaled() const override;\r
 \r
                //! Returns true if the image is using the alpha channel, false if not\r
-               virtual bool isAlphaChannelUsed() const _IRR_OVERRIDE_;\r
+               bool isAlphaChannelUsed() const override;\r
 \r
                //! Sets the source rectangle of the image. By default the full image is used.\r
-               virtual void setSourceRect(const core::rect<s32>& sourceRect) _IRR_OVERRIDE_;\r
+               void setSourceRect(const core::rect<s32>& sourceRect) override;\r
 \r
                //! Returns the customized source rectangle of the image to be used.\r
-               virtual core::rect<s32> getSourceRect() const _IRR_OVERRIDE_;\r
+               core::rect<s32> getSourceRect() const override;\r
 \r
                //! Restrict drawing-area.\r
-               virtual void setDrawBounds(const core::rect<f32>& drawBoundUVs) _IRR_OVERRIDE_;\r
+               void setDrawBounds(const core::rect<f32>& drawBoundUVs) override;\r
 \r
                //! Get drawing-area restrictions.\r
-               virtual core::rect<f32> getDrawBounds() const _IRR_OVERRIDE_;\r
+               core::rect<f32> getDrawBounds() const override;\r
 \r
                //! Sets whether to draw a background color (EGDC_3D_DARK_SHADOW) when no texture is set\r
-               virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_\r
+               void setDrawBackground(bool draw) override\r
                {\r
                        DrawBackground = draw;\r
                }\r
 \r
                //! Checks if a background is drawn when no texture is set\r
-               virtual bool isDrawBackgroundEnabled() const  _IRR_OVERRIDE_\r
+               bool isDrawBackgroundEnabled() const  override\r
                {\r
                        return DrawBackground;\r
                }\r
index 5ca4c992de3618334b61225add5d34e172e87f5d..128edba2ab0d84b5240e9df64c85b251e729acc3 100644 (file)
@@ -38,16 +38,16 @@ public:
        //! \param clip: Optional pointer to a rectangle against which the text will be clipped.\r
        //! If the pointer is null, no clipping will be done.\r
        virtual void draw( s32 index, const core::position2d<s32>& destPos,\r
-               const core::rect<s32>* clip = 0 ) _IRR_OVERRIDE_;\r
+               const core::rect<s32>* clip = 0 ) override;\r
 \r
        //! Returns the count of Images in the list.\r
        //! \return Returns the count of Images in the list.\r
-       virtual s32 getImageCount() const _IRR_OVERRIDE_\r
+       s32 getImageCount() const override\r
        { return ImageCount; }\r
 \r
        //! Returns the size of the images in the list.\r
        //! \return Returns the size of the images in the list.\r
-       virtual core::dimension2d<s32> getImageSize() const _IRR_OVERRIDE_\r
+       core::dimension2d<s32> getImageSize() const override\r
        { return ImageSize; }\r
 \r
 private:\r
index 471e289eccc3529b5f5f5400cb27b4ca5825d005..8e1566d6c6fd357e87df96a48f4c5ed4a84b8587 100644 (file)
@@ -31,102 +31,102 @@ namespace gui
                virtual ~CGUIListBox();\r
 \r
                //! returns amount of list items\r
-               virtual u32 getItemCount() const _IRR_OVERRIDE_;\r
+               u32 getItemCount() const override;\r
 \r
                //! returns string of a list item. the id may be a value from 0 to itemCount-1\r
-               virtual const wchar_t* getListItem(u32 id) const _IRR_OVERRIDE_;\r
+               const wchar_t* getListItem(u32 id) const override;\r
 \r
                //! adds an list item, returns id of item\r
-               virtual u32 addItem(const wchar_t* text) _IRR_OVERRIDE_;\r
+               u32 addItem(const wchar_t* text) override;\r
 \r
                //! clears the list\r
-               virtual void clear() _IRR_OVERRIDE_;\r
+               void clear() override;\r
 \r
                //! returns id of selected item. returns -1 if no item is selected.\r
-               virtual s32 getSelected() const _IRR_OVERRIDE_;\r
+               s32 getSelected() const override;\r
 \r
                //! sets the selected item. Set this to -1 if no item should be selected\r
-               virtual void setSelected(s32 id) _IRR_OVERRIDE_;\r
+               void setSelected(s32 id) override;\r
 \r
                //! sets the selected item. Set this to -1 if no item should be selected\r
-               virtual void setSelected(const wchar_t *item) _IRR_OVERRIDE_;\r
+               void setSelected(const wchar_t *item) override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! adds an list item with an icon\r
                //! \param text Text of list entry\r
                //! \param icon Sprite index of the Icon within the current sprite bank. Set it to -1 if you want no icon\r
                //! \return\r
                //! returns the id of the new created item\r
-               virtual u32 addItem(const wchar_t* text, s32 icon) _IRR_OVERRIDE_;\r
+               u32 addItem(const wchar_t* text, s32 icon) override;\r
 \r
                //! Returns the icon of an item\r
-               virtual s32 getIcon(u32 id) const _IRR_OVERRIDE_;\r
+               s32 getIcon(u32 id) const override;\r
 \r
                //! removes an item from the list\r
-               virtual void removeItem(u32 id) _IRR_OVERRIDE_;\r
+               void removeItem(u32 id) override;\r
 \r
                //! get the the id of the item at the given absolute coordinates\r
-               virtual s32 getItemAt(s32 xpos, s32 ypos) const _IRR_OVERRIDE_;\r
+               s32 getItemAt(s32 xpos, s32 ypos) const override;\r
 \r
                //! Sets the sprite bank which should be used to draw list icons. This font is set to the sprite bank of\r
                //! the built-in-font by default. A sprite can be displayed in front of every list item.\r
                //! An icon is an index within the icon sprite bank. Several default icons are available in the\r
                //! skin through getIcon\r
-               virtual void setSpriteBank(IGUISpriteBank* bank) _IRR_OVERRIDE_;\r
+               void setSpriteBank(IGUISpriteBank* bank) override;\r
 \r
                //! set whether the listbox should scroll to newly selected items\r
-               virtual void setAutoScrollEnabled(bool scroll) _IRR_OVERRIDE_;\r
+               void setAutoScrollEnabled(bool scroll) override;\r
 \r
                //! returns true if automatic scrolling is enabled, false if not.\r
-               virtual bool isAutoScrollEnabled() const _IRR_OVERRIDE_;\r
+               bool isAutoScrollEnabled() const override;\r
 \r
                //! Update the position and size of the listbox, and update the scrollbar\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
                //! set all item colors at given index to color\r
-               virtual void setItemOverrideColor(u32 index, video::SColor color) _IRR_OVERRIDE_;\r
+               void setItemOverrideColor(u32 index, video::SColor color) override;\r
 \r
                //! set all item colors of specified type at given index to color\r
-               virtual void setItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType, video::SColor color) _IRR_OVERRIDE_;\r
+               void setItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType, video::SColor color) override;\r
 \r
                //! clear all item colors at index\r
-               virtual void clearItemOverrideColor(u32 index) _IRR_OVERRIDE_;\r
+               void clearItemOverrideColor(u32 index) override;\r
 \r
                //! clear item color at index for given colortype\r
-               virtual void clearItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) _IRR_OVERRIDE_;\r
+               void clearItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) override;\r
 \r
                //! has the item at index its color overwritten?\r
-               virtual bool hasItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const _IRR_OVERRIDE_;\r
+               bool hasItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const override;\r
 \r
                //! return the overwrite color at given item index.\r
-               virtual video::SColor getItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const _IRR_OVERRIDE_;\r
+               video::SColor getItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const override;\r
 \r
                //! return the default color which is used for the given colorType\r
-               virtual video::SColor getItemDefaultColor(EGUI_LISTBOX_COLOR colorType) const _IRR_OVERRIDE_;\r
+               video::SColor getItemDefaultColor(EGUI_LISTBOX_COLOR colorType) const override;\r
 \r
                //! set the item at the given index\r
-               virtual void setItem(u32 index, const wchar_t* text, s32 icon) _IRR_OVERRIDE_;\r
+               void setItem(u32 index, const wchar_t* text, s32 icon) override;\r
 \r
                //! Insert the item at the given index\r
                //! Return the index on success or -1 on failure.\r
-               virtual s32 insertItem(u32 index, const wchar_t* text, s32 icon) _IRR_OVERRIDE_;\r
+               s32 insertItem(u32 index, const wchar_t* text, s32 icon) override;\r
 \r
                //! Swap the items at the given indices\r
-               virtual void swapItems(u32 index1, u32 index2) _IRR_OVERRIDE_;\r
+               void swapItems(u32 index1, u32 index2) override;\r
 \r
                //! set global itemHeight\r
-               virtual void setItemHeight( s32 height ) _IRR_OVERRIDE_;\r
+               void setItemHeight( s32 height ) override;\r
 \r
                //! Sets whether to draw the background\r
-               virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBackground(bool draw) override;\r
 \r
                //! Access the vertical scrollbar\r
-               virtual IGUIScrollBar* getVerticalScrollBar() const _IRR_OVERRIDE_;\r
+               IGUIScrollBar* getVerticalScrollBar() const override;\r
 \r
        private:\r
 \r
index 198518eabe1c2956e3b070dcc24a0589e795dce5..170a2da0b0829c60727d9ee4f70d4f6692613396 100644 (file)
@@ -29,46 +29,46 @@ namespace gui
                virtual ~CGUIScrollBar();\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
-               virtual void OnPostRender(u32 timeMs) _IRR_OVERRIDE_;\r
+               void OnPostRender(u32 timeMs) override;\r
 \r
 \r
                //! gets the maximum value of the scrollbar.\r
-               virtual s32 getMax() const _IRR_OVERRIDE_;\r
+               s32 getMax() const override;\r
 \r
                //! sets the maximum value of the scrollbar.\r
-               virtual void setMax(s32 max) _IRR_OVERRIDE_;\r
+               void setMax(s32 max) override;\r
 \r
                //! gets the minimum value of the scrollbar.\r
-               virtual s32 getMin() const _IRR_OVERRIDE_;\r
+               s32 getMin() const override;\r
 \r
                //! sets the minimum value of the scrollbar.\r
-               virtual void setMin(s32 min) _IRR_OVERRIDE_;\r
+               void setMin(s32 min) override;\r
 \r
                //! gets the small step value\r
-               virtual s32 getSmallStep() const _IRR_OVERRIDE_;\r
+               s32 getSmallStep() const override;\r
 \r
                //! sets the small step value\r
-               virtual void setSmallStep(s32 step) _IRR_OVERRIDE_;\r
+               void setSmallStep(s32 step) override;\r
 \r
                //! gets the large step value\r
-               virtual s32 getLargeStep() const _IRR_OVERRIDE_;\r
+               s32 getLargeStep() const override;\r
 \r
                //! sets the large step value\r
-               virtual void setLargeStep(s32 step) _IRR_OVERRIDE_;\r
+               void setLargeStep(s32 step) override;\r
 \r
                //! gets the current position of the scrollbar\r
-               virtual s32 getPos() const _IRR_OVERRIDE_;\r
+               s32 getPos() const override;\r
 \r
                //! sets the position of the scrollbar\r
-               virtual void setPos(s32 pos) _IRR_OVERRIDE_;\r
+               void setPos(s32 pos) override;\r
 \r
                //! updates the rectangle\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
        private:\r
 \r
index 888c6dc86f0b1292bc8798fdb04df07aad35d348..11cfb26be0a5c044d69224229684828eac3bccb1 100644 (file)
@@ -30,49 +30,49 @@ namespace gui
                virtual ~CGUISkin();\r
 \r
                //! returns default color\r
-               virtual video::SColor getColor(EGUI_DEFAULT_COLOR color) const _IRR_OVERRIDE_;\r
+               video::SColor getColor(EGUI_DEFAULT_COLOR color) const override;\r
 \r
                //! sets a default color\r
-               virtual void setColor(EGUI_DEFAULT_COLOR which, video::SColor newColor) _IRR_OVERRIDE_;\r
+               void setColor(EGUI_DEFAULT_COLOR which, video::SColor newColor) override;\r
 \r
                //! returns size for the given size type\r
-               virtual s32 getSize(EGUI_DEFAULT_SIZE size) const _IRR_OVERRIDE_;\r
+               s32 getSize(EGUI_DEFAULT_SIZE size) const override;\r
 \r
                //! sets a default size\r
-               virtual void setSize(EGUI_DEFAULT_SIZE which, s32 size) _IRR_OVERRIDE_;\r
+               void setSize(EGUI_DEFAULT_SIZE which, s32 size) override;\r
 \r
                //! returns the default font\r
-               virtual IGUIFont* getFont(EGUI_DEFAULT_FONT which=EGDF_DEFAULT) const _IRR_OVERRIDE_;\r
+               IGUIFont* getFont(EGUI_DEFAULT_FONT which=EGDF_DEFAULT) const override;\r
 \r
                //! sets a default font\r
-               virtual void setFont(IGUIFont* font, EGUI_DEFAULT_FONT which=EGDF_DEFAULT) _IRR_OVERRIDE_;\r
+               void setFont(IGUIFont* font, EGUI_DEFAULT_FONT which=EGDF_DEFAULT) override;\r
 \r
                //! sets the sprite bank used for drawing icons\r
-               virtual void setSpriteBank(IGUISpriteBank* bank) _IRR_OVERRIDE_;\r
+               void setSpriteBank(IGUISpriteBank* bank) override;\r
 \r
                //! gets the sprite bank used for drawing icons\r
-               virtual IGUISpriteBank* getSpriteBank() const _IRR_OVERRIDE_;\r
+               IGUISpriteBank* getSpriteBank() const override;\r
 \r
                //! Returns a default icon\r
                /** Returns the sprite index within the sprite bank */\r
-               virtual u32 getIcon(EGUI_DEFAULT_ICON icon) const _IRR_OVERRIDE_;\r
+               u32 getIcon(EGUI_DEFAULT_ICON icon) const override;\r
 \r
                //! Sets a default icon\r
                /** Sets the sprite index used for drawing icons like arrows,\r
                close buttons and ticks in checkboxes\r
                \param icon: Enum specifying which icon to change\r
                \param index: The sprite index used to draw this icon */\r
-               virtual void setIcon(EGUI_DEFAULT_ICON icon, u32 index) _IRR_OVERRIDE_;\r
+               void setIcon(EGUI_DEFAULT_ICON icon, u32 index) override;\r
 \r
                //! Returns a default text.\r
                /** For example for Message box button captions:\r
                "OK", "Cancel", "Yes", "No" and so on. */\r
-               virtual const wchar_t* getDefaultText(EGUI_DEFAULT_TEXT text) const _IRR_OVERRIDE_;\r
+               const wchar_t* getDefaultText(EGUI_DEFAULT_TEXT text) const override;\r
 \r
                //! Sets a default text.\r
                /** For example for Message box button captions:\r
                "OK", "Cancel", "Yes", "No" and so on. */\r
-               virtual void setDefaultText(EGUI_DEFAULT_TEXT which, const wchar_t* newText) _IRR_OVERRIDE_;\r
+               void setDefaultText(EGUI_DEFAULT_TEXT which, const wchar_t* newText) override;\r
 \r
                //! draws a standard 3d button pane\r
                /** Used for drawing for example buttons in normal state.\r
@@ -85,7 +85,7 @@ namespace gui
                implementations to find out how to draw the part exactly. */\r
                virtual void draw3DButtonPaneStandard(IGUIElement* element,\r
                                const core::rect<s32>& rect,\r
-                               const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip=0) override;\r
 \r
                //! draws a pressed 3d button pane\r
                /** Used for drawing for example buttons in pressed state.\r
@@ -98,7 +98,7 @@ namespace gui
                implementations to find out how to draw the part exactly. */\r
                virtual void draw3DButtonPanePressed(IGUIElement* element,\r
                                const core::rect<s32>& rect,\r
-                               const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip=0) override;\r
 \r
                //! draws a sunken 3d pane\r
                /** Used for drawing the background of edit, combo or check boxes.\r
@@ -114,7 +114,7 @@ namespace gui
                                video::SColor bgcolor, bool flat,\r
                                bool fillBackGround,\r
                                const core::rect<s32>& rect,\r
-                               const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip=0) override;\r
 \r
                //! draws a window background\r
                /** Used for drawing the background of dialogs and windows.\r
@@ -134,7 +134,7 @@ namespace gui
                                bool drawTitleBar, video::SColor titleBarColor,\r
                                const core::rect<s32>& rect,\r
                                const core::rect<s32>* clip,\r
-                               core::rect<s32>* checkClientArea) _IRR_OVERRIDE_;\r
+                               core::rect<s32>* checkClientArea) override;\r
 \r
                //! draws a standard 3d menu pane\r
                /** Used for drawing for menus and context menus.\r
@@ -147,7 +147,7 @@ namespace gui
                \param clip: Clip area. */\r
                virtual void draw3DMenuPane(IGUIElement* element,\r
                                const core::rect<s32>& rect,\r
-                               const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip=0) override;\r
 \r
                //! draws a standard 3d tool bar\r
                /** Used for drawing for toolbars and menus.\r
@@ -158,7 +158,7 @@ namespace gui
                \param clip: Clip area. */\r
                virtual void draw3DToolBar(IGUIElement* element,\r
                                const core::rect<s32>& rect,\r
-                               const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip=0) override;\r
 \r
                //! draws a tab button\r
                /** Used for drawing for tab buttons on top of tabs.\r
@@ -170,7 +170,7 @@ namespace gui
                \param clip: Clip area. */\r
                virtual void draw3DTabButton(IGUIElement* element, bool active,\r
                        const core::rect<s32>& rect, const core::rect<s32>* clip=0,\r
-                       EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT) _IRR_OVERRIDE_;\r
+                       EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT) override;\r
 \r
                //! draws a tab control body\r
                /** \param element: Pointer to the element which wishes to draw this. This parameter\r
@@ -182,7 +182,7 @@ namespace gui
                \param clip: Clip area. */\r
                virtual void draw3DTabBody(IGUIElement* element, bool border, bool background,\r
                        const core::rect<s32>& rect, const core::rect<s32>* clip=0, s32 tabHeight=-1,\r
-                       EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT) _IRR_OVERRIDE_;\r
+                       EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT) override;\r
 \r
                //! draws an icon, usually from the skin's sprite bank\r
                /** \param element: Pointer to the element which wishes to draw this icon.\r
@@ -197,7 +197,7 @@ namespace gui
                virtual void drawIcon(IGUIElement* element, EGUI_DEFAULT_ICON icon,\r
                                const core::position2di position,\r
                                u32 starttime=0, u32 currenttime=0,\r
-                               bool loop=false, const core::rect<s32>* clip=0) _IRR_OVERRIDE_;\r
+                               bool loop=false, const core::rect<s32>* clip=0) override;\r
 \r
 \r
                //! draws a 2d rectangle.\r
@@ -210,11 +210,11 @@ namespace gui
                \param clip: Pointer to rectangle against which the rectangle will be clipped.\r
                If the pointer is null, no clipping will be performed. */\r
                virtual void draw2DRectangle(IGUIElement* element, const video::SColor &color,\r
-                               const core::rect<s32>& pos, const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>& pos, const core::rect<s32>* clip = 0) override;\r
 \r
 \r
                //! get the type of this skin\r
-               virtual EGUI_SKIN_TYPE getType() const _IRR_OVERRIDE_;\r
+               EGUI_SKIN_TYPE getType() const override;\r
 \r
        private:\r
 \r
index 06c154d683fe03369fee43677c8ac6e52ac6a6ae..cfca788fd1abcdc9d139b8d75182a2deedf982b9 100644 (file)
@@ -32,38 +32,38 @@ public:
        CGUISpriteBank(IGUIEnvironment* env);\r
        virtual ~CGUISpriteBank();\r
 \r
-       virtual core::array< core::rect<s32> >& getPositions() _IRR_OVERRIDE_;\r
-       virtual core::array< SGUISprite >& getSprites() _IRR_OVERRIDE_;\r
+       core::array< core::rect<s32> >& getPositions() override;\r
+       core::array< SGUISprite >& getSprites() override;\r
 \r
-       virtual u32 getTextureCount() const _IRR_OVERRIDE_;\r
-       virtual video::ITexture* getTexture(u32 index) const _IRR_OVERRIDE_;\r
-       virtual void addTexture(video::ITexture* texture) _IRR_OVERRIDE_;\r
-       virtual void setTexture(u32 index, video::ITexture* texture) _IRR_OVERRIDE_;\r
+       u32 getTextureCount() const override;\r
+       video::ITexture* getTexture(u32 index) const override;\r
+       void addTexture(video::ITexture* texture) override;\r
+       void setTexture(u32 index, video::ITexture* texture) override;\r
 \r
        //! Add the texture and use it for a single non-animated sprite.\r
-       virtual s32 addTextureAsSprite(video::ITexture* texture) _IRR_OVERRIDE_;\r
+       s32 addTextureAsSprite(video::ITexture* texture) override;\r
 \r
        //! clears sprites, rectangles and textures\r
-       virtual void clear() _IRR_OVERRIDE_;\r
+       void clear() override;\r
 \r
        //! Draws a sprite in 2d with position and color\r
        virtual void draw2DSprite(u32 index, const core::position2di& pos, const core::rect<s32>* clip=0,\r
                                const video::SColor& color= video::SColor(255,255,255,255),\r
-                               u32 starttime=0, u32 currenttime=0, bool loop=true, bool center=false) _IRR_OVERRIDE_;\r
+                               u32 starttime=0, u32 currenttime=0, bool loop=true, bool center=false) override;\r
 \r
        //! Draws a sprite in 2d with destination rectangle and colors\r
        virtual void draw2DSprite(u32 index, const core::rect<s32>& destRect,\r
                        const core::rect<s32>* clip=0,\r
                        const video::SColor * const colors=0,\r
                        u32 timeTicks = 0,\r
-                       bool loop=true) _IRR_OVERRIDE_;\r
+                       bool loop=true) override;\r
 \r
        //! Draws a sprite batch in 2d using an array of positions and a color\r
        virtual void draw2DSpriteBatch(const core::array<u32>& indices, const core::array<core::position2di>& pos,\r
                        const core::rect<s32>* clip=0,\r
                        const video::SColor& color= video::SColor(255,255,255,255),\r
                        u32 starttime=0, u32 currenttime=0,\r
-                       bool loop=true, bool center=false) _IRR_OVERRIDE_;\r
+                       bool loop=true, bool center=false) override;\r
 \r
 protected:\r
 \r
index 31b7a4a8459389c209e8ec1d6e5faa740be9e3cb..827e95ffdac681765ec9d62e400b461fe9dc9c34 100644 (file)
@@ -28,78 +28,78 @@ namespace gui
                virtual ~CGUIStaticText();\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! Sets another skin independent font.\r
-               virtual void setOverrideFont(IGUIFont* font=0) _IRR_OVERRIDE_;\r
+               void setOverrideFont(IGUIFont* font=0) override;\r
 \r
                //! Gets the override font (if any)\r
-               virtual IGUIFont* getOverrideFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getOverrideFont() const override;\r
 \r
                //! Get the font which is used right now for drawing\r
-               virtual IGUIFont* getActiveFont() const _IRR_OVERRIDE_;\r
+               IGUIFont* getActiveFont() const override;\r
 \r
                //! Sets another color for the text.\r
-               virtual void setOverrideColor(video::SColor color) _IRR_OVERRIDE_;\r
+               void setOverrideColor(video::SColor color) override;\r
 \r
                //! Sets another color for the background.\r
-               virtual void setBackgroundColor(video::SColor color) _IRR_OVERRIDE_;\r
+               void setBackgroundColor(video::SColor color) override;\r
 \r
                //! Sets whether to draw the background\r
-               virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBackground(bool draw) override;\r
 \r
                //! Gets the background color\r
-               virtual video::SColor getBackgroundColor() const _IRR_OVERRIDE_;\r
+               video::SColor getBackgroundColor() const override;\r
 \r
                //! Checks if background drawing is enabled\r
-               virtual bool isDrawBackgroundEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBackgroundEnabled() const override;\r
 \r
                //! Sets whether to draw the border\r
-               virtual void setDrawBorder(bool draw) _IRR_OVERRIDE_;\r
+               void setDrawBorder(bool draw) override;\r
 \r
                //! Checks if border drawing is enabled\r
-               virtual bool isDrawBorderEnabled() const _IRR_OVERRIDE_;\r
+               bool isDrawBorderEnabled() const override;\r
 \r
                //! Sets alignment mode for text\r
-               virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) _IRR_OVERRIDE_;\r
+               void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) override;\r
 \r
                //! Gets the override color\r
-               virtual video::SColor getOverrideColor() const _IRR_OVERRIDE_;\r
+               video::SColor getOverrideColor() const override;\r
 \r
                //! Gets the currently used text color\r
-               virtual video::SColor getActiveColor() const _IRR_OVERRIDE_;\r
+               video::SColor getActiveColor() const override;\r
 \r
                //! Sets if the static text should use the override color or the\r
                //! color in the gui skin.\r
-               virtual void enableOverrideColor(bool enable) _IRR_OVERRIDE_;\r
+               void enableOverrideColor(bool enable) override;\r
 \r
                //! Checks if an override color is enabled\r
-               virtual bool isOverrideColorEnabled() const _IRR_OVERRIDE_;\r
+               bool isOverrideColorEnabled() const override;\r
 \r
                //! Set whether the text in this label should be clipped if it goes outside bounds\r
-               virtual void setTextRestrainedInside(bool restrainedInside) _IRR_OVERRIDE_;\r
+               void setTextRestrainedInside(bool restrainedInside) override;\r
 \r
                //! Checks if the text in this label should be clipped if it goes outside bounds\r
-               virtual bool isTextRestrainedInside() const _IRR_OVERRIDE_;\r
+               bool isTextRestrainedInside() const override;\r
 \r
                //! Enables or disables word wrap for using the static text as\r
                //! multiline text control.\r
-               virtual void setWordWrap(bool enable) _IRR_OVERRIDE_;\r
+               void setWordWrap(bool enable) override;\r
 \r
                //! Checks if word wrap is enabled\r
-               virtual bool isWordWrapEnabled() const _IRR_OVERRIDE_;\r
+               bool isWordWrapEnabled() const override;\r
 \r
                //! Sets the new caption of this element.\r
-               virtual void setText(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setText(const wchar_t* text) override;\r
 \r
                //! Returns the height of the text in pixels when it is drawn.\r
-               virtual s32 getTextHeight() const _IRR_OVERRIDE_;\r
+               s32 getTextHeight() const override;\r
 \r
                //! Returns the width of the current text, in the current font\r
-               virtual s32 getTextWidth() const _IRR_OVERRIDE_;\r
+               s32 getTextWidth() const override;\r
 \r
                //! Updates the absolute position, splits text if word wrap is enabled\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
                //! Set whether the string should be interpreted as right-to-left (RTL) text\r
                /** \note This component does not implement the Unicode bidi standard, the\r
@@ -107,10 +107,10 @@ namespace gui
                main difference when RTL is enabled is that the linebreaks for multiline\r
                elements are performed starting from the end.\r
                */\r
-               virtual void setRightToLeft(bool rtl) _IRR_OVERRIDE_;\r
+               void setRightToLeft(bool rtl) override;\r
 \r
                //! Checks if the text should be interpreted as right-to-left text\r
-               virtual bool isRightToLeft() const _IRR_OVERRIDE_;\r
+               bool isRightToLeft() const override;\r
 \r
        private:\r
 \r
index 6fb8068ad84a86379e8368e7e180ae861d8e5c7a..ffc31f216a064cd71513e728e596bc8a61ab7d68 100644 (file)
@@ -30,24 +30,24 @@ namespace gui
                        s32 id);\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! sets if the tab should draw its background\r
-               virtual void setDrawBackground(bool draw=true) _IRR_OVERRIDE_;\r
+               void setDrawBackground(bool draw=true) override;\r
 \r
                //! sets the color of the background, if it should be drawn.\r
-               virtual void setBackgroundColor(video::SColor c) _IRR_OVERRIDE_;\r
+               void setBackgroundColor(video::SColor c) override;\r
 \r
                //! sets the color of the text\r
-               virtual void setTextColor(video::SColor c) _IRR_OVERRIDE_;\r
+               void setTextColor(video::SColor c) override;\r
 \r
                //! returns true if the tab is drawing its background, false if not\r
-               virtual bool isDrawingBackground() const _IRR_OVERRIDE_;\r
+               bool isDrawingBackground() const override;\r
 \r
                //! returns the color of the background\r
-               virtual video::SColor getBackgroundColor() const _IRR_OVERRIDE_;\r
+               video::SColor getBackgroundColor() const override;\r
 \r
-               virtual video::SColor getTextColor() const _IRR_OVERRIDE_;\r
+               video::SColor getTextColor() const override;\r
 \r
        private:\r
 \r
@@ -72,82 +72,82 @@ namespace gui
                virtual ~CGUITabControl();\r
 \r
                //! Adds a tab\r
-               virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUITab* addTab(const wchar_t* caption, s32 id=-1) override;\r
 \r
                //! Adds an existing tab\r
-               virtual s32 addTab(IGUITab* tab) _IRR_OVERRIDE_;\r
+               s32 addTab(IGUITab* tab) override;\r
 \r
                //! Insert the tab at the given index\r
-               virtual IGUITab* insertTab(s32 idx, const wchar_t* caption, s32 id=-1) _IRR_OVERRIDE_;\r
+               IGUITab* insertTab(s32 idx, const wchar_t* caption, s32 id=-1) override;\r
 \r
                //! Insert an existing tab\r
                /** Note that it will also add the tab as a child of this TabControl.\r
                \return Index of added tab (should be same as the one passed) or -1 for failure*/\r
-               virtual s32 insertTab(s32 idx, IGUITab* tab, bool serializationMode) _IRR_OVERRIDE_;\r
+               s32 insertTab(s32 idx, IGUITab* tab, bool serializationMode) override;\r
 \r
                //! Removes a tab from the tabcontrol\r
-               virtual void removeTab(s32 idx) _IRR_OVERRIDE_;\r
+               void removeTab(s32 idx) override;\r
 \r
                //! Clears the tabcontrol removing all tabs\r
-               virtual void clear() _IRR_OVERRIDE_;\r
+               void clear() override;\r
 \r
                //! Returns amount of tabs in the tabcontrol\r
-               virtual s32 getTabCount() const _IRR_OVERRIDE_;\r
+               s32 getTabCount() const override;\r
 \r
                //! Returns a tab based on zero based index\r
-               virtual IGUITab* getTab(s32 idx) const _IRR_OVERRIDE_;\r
+               IGUITab* getTab(s32 idx) const override;\r
 \r
                //! Brings a tab to front.\r
-               virtual bool setActiveTab(s32 idx) _IRR_OVERRIDE_;\r
+               bool setActiveTab(s32 idx) override;\r
 \r
                //! Brings a tab to front.\r
-               virtual bool setActiveTab(IGUITab *tab) _IRR_OVERRIDE_;\r
+               bool setActiveTab(IGUITab *tab) override;\r
 \r
                //! For given given tab find it's zero-based index (or -1 for not found)\r
-               virtual s32 getTabIndex(const IGUIElement *tab) const _IRR_OVERRIDE_;\r
+               s32 getTabIndex(const IGUIElement *tab) const override;\r
 \r
                //! Returns which tab is currently active\r
-               virtual s32 getActiveTab() const _IRR_OVERRIDE_;\r
+               s32 getActiveTab() const override;\r
 \r
                //! get the the id of the tab at the given absolute coordinates\r
-               virtual s32 getTabAt(s32 xpos, s32 ypos) const _IRR_OVERRIDE_;\r
+               s32 getTabAt(s32 xpos, s32 ypos) const override;\r
 \r
                //! called if an event happened.\r
-               virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool OnEvent(const SEvent& event) override;\r
 \r
                //! draws the element and its children\r
-               virtual void draw() _IRR_OVERRIDE_;\r
+               void draw() override;\r
 \r
                //! Removes a child.\r
-               virtual void removeChild(IGUIElement* child) _IRR_OVERRIDE_;\r
+               void removeChild(IGUIElement* child) override;\r
 \r
                //! Set the height of the tabs\r
-               virtual void setTabHeight( s32 height ) _IRR_OVERRIDE_;\r
+               void setTabHeight( s32 height ) override;\r
 \r
                //! Get the height of the tabs\r
-               virtual s32 getTabHeight() const _IRR_OVERRIDE_;\r
+               s32 getTabHeight() const override;\r
 \r
                //! set the maximal width of a tab. Per default width is 0 which means "no width restriction".\r
-               virtual void setTabMaxWidth(s32 width ) _IRR_OVERRIDE_;\r
+               void setTabMaxWidth(s32 width ) override;\r
 \r
                //! get the maximal width of a tab\r
-               virtual s32 getTabMaxWidth() const _IRR_OVERRIDE_;\r
+               s32 getTabMaxWidth() const override;\r
 \r
                //! Set the alignment of the tabs\r
                //! note: EGUIA_CENTER is not an option\r
-               virtual void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) _IRR_OVERRIDE_;\r
+               void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) override;\r
 \r
                //! Get the alignment of the tabs\r
-               virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const _IRR_OVERRIDE_;\r
+               gui::EGUI_ALIGNMENT getTabVerticalAlignment() const override;\r
 \r
                //! Set the extra width added to tabs on each side of the text\r
-               virtual void setTabExtraWidth( s32 extraWidth ) _IRR_OVERRIDE_;\r
+               void setTabExtraWidth( s32 extraWidth ) override;\r
 \r
                //! Get the extra width added to tabs on each side of the text\r
-               virtual s32 getTabExtraWidth() const _IRR_OVERRIDE_;\r
+               s32 getTabExtraWidth() const override;\r
 \r
                //! Update the position of the element, decides scroll button status\r
-               virtual void updateAbsolutePosition() _IRR_OVERRIDE_;\r
+               void updateAbsolutePosition() override;\r
 \r
        private:\r
 \r
index 48d45b3b261ba7e21eeff0bcd68fa10be64a203f..075b984f5d4aad7860cbfa00c64f2b7304d66746 100644 (file)
@@ -37,33 +37,33 @@ public:
        CImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size);\r
 \r
        //! returns a pixel\r
-       virtual SColor getPixel(u32 x, u32 y) const _IRR_OVERRIDE_;\r
+       SColor getPixel(u32 x, u32 y) const override;\r
 \r
        //! sets a pixel\r
-       virtual void setPixel(u32 x, u32 y, const SColor &color, bool blend = false ) _IRR_OVERRIDE_;\r
+       void setPixel(u32 x, u32 y, const SColor &color, bool blend = false ) override;\r
 \r
        //! copies this surface into another, scaling it to fit.\r
-       virtual void copyToScaling(void* target, u32 width, u32 height, ECOLOR_FORMAT format, u32 pitch=0) _IRR_OVERRIDE_;\r
+       void copyToScaling(void* target, u32 width, u32 height, ECOLOR_FORMAT format, u32 pitch=0) override;\r
 \r
        //! copies this surface into another, scaling it to fit.\r
-       virtual void copyToScaling(IImage* target) _IRR_OVERRIDE_;\r
+       void copyToScaling(IImage* target) override;\r
 \r
        //! copies this surface into another\r
-       virtual void copyTo(IImage* target, const core::position2d<s32>& pos=core::position2d<s32>(0,0)) _IRR_OVERRIDE_;\r
+       void copyTo(IImage* target, const core::position2d<s32>& pos=core::position2d<s32>(0,0)) override;\r
 \r
        //! copies this surface into another\r
-       virtual void copyTo(IImage* target, const core::position2d<s32>& pos, const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect=0) _IRR_OVERRIDE_;\r
+       void copyTo(IImage* target, const core::position2d<s32>& pos, const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect=0) override;\r
 \r
        //! copies this surface into another, using the alpha mask, an cliprect and a color to add with\r
        virtual void copyToWithAlpha(IImage* target, const core::position2d<s32>& pos,\r
                        const core::rect<s32>& sourceRect, const SColor &color,\r
-                       const core::rect<s32>* clipRect = 0, bool combineAlpha=false) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clipRect = 0, bool combineAlpha=false) override;\r
 \r
        //! copies this surface into another, scaling it to fit, applying a box filter\r
-       virtual void copyToScalingBoxFilter(IImage* target, s32 bias = 0, bool blend = false) _IRR_OVERRIDE_;\r
+       void copyToScalingBoxFilter(IImage* target, s32 bias = 0, bool blend = false) override;\r
 \r
        //! fills the surface with given color\r
-       virtual void fill(const SColor &color) _IRR_OVERRIDE_;\r
+       void fill(const SColor &color) override;\r
 \r
 private:\r
        inline SColor getPixelBox ( s32 x, s32 y, s32 fx, s32 fy, s32 bias ) const;\r
index f345e1eae54d9b32c22eb2e307954dc8c0f8a58a..5d993ce54014aaebb0348dbfceaf47eb6060f74a 100644 (file)
@@ -75,13 +75,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".tga")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
-       virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileFormat(io::IReadFile* file) const override;\r
 \r
        //! creates a surface from the file\r
-       virtual IImage* loadImage(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       IImage* loadImage(io::IReadFile* file) const override;\r
 \r
 private:\r
 \r
index 75e59646a7c9029445c9c3131c7fe5c54f123841..146adbe8cc0656b97af9ae48e34dc3c345a27fd6 100644 (file)
@@ -39,13 +39,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".tga")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
-       virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileFormat(io::IReadFile* file) const override;\r
 \r
        //! creates a surface from the file\r
-       virtual IImage* loadImage(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       IImage* loadImage(io::IReadFile* file) const override;\r
 \r
 private:\r
 \r
index fbe448ad0587d5be5cca9b9779a9ddcec2f937b8..6e631b7269de1bb1f91a51c2438222227ab5c5f1 100644 (file)
@@ -27,13 +27,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".png")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
-       virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileFormat(io::IReadFile* file) const override;\r
 \r
        //! creates a surface from the file\r
-       virtual IImage* loadImage(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       IImage* loadImage(io::IReadFile* file) const override;\r
 };\r
 \r
 \r
index 8ea0246facfd12478689f38d03040d4995fe6f47..d8f7368b734b4f4cd3327b752af942ba60a2728d 100644 (file)
@@ -59,13 +59,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".tga")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
-       virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileFormat(io::IReadFile* file) const override;\r
 \r
        //! creates a surface from the file\r
-       virtual IImage* loadImage(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+       IImage* loadImage(io::IReadFile* file) const override;\r
 \r
 private:\r
 \r
index e9d01385a1ce18000203026efb0c85db3e46c9a9..ec8a1b85c8d2269a1c702e4fcbc96acfa04276bd 100644 (file)
@@ -23,10 +23,10 @@ public:
        CImageWriterJPG();\r
 \r
        //! return true if this writer can write a file with the given extension\r
-       virtual bool isAWriteableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isAWriteableFileExtension(const io::path& filename) const override;\r
 \r
        //! write image to file\r
-       virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const _IRR_OVERRIDE_;\r
+       bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const override;\r
 };\r
 \r
 }\r
index 37e4953dd36d81906da188d7692001d164b209ac..eec12ff048c66af134303529f555408394a783a1 100644 (file)
@@ -23,10 +23,10 @@ public:
        CImageWriterPNG();\r
 \r
        //! return true if this writer can write a file with the given extension\r
-       virtual bool isAWriteableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isAWriteableFileExtension(const io::path& filename) const override;\r
 \r
        //! write image to file\r
-       virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const _IRR_OVERRIDE_;\r
+       bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const override;\r
 };\r
 \r
 } // namespace video\r
index 9e3479f6eb981ced86a1d70631d4667407d88a90..1ef76724c0735daf7ef4a71bb372e14b1c604699 100644 (file)
@@ -44,56 +44,56 @@ namespace irr
                virtual ~CIrrDeviceLinux();\r
 \r
                //! runs the device. Returns false if device wants to be deleted\r
-               virtual bool run() _IRR_OVERRIDE_;\r
+               bool run() override;\r
 \r
                //! Cause the device to temporarily pause execution and let other processes to run\r
                // This should bring down processor usage without major performance loss for Irrlicht\r
-               virtual void yield() _IRR_OVERRIDE_;\r
+               void yield() override;\r
 \r
                //! Pause execution and let other processes to run for a specified amount of time.\r
-               virtual void sleep(u32 timeMs, bool pauseTimer) _IRR_OVERRIDE_;\r
+               void sleep(u32 timeMs, bool pauseTimer) override;\r
 \r
                //! sets the caption of the window\r
-               virtual void setWindowCaption(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setWindowCaption(const wchar_t* text) override;\r
 \r
                //! returns if window is active. if not, nothing need to be drawn\r
-               virtual bool isWindowActive() const _IRR_OVERRIDE_;\r
+               bool isWindowActive() const override;\r
 \r
                //! returns if window has focus.\r
-               virtual bool isWindowFocused() const _IRR_OVERRIDE_;\r
+               bool isWindowFocused() const override;\r
 \r
                //! returns if window is minimized.\r
-               virtual bool isWindowMinimized() const _IRR_OVERRIDE_;\r
+               bool isWindowMinimized() const override;\r
 \r
                //! returns color format of the window.\r
-               virtual video::ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               video::ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! presents a surface in the client area\r
-               virtual bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0 ) _IRR_OVERRIDE_;\r
+               bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0 ) override;\r
 \r
                //! notifies the device that it should close itself\r
-               virtual void closeDevice() _IRR_OVERRIDE_;\r
+               void closeDevice() override;\r
 \r
                //! Sets if the window should be resizable in windowed mode.\r
-               virtual void setResizable(bool resize=false) _IRR_OVERRIDE_;\r
+               void setResizable(bool resize=false) override;\r
 \r
                //! Resize the render window.\r
-               virtual void setWindowSize(const irr::core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void setWindowSize(const irr::core::dimension2d<u32>& size) override;\r
 \r
                //! Minimizes the window.\r
-               virtual void minimizeWindow() _IRR_OVERRIDE_;\r
+               void minimizeWindow() override;\r
 \r
                //! Maximizes the window.\r
-               virtual void maximizeWindow() _IRR_OVERRIDE_;\r
+               void maximizeWindow() override;\r
 \r
                //! Restores the window size.\r
-               virtual void restoreWindow() _IRR_OVERRIDE_;\r
+               void restoreWindow() override;\r
 \r
                //! Get the position of this window on screen\r
-               virtual core::position2di getWindowPosition() _IRR_OVERRIDE_;\r
+               core::position2di getWindowPosition() override;\r
 \r
                //! Activate any joysticks, and generate events for them.\r
-               virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) _IRR_OVERRIDE_;\r
+               bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) override;\r
 \r
                //! gets text from the clipboard\r
                //! \return Returns 0 if no string is in there, otherwise utf-8 text.\r
@@ -105,10 +105,10 @@ namespace irr
                virtual void copyToClipboard(const c8 *text) const;\r
 \r
                //! Remove all messages pending in the system message loop\r
-               virtual void clearSystemMessages() _IRR_OVERRIDE_;\r
+               void clearSystemMessages() override;\r
 \r
                //! Get the device type\r
-               virtual E_DEVICE_TYPE getType() const _IRR_OVERRIDE_\r
+               E_DEVICE_TYPE getType() const override\r
                {\r
                        return EIDT_X11;\r
                }\r
@@ -155,7 +155,7 @@ namespace irr
                        ~CCursorControl();\r
 \r
                        //! Changes the visible state of the mouse cursor.\r
-                       virtual void setVisible(bool visible) _IRR_OVERRIDE_\r
+                       void setVisible(bool visible) override\r
                        {\r
                                if (visible==IsVisible)\r
                                        return;\r
@@ -172,31 +172,31 @@ namespace irr
                        }\r
 \r
                        //! Returns if the cursor is currently visible.\r
-                       virtual bool isVisible() const _IRR_OVERRIDE_\r
+                       bool isVisible() const override\r
                        {\r
                                return IsVisible;\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<f32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<f32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(f32 x, f32 y) _IRR_OVERRIDE_\r
+                       void setPosition(f32 x, f32 y) override\r
                        {\r
                                setPosition((s32)(x*Device->Width), (s32)(y*Device->Height));\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<s32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<s32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(s32 x, s32 y) _IRR_OVERRIDE_\r
+                       void setPosition(s32 x, s32 y) override\r
                        {\r
 #ifdef _IRR_COMPILE_WITH_X11_\r
 \r
@@ -261,7 +261,7 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual const core::position2d<s32>& getPosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       const core::position2d<s32>& getPosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateCursorPos();\r
@@ -269,7 +269,7 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual core::position2d<f32> getRelativePosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       core::position2d<f32> getRelativePosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateCursorPos();\r
@@ -284,7 +284,7 @@ namespace irr
                                                CursorPos.Y / (f32)ReferenceRect.getHeight());\r
                        }\r
 \r
-                       virtual void setReferenceRect(core::rect<s32>* rect=0) _IRR_OVERRIDE_\r
+                       void setReferenceRect(core::rect<s32>* rect=0) override\r
                        {\r
                                if (rect)\r
                                {\r
@@ -304,29 +304,29 @@ namespace irr
                        }\r
 \r
                        //! Sets the active cursor icon\r
-                       virtual void setActiveIcon(gui::ECURSOR_ICON iconId) _IRR_OVERRIDE_;\r
+                       void setActiveIcon(gui::ECURSOR_ICON iconId) override;\r
 \r
                        //! Gets the currently active icon\r
-                       virtual gui::ECURSOR_ICON getActiveIcon() const _IRR_OVERRIDE_\r
+                       gui::ECURSOR_ICON getActiveIcon() const override\r
                        {\r
                                return ActiveIcon;\r
                        }\r
 \r
                        //! Add a custom sprite as cursor icon.\r
-                       virtual gui::ECURSOR_ICON addIcon(const gui::SCursorSprite& icon) _IRR_OVERRIDE_;\r
+                       gui::ECURSOR_ICON addIcon(const gui::SCursorSprite& icon) override;\r
 \r
                        //! replace the given cursor icon.\r
-                       virtual void changeIcon(gui::ECURSOR_ICON iconId, const gui::SCursorSprite& icon) _IRR_OVERRIDE_;\r
+                       void changeIcon(gui::ECURSOR_ICON iconId, const gui::SCursorSprite& icon) override;\r
 \r
                        //! Return a system-specific size which is supported for cursors. Larger icons will fail, smaller icons might work.\r
-                       virtual core::dimension2di getSupportedIconSize() const _IRR_OVERRIDE_;\r
+                       core::dimension2di getSupportedIconSize() const override;\r
 \r
 #ifdef _IRR_COMPILE_WITH_X11_\r
                        //! Set platform specific behavior flags.\r
-                       virtual void setPlatformBehavior(gui::ECURSOR_PLATFORM_BEHAVIOR behavior) _IRR_OVERRIDE_ {PlatformBehavior = behavior; }\r
+                       void setPlatformBehavior(gui::ECURSOR_PLATFORM_BEHAVIOR behavior) override {PlatformBehavior = behavior; }\r
 \r
                        //! Return platform specific behavior.\r
-                       virtual gui::ECURSOR_PLATFORM_BEHAVIOR getPlatformBehavior() const _IRR_OVERRIDE_ { return PlatformBehavior; }\r
+                       gui::ECURSOR_PLATFORM_BEHAVIOR getPlatformBehavior() const override { return PlatformBehavior; }\r
 \r
                        void update();\r
                        void clearCursors();\r
index 7f0591da7c6122ce985beca3dc06c93eed829a32..6eac56d45e971b0affb40edf0f99b7d4f427292e 100644 (file)
@@ -47,56 +47,56 @@ namespace irr
                virtual ~CIrrDeviceMacOSX();\r
 \r
                //! runs the device. Returns false if device wants to be deleted\r
-               virtual bool run() _IRR_OVERRIDE_;\r
+               bool run() override;\r
 \r
                //! Cause the device to temporarily pause execution and let other processes to run\r
                // This should bring down processor usage without major performance loss for Irrlicht\r
-               virtual void yield() _IRR_OVERRIDE_;\r
+               void yield() override;\r
 \r
                //! Pause execution and let other processes to run for a specified amount of time.\r
-               virtual void sleep(u32 timeMs, bool pauseTimer) _IRR_OVERRIDE_;\r
+               void sleep(u32 timeMs, bool pauseTimer) override;\r
 \r
                //! sets the caption of the window\r
-               virtual void setWindowCaption(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setWindowCaption(const wchar_t* text) override;\r
 \r
                //! returns if window is active. if not, nothing need to be drawn\r
-               virtual bool isWindowActive() const _IRR_OVERRIDE_;\r
+               bool isWindowActive() const override;\r
 \r
                //! Checks if the Irrlicht window has focus\r
-               virtual bool isWindowFocused() const _IRR_OVERRIDE_;\r
+               bool isWindowFocused() const override;\r
 \r
                //! Checks if the Irrlicht window is minimized\r
-               virtual bool isWindowMinimized() const _IRR_OVERRIDE_;\r
+               bool isWindowMinimized() const override;\r
 \r
                //! presents a surface in the client area\r
-               virtual bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0 ) _IRR_OVERRIDE_;\r
+               bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0 ) override;\r
 \r
                //! notifies the device that it should close itself\r
-               virtual void closeDevice() _IRR_OVERRIDE_;\r
+               void closeDevice() override;\r
 \r
                //! Sets if the window should be resizable in windowed mode.\r
-               virtual void setResizable(bool resize) _IRR_OVERRIDE_;\r
+               void setResizable(bool resize) override;\r
 \r
                //! Returns true if the window is resizable, false if not\r
                virtual bool isResizable() const;\r
 \r
                //! Minimizes the window if possible\r
-               virtual void minimizeWindow() _IRR_OVERRIDE_;\r
+               void minimizeWindow() override;\r
 \r
                //! Maximizes the window if possible.\r
-               virtual void maximizeWindow() _IRR_OVERRIDE_;\r
+               void maximizeWindow() override;\r
 \r
                //! Restore the window to normal size if possible.\r
-               virtual void restoreWindow() _IRR_OVERRIDE_;\r
+               void restoreWindow() override;\r
 \r
         //! Get the position of this window on screen\r
-        virtual core::position2di getWindowPosition() _IRR_OVERRIDE_;\r
+        core::position2di getWindowPosition() override;\r
 \r
                //! Activate any joysticks, and generate events for them.\r
-               virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) _IRR_OVERRIDE_;\r
+               bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) override;\r
 \r
                //! Get the device type\r
-               virtual E_DEVICE_TYPE getType() const _IRR_OVERRIDE_\r
+               E_DEVICE_TYPE getType() const override\r
                {\r
                                return EIDT_OSX;\r
                }\r
@@ -127,39 +127,39 @@ namespace irr
                        }\r
 \r
                        //! Changes the visible state of the mouse cursor.\r
-                       virtual void setVisible(bool visible)  _IRR_OVERRIDE_\r
+                       void setVisible(bool visible)  override\r
                        {\r
                                IsVisible = visible;\r
                                Device->setCursorVisible(visible);\r
                        }\r
 \r
                        //! Returns if the cursor is currently visible.\r
-                       virtual bool isVisible() const  _IRR_OVERRIDE_\r
+                       bool isVisible() const  override\r
                        {\r
                                return IsVisible;\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<f32> &pos)  _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<f32> &pos)  override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(f32 x, f32 y)  _IRR_OVERRIDE_\r
+                       void setPosition(f32 x, f32 y)  override\r
                        {\r
                                setPosition((s32)(x*WindowSize.Width), (s32)(y*WindowSize.Height));\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<s32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<s32> &pos) override\r
                        {\r
                                if (CursorPos.X != pos.X || CursorPos.Y != pos.Y)\r
                                        setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(s32 x, s32 y) _IRR_OVERRIDE_\r
+                       void setPosition(s32 x, s32 y) override\r
                        {\r
                                if (UseReferenceRect)\r
                                {\r
@@ -172,13 +172,13 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual const core::position2d<s32>& getPosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       const core::position2d<s32>& getPosition(bool updateCursor) override\r
                        {\r
                                return CursorPos;\r
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual core::position2d<f32> getRelativePosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       core::position2d<f32> getRelativePosition(bool updateCursor) override\r
                        {\r
                                if (!UseReferenceRect)\r
                                {\r
@@ -191,7 +191,7 @@ namespace irr
                        }\r
 \r
                        //! Sets an absolute reference rect for calculating the cursor position.\r
-                       virtual void setReferenceRect(core::rect<s32>* rect=0)  _IRR_OVERRIDE_\r
+                       void setReferenceRect(core::rect<s32>* rect=0)  override\r
                        {\r
                                if (rect)\r
                                {\r
index 05391504d07d92d78c630d31046acc6522fcca19..e2e3654d7d6afaab87c74e60aad7296e1b89e736 100644 (file)
@@ -37,59 +37,59 @@ namespace irr
                virtual ~CIrrDeviceSDL();\r
 \r
                //! runs the device. Returns false if device wants to be deleted\r
-               virtual bool run() _IRR_OVERRIDE_;\r
+               bool run() override;\r
 \r
                //! pause execution temporarily\r
-               virtual void yield() _IRR_OVERRIDE_;\r
+               void yield() override;\r
 \r
                //! pause execution for a specified time\r
-               virtual void sleep(u32 timeMs, bool pauseTimer) _IRR_OVERRIDE_;\r
+               void sleep(u32 timeMs, bool pauseTimer) override;\r
 \r
                //! sets the caption of the window\r
-               virtual void setWindowCaption(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setWindowCaption(const wchar_t* text) override;\r
 \r
                //! returns if window is active. if not, nothing need to be drawn\r
-               virtual bool isWindowActive() const _IRR_OVERRIDE_;\r
+               bool isWindowActive() const override;\r
 \r
                //! returns if window has focus.\r
-               bool isWindowFocused() const _IRR_OVERRIDE_;\r
+               bool isWindowFocused() const override;\r
 \r
                //! returns if window is minimized.\r
-               bool isWindowMinimized() const _IRR_OVERRIDE_;\r
+               bool isWindowMinimized() const override;\r
 \r
                //! returns color format of the window.\r
-               video::ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               video::ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! presents a surface in the client area\r
-               virtual bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0) _IRR_OVERRIDE_;\r
+               bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0) override;\r
 \r
                //! notifies the device that it should close itself\r
-               virtual void closeDevice() _IRR_OVERRIDE_;\r
+               void closeDevice() override;\r
 \r
                //! Sets if the window should be resizable in windowed mode.\r
-               virtual void setResizable(bool resize=false) _IRR_OVERRIDE_;\r
+               void setResizable(bool resize=false) override;\r
 \r
                //! Minimizes the window.\r
-               virtual void minimizeWindow() _IRR_OVERRIDE_;\r
+               void minimizeWindow() override;\r
 \r
                //! Maximizes the window.\r
-               virtual void maximizeWindow() _IRR_OVERRIDE_;\r
+               void maximizeWindow() override;\r
 \r
                //! Restores the window size.\r
-               virtual void restoreWindow() _IRR_OVERRIDE_;\r
+               void restoreWindow() override;\r
 \r
                //! Checks if the Irrlicht window is running in fullscreen mode\r
                /** \return True if window is fullscreen. */\r
-               virtual bool isFullscreen() const _IRR_OVERRIDE_;\r
+               bool isFullscreen() const override;\r
 \r
                //! Get the position of this window on screen\r
-               virtual core::position2di getWindowPosition() _IRR_OVERRIDE_;\r
+               core::position2di getWindowPosition() override;\r
 \r
                //! Activate any joysticks, and generate events for them.\r
-               virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) _IRR_OVERRIDE_;\r
+               bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) override;\r
 \r
                //! Get the device type\r
-               virtual E_DEVICE_TYPE getType() const _IRR_OVERRIDE_\r
+               E_DEVICE_TYPE getType() const override\r
                {\r
                        return EIDT_SDL;\r
                }\r
@@ -107,7 +107,7 @@ namespace irr
                        }\r
 \r
                        //! Changes the visible state of the mouse cursor.\r
-                       virtual void setVisible(bool visible) _IRR_OVERRIDE_\r
+                       void setVisible(bool visible) override\r
                        {\r
                                IsVisible = visible;\r
                                if ( visible )\r
@@ -119,37 +119,37 @@ namespace irr
                        }\r
 \r
                        //! Returns if the cursor is currently visible.\r
-                       virtual bool isVisible() const _IRR_OVERRIDE_\r
+                       bool isVisible() const override\r
                        {\r
                                return IsVisible;\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<f32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<f32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(f32 x, f32 y) _IRR_OVERRIDE_\r
+                       void setPosition(f32 x, f32 y) override\r
                        {\r
                                setPosition((s32)(x*Device->Width), (s32)(y*Device->Height));\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<s32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<s32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(s32 x, s32 y) _IRR_OVERRIDE_\r
+                       void setPosition(s32 x, s32 y) override\r
                        {\r
                                SDL_WarpMouseInWindow(Device->Window, x, y);\r
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual const core::position2d<s32>& getPosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       const core::position2d<s32>& getPosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateCursorPos();\r
@@ -157,7 +157,7 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual core::position2d<f32> getRelativePosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       core::position2d<f32> getRelativePosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateCursorPos();\r
@@ -165,7 +165,7 @@ namespace irr
                                        CursorPos.Y / (f32)Device->Height);\r
                        }\r
 \r
-                       virtual void setReferenceRect(core::rect<s32>* rect=0) _IRR_OVERRIDE_\r
+                       void setReferenceRect(core::rect<s32>* rect=0) override\r
                        {\r
                        }\r
 \r
index d59277befc87e44be4fe43e7cb85a59180c74b6f..ab90e5011d45dad529252c317323ba9ec7dc9641 100644 (file)
@@ -58,105 +58,105 @@ namespace irr
                virtual ~CIrrDeviceStub();\r
 \r
                //! returns the video driver\r
-               virtual video::IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+               video::IVideoDriver* getVideoDriver() override;\r
 \r
                //! return file system\r
-               virtual io::IFileSystem* getFileSystem() _IRR_OVERRIDE_;\r
+               io::IFileSystem* getFileSystem() override;\r
 \r
                //! returns the gui environment\r
-               virtual gui::IGUIEnvironment* getGUIEnvironment() _IRR_OVERRIDE_;\r
+               gui::IGUIEnvironment* getGUIEnvironment() override;\r
 \r
                //! returns the scene manager\r
-               virtual scene::ISceneManager* getSceneManager() _IRR_OVERRIDE_;\r
+               scene::ISceneManager* getSceneManager() override;\r
 \r
                //! \return Returns a pointer to the mouse cursor control interface.\r
-               virtual gui::ICursorControl* getCursorControl() _IRR_OVERRIDE_;\r
+               gui::ICursorControl* getCursorControl() override;\r
 \r
                //! return the context manager\r
-               virtual video::IContextManager* getContextManager() _IRR_OVERRIDE_;\r
+               video::IContextManager* getContextManager() override;\r
 \r
                //! Returns a pointer to the ITimer object. With it the current Time can be received.\r
-               virtual ITimer* getTimer() _IRR_OVERRIDE_;\r
+               ITimer* getTimer() override;\r
 \r
                //! Returns the version of the engine.\r
-               virtual const char* getVersion() const _IRR_OVERRIDE_;\r
+               const char* getVersion() const override;\r
 \r
                //! send the event to the right receiver\r
-               virtual bool postEventFromUser(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool postEventFromUser(const SEvent& event) override;\r
 \r
                //! Sets a new event receiver to receive events\r
-               virtual void setEventReceiver(IEventReceiver* receiver) _IRR_OVERRIDE_;\r
+               void setEventReceiver(IEventReceiver* receiver) override;\r
 \r
                //! Returns pointer to the current event receiver. Returns 0 if there is none.\r
-               virtual IEventReceiver* getEventReceiver() _IRR_OVERRIDE_;\r
+               IEventReceiver* getEventReceiver() override;\r
 \r
                //! Sets the input receiving scene manager.\r
                /** If set to null, the main scene manager (returned by GetSceneManager()) will receive the input */\r
-               virtual void setInputReceivingSceneManager(scene::ISceneManager* sceneManager) _IRR_OVERRIDE_;\r
+               void setInputReceivingSceneManager(scene::ISceneManager* sceneManager) override;\r
 \r
                //! Returns a pointer to the logger.\r
-               virtual ILogger* getLogger() _IRR_OVERRIDE_;\r
+               ILogger* getLogger() override;\r
 \r
                //! Returns the operation system opertator object.\r
-               virtual IOSOperator* getOSOperator() _IRR_OVERRIDE_;\r
+               IOSOperator* getOSOperator() override;\r
 \r
                //! Checks if the window is running in fullscreen mode.\r
-               virtual bool isFullscreen() const _IRR_OVERRIDE_;\r
+               bool isFullscreen() const override;\r
 \r
                //! get color format of the current window\r
-               virtual video::ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               video::ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! Activate any joysticks, and generate events for them.\r
-               virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) _IRR_OVERRIDE_;\r
+               bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) override;\r
 \r
         //! Activate accelerometer.\r
-        virtual bool activateAccelerometer(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
+        bool activateAccelerometer(float updateInterval = 0.016666f) override;\r
         \r
         //! Deactivate accelerometer.\r
-        virtual bool deactivateAccelerometer() _IRR_OVERRIDE_;\r
+        bool deactivateAccelerometer() override;\r
         \r
         //! Is accelerometer active.\r
-        virtual bool isAccelerometerActive() _IRR_OVERRIDE_;\r
+        bool isAccelerometerActive() override;\r
         \r
         //! Is accelerometer available.\r
-        virtual bool isAccelerometerAvailable() _IRR_OVERRIDE_;\r
+        bool isAccelerometerAvailable() override;\r
         \r
         //! Activate gyroscope.\r
-        virtual bool activateGyroscope(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
+        bool activateGyroscope(float updateInterval = 0.016666f) override;\r
         \r
         //! Deactivate gyroscope.\r
-        virtual bool deactivateGyroscope() _IRR_OVERRIDE_;\r
+        bool deactivateGyroscope() override;\r
         \r
         //! Is gyroscope active.\r
-        virtual bool isGyroscopeActive() _IRR_OVERRIDE_;\r
+        bool isGyroscopeActive() override;\r
         \r
         //! Is gyroscope available.\r
-        virtual bool isGyroscopeAvailable() _IRR_OVERRIDE_;\r
+        bool isGyroscopeAvailable() override;\r
         \r
         //! Activate device motion.\r
-        virtual bool activateDeviceMotion(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
+        bool activateDeviceMotion(float updateInterval = 0.016666f) override;\r
         \r
         //! Deactivate device motion.\r
-        virtual bool deactivateDeviceMotion() _IRR_OVERRIDE_;\r
+        bool deactivateDeviceMotion() override;\r
         \r
         //! Is device motion active.\r
-        virtual bool isDeviceMotionActive() _IRR_OVERRIDE_;\r
+        bool isDeviceMotionActive() override;\r
         \r
         //! Is device motion available.\r
-        virtual bool isDeviceMotionAvailable() _IRR_OVERRIDE_;\r
+        bool isDeviceMotionAvailable() override;\r
 \r
                //! Set the maximal elapsed time between 2 clicks to generate doubleclicks for the mouse. It also affects tripleclick behavior.\r
                //! When set to 0 no double- and tripleclicks will be generated.\r
-               virtual void setDoubleClickTime( u32 timeMs ) _IRR_OVERRIDE_;\r
+               void setDoubleClickTime( u32 timeMs ) override;\r
 \r
                //! Get the maximal elapsed time between 2 clicks to generate double- and tripleclicks for the mouse.\r
-               virtual u32 getDoubleClickTime() const _IRR_OVERRIDE_;\r
+               u32 getDoubleClickTime() const override;\r
 \r
                //! Remove all messages pending in the system message loop\r
-               virtual void clearSystemMessages() _IRR_OVERRIDE_;\r
+               void clearSystemMessages() override;\r
 \r
                //! Resize the render window.\r
-               virtual void setWindowSize(const irr::core::dimension2d<u32>& size) _IRR_OVERRIDE_ {}\r
+               void setWindowSize(const irr::core::dimension2d<u32>& size) override {}\r
 \r
        protected:\r
 \r
index 863f2a65426eebc3c735b593371a30a6177d20a7..92cdb8f848c73e0e1b097d3fdbcf8e51dca9bee3 100644 (file)
@@ -37,70 +37,70 @@ namespace irr
                virtual ~CIrrDeviceWin32();\r
 \r
                //! runs the device. Returns false if device wants to be deleted\r
-               virtual bool run() _IRR_OVERRIDE_;\r
+               bool run() override;\r
 \r
                //! Cause the device to temporarily pause execution and let other processes to run\r
                // This should bring down processor usage without major performance loss for Irrlicht\r
-               virtual void yield() _IRR_OVERRIDE_;\r
+               void yield() override;\r
 \r
                //! Pause execution and let other processes to run for a specified amount of time.\r
-               virtual void sleep(u32 timeMs, bool pauseTimer) _IRR_OVERRIDE_;\r
+               void sleep(u32 timeMs, bool pauseTimer) override;\r
 \r
                //! sets the caption of the window\r
-               virtual void setWindowCaption(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setWindowCaption(const wchar_t* text) override;\r
 \r
                //! returns if window is active. if not, nothing need to be drawn\r
-               virtual bool isWindowActive() const _IRR_OVERRIDE_;\r
+               bool isWindowActive() const override;\r
 \r
                //! returns if window has focus\r
-               virtual bool isWindowFocused() const _IRR_OVERRIDE_;\r
+               bool isWindowFocused() const override;\r
 \r
                //! returns if window is minimized\r
-               virtual bool isWindowMinimized() const _IRR_OVERRIDE_;\r
+               bool isWindowMinimized() const override;\r
 \r
                //! presents a surface in the client area\r
-               virtual bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0) _IRR_OVERRIDE_;\r
+               bool present(video::IImage* surface, void* windowId=0, core::rect<s32>* src=0) override;\r
 \r
                //! notifies the device that it should close itself\r
-               virtual void closeDevice() _IRR_OVERRIDE_;\r
+               void closeDevice() override;\r
 \r
                //! Notifies the device, that it has been resized\r
                /** Must be publis as it is called from free function (event handler) */\r
                void OnResized();\r
 \r
                //! Sets if the window should be resizable in windowed mode.\r
-               virtual void setResizable(bool resize=false) _IRR_OVERRIDE_;\r
+               void setResizable(bool resize=false) override;\r
 \r
                //! Resize the render window.\r
-               virtual void setWindowSize(const irr::core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void setWindowSize(const irr::core::dimension2d<u32>& size) override;\r
 \r
                //! Minimizes the window.\r
-               virtual void minimizeWindow() _IRR_OVERRIDE_;\r
+               void minimizeWindow() override;\r
 \r
                //! Maximizes the window.\r
-               virtual void maximizeWindow() _IRR_OVERRIDE_;\r
+               void maximizeWindow() override;\r
 \r
                //! Restores the window size.\r
-               virtual void restoreWindow() _IRR_OVERRIDE_;\r
+               void restoreWindow() override;\r
 \r
                //! Get the position of the window on screen\r
-               virtual core::position2di getWindowPosition() _IRR_OVERRIDE_;\r
+               core::position2di getWindowPosition() override;\r
 \r
                //! Activate any joysticks, and generate events for them.\r
-               virtual bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) _IRR_OVERRIDE_;\r
+               bool activateJoysticks(core::array<SJoystickInfo> & joystickInfo) override;\r
 \r
                //! Remove all messages pending in the system message loop\r
-               virtual void clearSystemMessages() _IRR_OVERRIDE_;\r
+               void clearSystemMessages() override;\r
 \r
                //! Get the device type\r
-               virtual E_DEVICE_TYPE getType() const _IRR_OVERRIDE_\r
+               E_DEVICE_TYPE getType() const override\r
                {\r
                        return EIDT_WIN32;\r
                }\r
 \r
                //! Compares to the last call of this function to return double and triple clicks.\r
                //! \return Returns only 1,2 or 3. A 4th click will start with 1 again.\r
-               virtual u32 checkSuccessiveClicks(s32 mouseX, s32 mouseY, EMOUSE_INPUT_EVENT inputEvent ) _IRR_OVERRIDE_\r
+               u32 checkSuccessiveClicks(s32 mouseX, s32 mouseY, EMOUSE_INPUT_EVENT inputEvent ) override\r
                {\r
                        // we just have to make it public\r
                        return CIrrDeviceStub::checkSuccessiveClicks(mouseX, mouseY, inputEvent );\r
@@ -121,7 +121,7 @@ namespace irr
                        ~CCursorControl();\r
 \r
                        //! Changes the visible state of the mouse cursor.\r
-                       virtual void setVisible(bool visible) _IRR_OVERRIDE_\r
+                       void setVisible(bool visible) override\r
                        {\r
                                CURSORINFO info;\r
                                info.cbSize = sizeof(CURSORINFO);\r
@@ -167,19 +167,19 @@ namespace irr
                        }\r
 \r
                        //! Returns if the cursor is currently visible.\r
-                       virtual bool isVisible() const _IRR_OVERRIDE_\r
+                       bool isVisible() const override\r
                        {\r
                                return IsVisible;\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<f32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<f32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(f32 x, f32 y) _IRR_OVERRIDE_\r
+                       void setPosition(f32 x, f32 y) override\r
                        {\r
                                if (!UseReferenceRect)\r
                                        setPosition(core::round32(x*WindowSize.Width), core::round32(y*WindowSize.Height));\r
@@ -188,13 +188,13 @@ namespace irr
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(const core::position2d<s32> &pos) _IRR_OVERRIDE_\r
+                       void setPosition(const core::position2d<s32> &pos) override\r
                        {\r
                                setPosition(pos.X, pos.Y);\r
                        }\r
 \r
                        //! Sets the new position of the cursor.\r
-                       virtual void setPosition(s32 x, s32 y) _IRR_OVERRIDE_\r
+                       void setPosition(s32 x, s32 y) override\r
                        {\r
                                if (UseReferenceRect)\r
                                {\r
@@ -213,7 +213,7 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual const core::position2d<s32>& getPosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       const core::position2d<s32>& getPosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateInternalCursorPosition();\r
@@ -221,7 +221,7 @@ namespace irr
                        }\r
 \r
                        //! Returns the current position of the mouse cursor.\r
-                       virtual core::position2d<f32> getRelativePosition(bool updateCursor) _IRR_OVERRIDE_\r
+                       core::position2d<f32> getRelativePosition(bool updateCursor) override\r
                        {\r
                                if ( updateCursor )\r
                                        updateInternalCursorPosition();\r
@@ -237,7 +237,7 @@ namespace irr
                        }\r
 \r
                        //! Sets an absolute reference rect for calculating the cursor position.\r
-                       virtual void setReferenceRect(core::rect<s32>* rect=0) _IRR_OVERRIDE_\r
+                       void setReferenceRect(core::rect<s32>* rect=0) override\r
                        {\r
                                if (rect)\r
                                {\r
@@ -300,22 +300,22 @@ namespace irr
 \r
 \r
                        //! Sets the active cursor icon\r
-                       virtual void setActiveIcon(gui::ECURSOR_ICON iconId) _IRR_OVERRIDE_;\r
+                       void setActiveIcon(gui::ECURSOR_ICON iconId) override;\r
 \r
                        //! Gets the currently active icon\r
-                       virtual gui::ECURSOR_ICON getActiveIcon() const _IRR_OVERRIDE_\r
+                       gui::ECURSOR_ICON getActiveIcon() const override\r
                        {\r
                                return ActiveIcon;\r
                        }\r
 \r
                        //! Add a custom sprite as cursor icon.\r
-                       virtual gui::ECURSOR_ICON addIcon(const gui::SCursorSprite& icon) _IRR_OVERRIDE_;\r
+                       gui::ECURSOR_ICON addIcon(const gui::SCursorSprite& icon) override;\r
 \r
                        //! replace the given cursor icon.\r
-                       virtual void changeIcon(gui::ECURSOR_ICON iconId, const gui::SCursorSprite& icon) _IRR_OVERRIDE_;\r
+                       void changeIcon(gui::ECURSOR_ICON iconId, const gui::SCursorSprite& icon) override;\r
 \r
                        //! Return a system-specific size which is supported for cursors. Larger icons will fail, smaller icons might work.\r
-                       virtual core::dimension2di getSupportedIconSize() const _IRR_OVERRIDE_;\r
+                       core::dimension2di getSupportedIconSize() const override;\r
 \r
                        void update();\r
 \r
index 6a80e41066afd4c197018308fd4b5dee41f16a33..13ebf60b2f57845f130a552f19f00a422fec3f01 100644 (file)
@@ -24,42 +24,42 @@ namespace irr
                CIrrDeviceiOS(const SIrrlichtCreationParameters& params);\r
                virtual ~CIrrDeviceiOS();\r
 \r
-               virtual bool run() _IRR_OVERRIDE_;\r
-               virtual void yield() _IRR_OVERRIDE_;\r
-               virtual void sleep(u32 timeMs, bool pauseTimer) _IRR_OVERRIDE_;\r
+               bool run() override;\r
+               void yield() override;\r
+               void sleep(u32 timeMs, bool pauseTimer) override;\r
 \r
-               virtual void setWindowCaption(const wchar_t* text) _IRR_OVERRIDE_;\r
+               void setWindowCaption(const wchar_t* text) override;\r
 \r
-               virtual bool isWindowActive() const _IRR_OVERRIDE_;\r
-               virtual bool isWindowFocused() const _IRR_OVERRIDE_;\r
-               virtual bool isWindowMinimized() const _IRR_OVERRIDE_;\r
+               bool isWindowActive() const override;\r
+               bool isWindowFocused() const override;\r
+               bool isWindowMinimized() const override;\r
 \r
-               virtual bool present(video::IImage* surface, void * windowId = 0, core::rect<s32>* src = 0) _IRR_OVERRIDE_;\r
+               bool present(video::IImage* surface, void * windowId = 0, core::rect<s32>* src = 0) override;\r
 \r
-               virtual void closeDevice() _IRR_OVERRIDE_;\r
+               void closeDevice() override;\r
 \r
-               virtual void setResizable(bool resize = false) _IRR_OVERRIDE_;\r
+               void setResizable(bool resize = false) override;\r
 \r
-               virtual void minimizeWindow() _IRR_OVERRIDE_;\r
-               virtual void maximizeWindow() _IRR_OVERRIDE_;\r
-               virtual void restoreWindow() _IRR_OVERRIDE_;\r
+               void minimizeWindow() override;\r
+               void maximizeWindow() override;\r
+               void restoreWindow() override;\r
 \r
-               virtual core::position2di getWindowPosition() _IRR_OVERRIDE_;\r
+               core::position2di getWindowPosition() override;\r
 \r
-        virtual bool activateAccelerometer(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
-        virtual bool deactivateAccelerometer() _IRR_OVERRIDE_;\r
-        virtual bool isAccelerometerActive() _IRR_OVERRIDE_;\r
-        virtual bool isAccelerometerAvailable() _IRR_OVERRIDE_;\r
-        virtual bool activateGyroscope(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
-        virtual bool deactivateGyroscope() _IRR_OVERRIDE_;\r
-        virtual bool isGyroscopeActive() _IRR_OVERRIDE_;\r
-        virtual bool isGyroscopeAvailable() _IRR_OVERRIDE_;\r
-        virtual bool activateDeviceMotion(float updateInterval = 0.016666f) _IRR_OVERRIDE_;\r
-        virtual bool deactivateDeviceMotion() _IRR_OVERRIDE_;\r
-        virtual bool isDeviceMotionActive() _IRR_OVERRIDE_;\r
-        virtual bool isDeviceMotionAvailable() _IRR_OVERRIDE_;\r
+        bool activateAccelerometer(float updateInterval = 0.016666f) override;\r
+        bool deactivateAccelerometer() override;\r
+        bool isAccelerometerActive() override;\r
+        bool isAccelerometerAvailable() override;\r
+        bool activateGyroscope(float updateInterval = 0.016666f) override;\r
+        bool deactivateGyroscope() override;\r
+        bool isGyroscopeActive() override;\r
+        bool isGyroscopeAvailable() override;\r
+        bool activateDeviceMotion(float updateInterval = 0.016666f) override;\r
+        bool deactivateDeviceMotion() override;\r
+        bool isDeviceMotionActive() override;\r
+        bool isDeviceMotionAvailable() override;\r
 \r
-        virtual E_DEVICE_TYPE getType() const _IRR_OVERRIDE_;\r
+        E_DEVICE_TYPE getType() const override;\r
 \r
        private:\r
         void createWindow();\r
index d95511fe4473caf6350775867bf859f1119d6fb0..7a4c8d980fd154fcec7f134c387fa083df3eb7ff 100644 (file)
@@ -30,24 +30,24 @@ namespace io
                virtual ~CLimitReadFile();\r
 \r
                //! returns how much was read\r
-               virtual size_t read(void* buffer, size_t sizeToRead) _IRR_OVERRIDE_;\r
+               size_t read(void* buffer, size_t sizeToRead) override;\r
 \r
                //! changes position in file, returns true if successful\r
                //! if relativeMovement==true, the pos is changed relative to current pos,\r
                //! otherwise from begin of file\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! returns size of file\r
-               virtual long getSize() const _IRR_OVERRIDE_;\r
+               long getSize() const override;\r
 \r
                //! returns where in the file we are.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! returns name of file\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
                //! Get the type of the class implementing this interface\r
-               virtual EREAD_FILE_TYPE getType() const _IRR_OVERRIDE_\r
+               EREAD_FILE_TYPE getType() const override\r
                {\r
                        return ERFT_LIMIT_READ_FILE;\r
                }\r
index 2f58da66ee8f0f7ec65bdd10d5e2353c47125663..e697f5c7484b9c445bead2e3c58e7627bb4b2267 100644 (file)
@@ -21,25 +21,25 @@ public:
        CLogger(IEventReceiver* r);\r
 \r
        //! Returns the current set log level.\r
-       virtual ELOG_LEVEL getLogLevel() const _IRR_OVERRIDE_;\r
+       ELOG_LEVEL getLogLevel() const override;\r
 \r
-       //! Sets a new log level.       virtual void setLogLevel(ELOG_LEVEL ll) _IRR_OVERRIDE_;\r
-       virtual void setLogLevel(ELOG_LEVEL ll) _IRR_OVERRIDE_;\r
+       //! Sets a new log level.       void setLogLevel(ELOG_LEVEL ll) override;\r
+       void setLogLevel(ELOG_LEVEL ll) override;\r
 \r
        //! Prints out a text into the log\r
-       virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION) _IRR_OVERRIDE_;\r
+       void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
 \r
        //! Prints out a text into the log\r
-       virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION) _IRR_OVERRIDE_;\r
+       void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
 \r
        //! Prints out a text into the log\r
-       virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION) _IRR_OVERRIDE_;\r
+       void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
 \r
        //! Prints out a text into the log\r
-       virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) _IRR_OVERRIDE_;\r
+       void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
 \r
        //! Prints out a text into the log\r
-       virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) _IRR_OVERRIDE_;\r
+       void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
 \r
        //! Sets a new event receiver\r
        void setReceiver(IEventReceiver* r);\r
index b86c175ede241b96abba190a5dccf25beb259f0d..7afef1fc83fc564e6b0fbc1e799f2cf8da99e846 100644 (file)
@@ -29,28 +29,28 @@ namespace io
                virtual ~CMemoryReadFile();\r
 \r
                //! returns how much was read\r
-               virtual size_t read(void* buffer, size_t sizeToRead) _IRR_OVERRIDE_;\r
+               size_t read(void* buffer, size_t sizeToRead) override;\r
 \r
                //! changes position in file, returns true if successful\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! returns size of file\r
-               virtual long getSize() const _IRR_OVERRIDE_;\r
+               long getSize() const override;\r
 \r
                //! returns where in the file we are.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! returns name of file\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
                //! Get the type of the class implementing this interface\r
-               virtual EREAD_FILE_TYPE getType() const _IRR_OVERRIDE_\r
+               EREAD_FILE_TYPE getType() const override\r
                {\r
                        return ERFT_MEMORY_READ_FILE;\r
                }\r
 \r
                //! Get direct access to internal buffer\r
-               virtual const void *getBuffer() const _IRR_OVERRIDE_\r
+               const void *getBuffer() const override\r
                {\r
                        return Buffer;\r
                }\r
@@ -78,18 +78,18 @@ namespace io
                virtual ~CMemoryWriteFile();\r
 \r
                //! returns how much was written\r
-               virtual size_t write(const void* buffer, size_t sizeToWrite) _IRR_OVERRIDE_;\r
+               size_t write(const void* buffer, size_t sizeToWrite) override;\r
 \r
                //! changes position in file, returns true if successful\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! returns where in the file we are.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! returns name of file\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
-               virtual bool flush() _IRR_OVERRIDE_;\r
+               bool flush() override;\r
 \r
        private:\r
 \r
index 839a4ab7b35a587cc0ecae56c6b9511b06109441..5ac76a24de029328e6cd414d3f10e257ab4220d1 100644 (file)
@@ -30,42 +30,42 @@ namespace scene
                \param filename: Filename of the mesh. When called ISceneManager::getMesh() with this\r
                parameter, the method will return the mesh parameter given with this method.\r
                \param mesh: Pointer to a mesh which will now be referenced by this name. */\r
-               virtual void addMesh(const io::path& filename, IAnimatedMesh* mesh) _IRR_OVERRIDE_;\r
+               void addMesh(const io::path& filename, IAnimatedMesh* mesh) override;\r
 \r
                //! Removes a mesh from the cache.\r
                /** After loading a mesh with getMesh(), the mesh can be removed from the cache\r
                using this method, freeing a lot of memory. */\r
-               virtual void removeMesh(const IMesh* const mesh) _IRR_OVERRIDE_;\r
+               void removeMesh(const IMesh* const mesh) override;\r
 \r
                //! Returns amount of loaded meshes in the cache.\r
                /** You can load new meshes into the cache using getMesh() and addMesh().\r
                If you ever need to access the internal mesh cache, you can do this using\r
                removeMesh(), getMeshNumber(), getMeshByIndex() and getMeshFilename() */\r
-               virtual u32 getMeshCount() const _IRR_OVERRIDE_;\r
+               u32 getMeshCount() const override;\r
 \r
                //! Returns current index number of the mesh, and -1 if it is not in the cache.\r
-               virtual s32 getMeshIndex(const IMesh* const mesh) const _IRR_OVERRIDE_;\r
+               s32 getMeshIndex(const IMesh* const mesh) const override;\r
 \r
                //! Returns a mesh based on its index number.\r
                /** \param index: Index of the mesh, number between 0 and getMeshCount()-1.\r
                Note that this number is only valid until a new mesh is loaded or removed *\r
                \return Returns pointer to the mesh or 0 if there is none with this number. */\r
-               virtual IAnimatedMesh* getMeshByIndex(u32 index) _IRR_OVERRIDE_;\r
+               IAnimatedMesh* getMeshByIndex(u32 index) override;\r
 \r
                //! Returns a mesh based on its name.\r
                /** \param name Name of the mesh. Usually a filename.\r
                \return Pointer to the mesh or 0 if there is none with this number. */\r
-               virtual IAnimatedMesh* getMeshByName(const io::path& name) _IRR_OVERRIDE_;\r
+               IAnimatedMesh* getMeshByName(const io::path& name) override;\r
 \r
                //! Get the name of a loaded mesh, based on its index.\r
                /** \param index: Index of the mesh, number between 0 and getMeshCount()-1.\r
                \return The name if mesh was found and has a name, else the path is empty. */\r
-               virtual const io::SNamedPath& getMeshName(u32 index) const _IRR_OVERRIDE_;\r
+               const io::SNamedPath& getMeshName(u32 index) const override;\r
 \r
                //! Get the name of a loaded mesh, if there is any.\r
                /** \param mesh Pointer to mesh to query.\r
                \return The name if mesh was found and has a name, else the path is empty. */\r
-               virtual const io::SNamedPath& getMeshName(const IMesh* const mesh) const _IRR_OVERRIDE_;\r
+               const io::SNamedPath& getMeshName(const IMesh* const mesh) const override;\r
 \r
                //! Renames a loaded mesh.\r
                /** Note that renaming meshes might change the ordering of the\r
@@ -74,7 +74,7 @@ namespace scene
                \param index The index of the mesh in the cache.\r
                \param name New name for the mesh.\r
                \return True if mesh was renamed. */\r
-               virtual bool renameMesh(u32 index, const io::path& name) _IRR_OVERRIDE_;\r
+               bool renameMesh(u32 index, const io::path& name) override;\r
 \r
                //! Renames a loaded mesh.\r
                /** Note that renaming meshes might change the ordering of the\r
@@ -83,16 +83,16 @@ namespace scene
                \param mesh Mesh to be renamed.\r
                \param name New name for the mesh.\r
                \return True if mesh was renamed. */\r
-               virtual bool renameMesh(const IMesh* const mesh, const io::path& name) _IRR_OVERRIDE_;\r
+               bool renameMesh(const IMesh* const mesh, const io::path& name) override;\r
 \r
                //! returns if a mesh already was loaded\r
-               virtual bool isMeshLoaded(const io::path& name) _IRR_OVERRIDE_;\r
+               bool isMeshLoaded(const io::path& name) override;\r
 \r
                //! Clears the whole mesh cache, removing all meshes.\r
-               virtual void clear() _IRR_OVERRIDE_;\r
+               void clear() override;\r
 \r
                //! Clears all meshes that are held in the mesh cache but not used anywhere else.\r
-               virtual void clearUnusedMeshes() _IRR_OVERRIDE_;\r
+               void clearUnusedMeshes() override;\r
 \r
        protected:\r
 \r
index eb17d8bceff21743ef5c2cb37a275357510570be..3b7455e8559e5dfd1da0b3cd02a584b955eae44d 100644 (file)
@@ -23,24 +23,24 @@ public:
        //! Recalculates all normals of the mesh.\r
        /** \param mesh: Mesh on which the operation is performed.\r
        \param smooth: Whether to use smoothed normals. */\r
-       virtual void recalculateNormals(scene::IMesh* mesh, bool smooth = false, bool angleWeighted = false) const _IRR_OVERRIDE_;\r
+       void recalculateNormals(scene::IMesh* mesh, bool smooth = false, bool angleWeighted = false) const override;\r
 \r
        //! Recalculates all normals of the mesh buffer.\r
        /** \param buffer: Mesh buffer on which the operation is performed.\r
        \param smooth: Whether to use smoothed normals. */\r
-       virtual void recalculateNormals(IMeshBuffer* buffer, bool smooth = false, bool angleWeighted = false) const _IRR_OVERRIDE_;\r
+       void recalculateNormals(IMeshBuffer* buffer, bool smooth = false, bool angleWeighted = false) const override;\r
 \r
        //! Clones a static IMesh into a modifiable SMesh.\r
-       virtual SMesh* createMeshCopy(scene::IMesh* mesh) const _IRR_OVERRIDE_;\r
+       SMesh* createMeshCopy(scene::IMesh* mesh) const override;\r
 \r
        //! Returns amount of polygons in mesh.\r
-       virtual s32 getPolyCount(scene::IMesh* mesh) const _IRR_OVERRIDE_;\r
+       s32 getPolyCount(scene::IMesh* mesh) const override;\r
 \r
        //! Returns amount of polygons in mesh.\r
-       virtual s32 getPolyCount(scene::IAnimatedMesh* mesh) const _IRR_OVERRIDE_;\r
+       s32 getPolyCount(scene::IAnimatedMesh* mesh) const override;\r
 \r
        //! create a new AnimatedMesh and adds the mesh to it\r
-       virtual IAnimatedMesh * createAnimatedMesh(scene::IMesh* mesh,scene::E_ANIMATED_MESH_TYPE type) const _IRR_OVERRIDE_;\r
+       IAnimatedMesh * createAnimatedMesh(scene::IMesh* mesh,scene::E_ANIMATED_MESH_TYPE type) const override;\r
 };\r
 \r
 } // end namespace scene\r
index 99e1da3499426faadd21ab5ab769c2b5d18e7302..521744521be5087bf9168d49edb33c1f92b77ff3 100644 (file)
@@ -27,48 +27,48 @@ namespace scene
                virtual ~CMeshSceneNode();\r
 \r
                //! frame\r
-               virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;\r
+               void OnRegisterSceneNode() override;\r
 \r
                //! renders the node.\r
-               virtual void render() _IRR_OVERRIDE_;\r
+               void render() override;\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! returns the material based on the zero based index i. To get the amount\r
                //! of materials used by this scene node, use getMaterialCount().\r
                //! This function is needed for inserting the node into the scene hierarchy on a\r
                //! optimal position for minimizing renderstate changes, but can also be used\r
                //! to directly modify the material of a scene node.\r
-               virtual video::SMaterial& getMaterial(u32 i) _IRR_OVERRIDE_;\r
+               video::SMaterial& getMaterial(u32 i) override;\r
 \r
                //! returns amount of materials used by this scene node.\r
-               virtual u32 getMaterialCount() const _IRR_OVERRIDE_;\r
+               u32 getMaterialCount() const override;\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_MESH; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_MESH; }\r
 \r
                //! Sets a new mesh\r
-               virtual void setMesh(IMesh* mesh) _IRR_OVERRIDE_;\r
+               void setMesh(IMesh* mesh) override;\r
 \r
                //! Returns the current mesh\r
-               virtual IMesh* getMesh(void) _IRR_OVERRIDE_ { return Mesh; }\r
+               IMesh* getMesh(void) override { return Mesh; }\r
 \r
                //! Sets if the scene node should not copy the materials of the mesh but use them in a read only style.\r
                /* In this way it is possible to change the materials a mesh causing all mesh scene nodes\r
                referencing this mesh to change too. */\r
-               virtual void setReadOnlyMaterials(bool readonly) _IRR_OVERRIDE_;\r
+               void setReadOnlyMaterials(bool readonly) override;\r
 \r
                //! Returns if the scene node should not copy the materials of the mesh but use them in a read only style\r
-               virtual bool isReadOnlyMaterials() const _IRR_OVERRIDE_;\r
+               bool isReadOnlyMaterials() const override;\r
 \r
                //! Creates a clone of this scene node and its children.\r
-               virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;\r
+               ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;\r
 \r
                //! Removes a child from this scene node.\r
                //! Implemented here, to be able to remove the shadow properly, if there is one,\r
                //! or to remove attached child.\r
-               virtual bool removeChild(ISceneNode* child) _IRR_OVERRIDE_;\r
+               bool removeChild(ISceneNode* child) override;\r
 \r
        protected:\r
 \r
index b33825f2ec94b7daf84eb082d398491842b2ac27..efe0b4219f8ef323032155e1a47f4c6983995f0f 100644 (file)
@@ -31,34 +31,34 @@ namespace video
                ~CNSOGLManager();\r
 \r
         // Initialize\r
-        bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) _IRR_OVERRIDE_;\r
+        bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) override;\r
 \r
         // Terminate\r
-        void terminate() _IRR_OVERRIDE_;\r
+        void terminate() override;\r
 \r
         // Create surface.\r
-        bool generateSurface() _IRR_OVERRIDE_;\r
+        bool generateSurface() override;\r
 \r
         // Destroy surface.\r
-        void destroySurface() _IRR_OVERRIDE_;\r
+        void destroySurface() override;\r
 \r
         // Create context.\r
-        bool generateContext() _IRR_OVERRIDE_;\r
+        bool generateContext() override;\r
 \r
         // Destroy EGL context.\r
-        void destroyContext() _IRR_OVERRIDE_;\r
+        void destroyContext() override;\r
 \r
                //! Get current context\r
                const SExposedVideoData& getContext() const;\r
 \r
                //! Change render context, disable old and activate new defined by videoData\r
-               bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) _IRR_OVERRIDE_;\r
+               bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) override;\r
 \r
                // Get procedure address.\r
-               virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;\r
+               void* getProcAddress(const std::string &procName) override;\r
 \r
         // Swap buffers.\r
-        bool swapBuffers() _IRR_OVERRIDE_;\r
+        bool swapBuffers() override;\r
 \r
     private:\r
         SIrrlichtCreationParameters Params;\r
index d73f96eab55ec036a07a96b87381b26d6f960686..81993085291a963876ae750388baf35ccf1616d7 100644 (file)
@@ -44,99 +44,99 @@ namespace video
                virtual ~CNullDriver();\r
 \r
                virtual bool beginScene(u16 clearFlag, SColor clearColor = SColor(255,0,0,0), f32 clearDepth = 1.f, u8 clearStencil = 0,\r
-                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) _IRR_OVERRIDE_;\r
+                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) override;\r
 \r
-               virtual bool endScene() _IRR_OVERRIDE_;\r
+               bool endScene() override;\r
 \r
                //! Disable a feature of the driver.\r
-               virtual void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true) _IRR_OVERRIDE_;\r
+               void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true) override;\r
 \r
                //! queries the features of the driver, returns true if feature is available\r
-               virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const _IRR_OVERRIDE_;\r
+               bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const override;\r
 \r
                //! Get attributes of the actual video driver\r
-               virtual const io::IAttributes& getDriverAttributes() const _IRR_OVERRIDE_;\r
+               const io::IAttributes& getDriverAttributes() const override;\r
 \r
                //! sets transformation\r
-               virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) _IRR_OVERRIDE_;\r
+               void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) override;\r
 \r
                //! Retrieve the number of image loaders\r
-               virtual u32 getImageLoaderCount() const _IRR_OVERRIDE_;\r
+               u32 getImageLoaderCount() const override;\r
 \r
                //! Retrieve the given image loader\r
-               virtual IImageLoader* getImageLoader(u32 n) _IRR_OVERRIDE_;\r
+               IImageLoader* getImageLoader(u32 n) override;\r
 \r
                //! Retrieve the number of image writers\r
-               virtual u32 getImageWriterCount() const _IRR_OVERRIDE_;\r
+               u32 getImageWriterCount() const override;\r
 \r
                //! Retrieve the given image writer\r
-               virtual IImageWriter* getImageWriter(u32 n) _IRR_OVERRIDE_;\r
+               IImageWriter* getImageWriter(u32 n) override;\r
 \r
                //! sets a material\r
-               virtual void setMaterial(const SMaterial& material) _IRR_OVERRIDE_;\r
+               void setMaterial(const SMaterial& material) override;\r
 \r
                //! loads a Texture\r
-               virtual ITexture* getTexture(const io::path& filename) _IRR_OVERRIDE_;\r
+               ITexture* getTexture(const io::path& filename) override;\r
 \r
                //! loads a Texture\r
-               virtual ITexture* getTexture(io::IReadFile* file) _IRR_OVERRIDE_;\r
+               ITexture* getTexture(io::IReadFile* file) override;\r
 \r
                //! Returns a texture by index\r
-               virtual ITexture* getTextureByIndex(u32 index) _IRR_OVERRIDE_;\r
+               ITexture* getTextureByIndex(u32 index) override;\r
 \r
                //! Returns amount of textures currently loaded\r
-               virtual u32 getTextureCount() const _IRR_OVERRIDE_;\r
+               u32 getTextureCount() const override;\r
 \r
                //! Renames a texture\r
-               virtual void renameTexture(ITexture* texture, const io::path& newName) _IRR_OVERRIDE_;\r
+               void renameTexture(ITexture* texture, const io::path& newName) override;\r
 \r
-               virtual ITexture* addTexture(const core::dimension2d<u32>& size, const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) _IRR_OVERRIDE_;\r
+               ITexture* addTexture(const core::dimension2d<u32>& size, const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) override;\r
 \r
-               virtual ITexture* addTexture(const io::path& name, IImage* image) _IRR_OVERRIDE_;\r
+               ITexture* addTexture(const io::path& name, IImage* image) override;\r
 \r
                virtual ITexture* addTextureCubemap(const io::path& name, IImage* imagePosX, IImage* imageNegX, IImage* imagePosY,\r
-                       IImage* imageNegY, IImage* imagePosZ, IImage* imageNegZ) _IRR_OVERRIDE_;\r
+                       IImage* imageNegY, IImage* imagePosZ, IImage* imageNegZ) override;\r
 \r
-               virtual ITexture* addTextureCubemap(const irr::u32 sideLen, const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) _IRR_OVERRIDE_;\r
+               ITexture* addTextureCubemap(const irr::u32 sideLen, const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) override;\r
 \r
                virtual bool setRenderTargetEx(IRenderTarget* target, u16 clearFlag, SColor clearColor = SColor(255,0,0,0),\r
-                       f32 clearDepth = 1.f, u8 clearStencil = 0) _IRR_OVERRIDE_;\r
+                       f32 clearDepth = 1.f, u8 clearStencil = 0) override;\r
 \r
                virtual bool setRenderTarget(ITexture* texture, u16 clearFlag, SColor clearColor = SColor(255,0,0,0),\r
-                       f32 clearDepth = 1.f, u8 clearStencil = 0) _IRR_OVERRIDE_;\r
+                       f32 clearDepth = 1.f, u8 clearStencil = 0) override;\r
 \r
                //! sets a viewport\r
-               virtual void setViewPort(const core::rect<s32>& area) _IRR_OVERRIDE_;\r
+               void setViewPort(const core::rect<s32>& area) override;\r
 \r
                //! gets the area of the current viewport\r
-               virtual const core::rect<s32>& getViewPort() const _IRR_OVERRIDE_;\r
+               const core::rect<s32>& getViewPort() const override;\r
 \r
                //! draws a vertex primitive list\r
                virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
                                E_VERTEX_TYPE vType=EVT_STANDARD, scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES,\r
-                               E_INDEX_TYPE iType=EIT_16BIT) _IRR_OVERRIDE_;\r
+                               E_INDEX_TYPE iType=EIT_16BIT) override;\r
 \r
                //! draws a vertex primitive list in 2d\r
                virtual void draw2DVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
                                E_VERTEX_TYPE vType=EVT_STANDARD, scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES,\r
-                               E_INDEX_TYPE iType=EIT_16BIT) _IRR_OVERRIDE_;\r
+                               E_INDEX_TYPE iType=EIT_16BIT) override;\r
 \r
                //! Draws a 3d line.\r
                virtual void draw3DLine(const core::vector3df& start,\r
-                       const core::vector3df& end, SColor color = SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                       const core::vector3df& end, SColor color = SColor(255,255,255,255)) override;\r
 \r
                //! Draws a 3d triangle.\r
                virtual void draw3DTriangle(const core::triangle3df& triangle,\r
-                       SColor color = SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                       SColor color = SColor(255,255,255,255)) override;\r
 \r
                //! Draws a 3d axis aligned box.\r
                virtual void draw3DBox(const core::aabbox3d<f32>& box,\r
-                       SColor color = SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                       SColor color = SColor(255,255,255,255)) override;\r
 \r
                //! draws an 2d image\r
-               virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos, bool useAlphaChannelOfTexture) _IRR_OVERRIDE_;\r
+               void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos, bool useAlphaChannelOfTexture) override;\r
 \r
                //! draws a set of 2d images, using a color and the alpha\r
                /** channel of the texture if desired. The images are drawn\r
@@ -162,7 +162,7 @@ namespace video
                                s32 kerningWidth = 0,\r
                                const core::rect<s32>* clipRect = 0,\r
                                SColor color=SColor(255,255,255,255),\r
-                               bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! Draws a set of 2d images, using a color and the alpha channel of the texture.\r
                /** All drawings are clipped against clipRect (if != 0).\r
@@ -185,92 +185,92 @@ namespace video
                                const core::array<core::rect<s32> >& sourceRects,\r
                                const core::rect<s32>* clipRect=0,\r
                                SColor color=SColor(255,255,255,255),\r
-                               bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! Draws a 2d image, using a color (if color is other then Color(255,255,255,255)) and the alpha channel of the texture if wanted.\r
                virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                       SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! Draws a part of the texture into the rectangle.\r
                virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       const video::SColor* const colors=0, bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                       const video::SColor* const colors=0, bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! Draws a 2d rectangle\r
-               virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos, const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+               void draw2DRectangle(SColor color, const core::rect<s32>& pos, const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws a 2d rectangle with a gradient.\r
                virtual void draw2DRectangle(const core::rect<s32>& pos,\r
                        SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown,\r
-                       const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws the outline of a 2d rectangle\r
-               virtual void draw2DRectangleOutline(const core::recti& pos, SColor color=SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+               void draw2DRectangleOutline(const core::recti& pos, SColor color=SColor(255,255,255,255)) override;\r
 \r
                //! Draws a 2d line.\r
                virtual void draw2DLine(const core::position2d<s32>& start,\r
                                        const core::position2d<s32>& end,\r
-                                       SColor color=SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                                       SColor color=SColor(255,255,255,255)) override;\r
 \r
                //! Draws a pixel\r
-               virtual void drawPixel(u32 x, u32 y, const SColor & color) _IRR_OVERRIDE_;\r
+               void drawPixel(u32 x, u32 y, const SColor & color) override;\r
 \r
                //! Draws a non filled concyclic reqular 2d polygon.\r
                virtual void draw2DPolygon(core::position2d<s32> center,\r
-                       f32 radius, video::SColor Color, s32 vertexCount) _IRR_OVERRIDE_;\r
+                       f32 radius, video::SColor Color, s32 vertexCount) override;\r
 \r
                virtual void setFog(SColor color=SColor(0,255,255,255),\r
                                E_FOG_TYPE fogType=EFT_FOG_LINEAR,\r
                                f32 start=50.0f, f32 end=100.0f, f32 density=0.01f,\r
-                               bool pixelFog=false, bool rangeFog=false) _IRR_OVERRIDE_;\r
+                               bool pixelFog=false, bool rangeFog=false) override;\r
 \r
                virtual void getFog(SColor& color, E_FOG_TYPE& fogType,\r
                                f32& start, f32& end, f32& density,\r
-                               bool& pixelFog, bool& rangeFog) _IRR_OVERRIDE_;\r
+                               bool& pixelFog, bool& rangeFog) override;\r
 \r
                //! get color format of the current color buffer\r
-               virtual ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! get screen size\r
-               virtual const core::dimension2d<u32>& getScreenSize() const _IRR_OVERRIDE_;\r
+               const core::dimension2d<u32>& getScreenSize() const override;\r
 \r
                //! get current render target\r
                IRenderTarget* getCurrentRenderTarget() const;\r
 \r
                //! get render target size\r
-               virtual const core::dimension2d<u32>& getCurrentRenderTargetSize() const _IRR_OVERRIDE_;\r
+               const core::dimension2d<u32>& getCurrentRenderTargetSize() const override;\r
 \r
                // get current frames per second value\r
-               virtual s32 getFPS() const _IRR_OVERRIDE_;\r
+               s32 getFPS() const override;\r
 \r
                //! returns amount of primitives (mostly triangles) were drawn in the last frame.\r
                //! very useful method for statistics.\r
-               virtual u32 getPrimitiveCountDrawn( u32 param = 0 ) const _IRR_OVERRIDE_;\r
+               u32 getPrimitiveCountDrawn( u32 param = 0 ) const override;\r
 \r
                //! \return Returns the name of the video driver. Example: In case of the DIRECT3D8\r
                //! driver, it would return "Direct3D8.1".\r
-               virtual const wchar_t* getName() const _IRR_OVERRIDE_;\r
+               const wchar_t* getName() const override;\r
 \r
                //! Sets the dynamic ambient light color. The default color is\r
                //! (0,0,0,0) which means it is dark.\r
                //! \param color: New color of the ambient light.\r
-               virtual void setAmbientLight(const SColorf& color) _IRR_OVERRIDE_;\r
+               void setAmbientLight(const SColorf& color) override;\r
 \r
                //! Get the global ambient light currently used by the driver\r
-               virtual const SColorf& getAmbientLight() const _IRR_OVERRIDE_;\r
+               const SColorf& getAmbientLight() const override;\r
 \r
                //! Adds an external image loader to the engine.\r
-               virtual void addExternalImageLoader(IImageLoader* loader) _IRR_OVERRIDE_;\r
+               void addExternalImageLoader(IImageLoader* loader) override;\r
 \r
                //! Adds an external image writer to the engine.\r
-               virtual void addExternalImageWriter(IImageWriter* writer) _IRR_OVERRIDE_;\r
+               void addExternalImageWriter(IImageWriter* writer) override;\r
 \r
                //! Draws a shadow volume into the stencil buffer. To draw a stencil shadow, do\r
                //! this: First, draw all geometry. Then use this method, to draw the shadow\r
                //! volume. Then, use IVideoDriver::drawStencilShadow() to visualize the shadow.\r
                virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles,\r
-                       bool zfail=true, u32 debugDataVisible=0) _IRR_OVERRIDE_;\r
+                       bool zfail=true, u32 debugDataVisible=0) override;\r
 \r
                //! Fills the stencil shadow with color. After the shadow volume has been drawn\r
                //! into the stencil buffer using IVideoDriver::drawStencilShadowVolume(), use this\r
@@ -279,46 +279,46 @@ namespace video
                        video::SColor leftUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor rightUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor leftDownEdge = video::SColor(0,0,0,0),\r
-                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) _IRR_OVERRIDE_;\r
+                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) override;\r
 \r
 \r
                //! Removes a texture from the texture cache and deletes it, freeing lot of\r
                //! memory.\r
-               virtual void removeTexture(ITexture* texture) _IRR_OVERRIDE_;\r
+               void removeTexture(ITexture* texture) override;\r
 \r
                //! Removes all texture from the texture cache and deletes them, freeing lot of\r
                //! memory.\r
-               virtual void removeAllTextures() _IRR_OVERRIDE_;\r
+               void removeAllTextures() override;\r
 \r
                //! Creates a render target texture.\r
                virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,\r
-                       const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) _IRR_OVERRIDE_;\r
+                       const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) override;\r
 \r
                //! Creates a render target texture for a cubemap\r
                ITexture* addRenderTargetTextureCubemap(const irr::u32 sideLen,\r
-                               const io::path& name, const ECOLOR_FORMAT format) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format) override;\r
 \r
                //! Creates an 1bit alpha channel of the texture based of an color key.\r
-               virtual void makeColorKeyTexture(video::ITexture* texture, video::SColor color, bool zeroTexels) const _IRR_OVERRIDE_;\r
+               void makeColorKeyTexture(video::ITexture* texture, video::SColor color, bool zeroTexels) const override;\r
 \r
                //! Creates an 1bit alpha channel of the texture based of an color key position.\r
                virtual void makeColorKeyTexture(video::ITexture* texture, core::position2d<s32> colorKeyPixelPos,\r
-                       bool zeroTexels) const _IRR_OVERRIDE_;\r
+                       bool zeroTexels) const override;\r
 \r
                //! Returns the maximum amount of primitives (mostly vertices) which\r
                //! the device is able to render with one drawIndexedTriangleList\r
                //! call.\r
-               virtual u32 getMaximalPrimitiveCount() const _IRR_OVERRIDE_;\r
+               u32 getMaximalPrimitiveCount() const override;\r
 \r
                //! Enables or disables a texture creation flag.\r
-               virtual void setTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag, bool enabled) _IRR_OVERRIDE_;\r
+               void setTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag, bool enabled) override;\r
 \r
                //! Returns if a texture creation flag is enabled or disabled.\r
-               virtual bool getTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag) const _IRR_OVERRIDE_;\r
+               bool getTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag) const override;\r
 \r
-               virtual core::array<IImage*> createImagesFromFile(const io::path& filename, E_TEXTURE_TYPE* type = 0) _IRR_OVERRIDE_;\r
+               core::array<IImage*> createImagesFromFile(const io::path& filename, E_TEXTURE_TYPE* type = 0) override;\r
 \r
-               virtual core::array<IImage*> createImagesFromFile(io::IReadFile* file, E_TEXTURE_TYPE* type = 0) _IRR_OVERRIDE_;\r
+               core::array<IImage*> createImagesFromFile(io::IReadFile* file, E_TEXTURE_TYPE* type = 0) override;\r
 \r
                //! Creates a software image from a byte array.\r
                /** \param useForeignMemory: If true, the image will use the data pointer\r
@@ -326,33 +326,33 @@ namespace video
                data when the image will be destructed. If false, the memory will by copied. */\r
                virtual IImage* createImageFromData(ECOLOR_FORMAT format,\r
                        const core::dimension2d<u32>& size, void *data, bool ownForeignMemory = false,\r
-                       bool deleteMemory = true) _IRR_OVERRIDE_;\r
+                       bool deleteMemory = true) override;\r
 \r
                //! Creates an empty software image.\r
-               virtual IImage* createImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               IImage* createImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size) override;\r
 \r
                //! Creates a software image from another image.\r
-               virtual IImage* createImage(ECOLOR_FORMAT format, IImage *imageToCopy) _IRR_OVERRIDE_;\r
+               IImage* createImage(ECOLOR_FORMAT format, IImage *imageToCopy) override;\r
 \r
                //! Creates a software image from part of another image.\r
                virtual IImage* createImage(IImage* imageToCopy,\r
                                const core::position2d<s32>& pos,\r
-                               const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+                               const core::dimension2d<u32>& size) override;\r
 \r
                //! Creates a software image from part of a texture.\r
                virtual IImage* createImage(ITexture* texture,\r
                                const core::position2d<s32>& pos,\r
-                               const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+                               const core::dimension2d<u32>& size) override;\r
 \r
                //! Draws a mesh buffer\r
-               virtual void drawMeshBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               void drawMeshBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                //! Draws the normals of a mesh buffer\r
                virtual void drawMeshBufferNormals(const scene::IMeshBuffer* mb, f32 length=10.f,\r
-                       SColor color=0xffffffff) _IRR_OVERRIDE_;\r
+                       SColor color=0xffffffff) override;\r
 \r
                //! Check if the driver supports creating textures with the given color format\r
-               virtual bool queryTextureFormat(ECOLOR_FORMAT format) const _IRR_OVERRIDE_\r
+               bool queryTextureFormat(ECOLOR_FORMAT format) const override\r
                {\r
                        return false;\r
                }\r
@@ -404,10 +404,10 @@ namespace video
 \r
        public:\r
                //! Remove hardware buffer\r
-               virtual void removeHardwareBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               void removeHardwareBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                //! Remove all hardware buffers\r
-               virtual void removeAllHardwareBuffers() _IRR_OVERRIDE_;\r
+               void removeAllHardwareBuffers() override;\r
 \r
                //! Update all hardware buffers, remove unused ones\r
                virtual void updateAllHardwareBuffers();\r
@@ -418,68 +418,68 @@ namespace video
                //! Create occlusion query.\r
                /** Use node for identification and mesh for occlusion test. */\r
                virtual void addOcclusionQuery(scene::ISceneNode* node,\r
-                               const scene::IMesh* mesh=0) _IRR_OVERRIDE_;\r
+                               const scene::IMesh* mesh=0) override;\r
 \r
                //! Remove occlusion query.\r
-               virtual void removeOcclusionQuery(scene::ISceneNode* node) _IRR_OVERRIDE_;\r
+               void removeOcclusionQuery(scene::ISceneNode* node) override;\r
 \r
                //! Remove all occlusion queries.\r
-               virtual void removeAllOcclusionQueries() _IRR_OVERRIDE_;\r
+               void removeAllOcclusionQueries() override;\r
 \r
                //! Run occlusion query. Draws mesh stored in query.\r
                /** If the mesh shall not be rendered visible, use\r
                overrideMaterial to disable the color and depth buffer. */\r
-               virtual void runOcclusionQuery(scene::ISceneNode* node, bool visible=false) _IRR_OVERRIDE_;\r
+               void runOcclusionQuery(scene::ISceneNode* node, bool visible=false) override;\r
 \r
                //! Run all occlusion queries. Draws all meshes stored in queries.\r
                /** If the meshes shall not be rendered visible, use\r
                overrideMaterial to disable the color and depth buffer. */\r
-               virtual void runAllOcclusionQueries(bool visible=false) _IRR_OVERRIDE_;\r
+               void runAllOcclusionQueries(bool visible=false) override;\r
 \r
                //! Update occlusion query. Retrieves results from GPU.\r
                /** If the query shall not block, set the flag to false.\r
                Update might not occur in this case, though */\r
-               virtual void updateOcclusionQuery(scene::ISceneNode* node, bool block=true) _IRR_OVERRIDE_;\r
+               void updateOcclusionQuery(scene::ISceneNode* node, bool block=true) override;\r
 \r
                //! Update all occlusion queries. Retrieves results from GPU.\r
                /** If the query shall not block, set the flag to false.\r
                Update might not occur in this case, though */\r
-               virtual void updateAllOcclusionQueries(bool block=true) _IRR_OVERRIDE_;\r
+               void updateAllOcclusionQueries(bool block=true) override;\r
 \r
                //! Return query result.\r
                /** Return value is the number of visible pixels/fragments.\r
                The value is a safe approximation, i.e. can be larger than the\r
                actual value of pixels. */\r
-               virtual u32 getOcclusionQueryResult(scene::ISceneNode* node) const _IRR_OVERRIDE_;\r
+               u32 getOcclusionQueryResult(scene::ISceneNode* node) const override;\r
 \r
                //! Create render target.\r
-               virtual IRenderTarget* addRenderTarget() _IRR_OVERRIDE_;\r
+               IRenderTarget* addRenderTarget() override;\r
 \r
                //! Remove render target.\r
-               virtual void removeRenderTarget(IRenderTarget* renderTarget) _IRR_OVERRIDE_;\r
+               void removeRenderTarget(IRenderTarget* renderTarget) override;\r
 \r
                //! Remove all render targets.\r
-               virtual void removeAllRenderTargets() _IRR_OVERRIDE_;\r
+               void removeAllRenderTargets() override;\r
 \r
                //! Only used by the engine internally.\r
                /** Used to notify the driver that the window was resized. */\r
-               virtual void OnResize(const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void OnResize(const core::dimension2d<u32>& size) override;\r
 \r
                //! Adds a new material renderer to the video device.\r
                virtual s32 addMaterialRenderer(IMaterialRenderer* renderer,\r
-                               const char* name = 0) _IRR_OVERRIDE_;\r
+                               const char* name = 0) override;\r
 \r
                //! Returns driver and operating system specific data about the IVideoDriver.\r
-               virtual const SExposedVideoData& getExposedVideoData() _IRR_OVERRIDE_;\r
+               const SExposedVideoData& getExposedVideoData() override;\r
 \r
                //! Returns type of video driver\r
-               virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_;\r
+               E_DRIVER_TYPE getDriverType() const override;\r
 \r
                //! Returns the transformation set by setTransform\r
-               virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const _IRR_OVERRIDE_;\r
+               const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const override;\r
 \r
                //! Returns pointer to the IGPUProgrammingServices interface.\r
-               virtual IGPUProgrammingServices* getGPUProgrammingServices() _IRR_OVERRIDE_;\r
+               IGPUProgrammingServices* getGPUProgrammingServices() override;\r
 \r
                //! Adds a new material renderer to the VideoDriver, using pixel and/or\r
                //! vertex shaders to render geometry.\r
@@ -487,7 +487,7 @@ namespace video
                        const c8* pixelShaderProgram = 0,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData=0) _IRR_OVERRIDE_;\r
+                       s32 userData=0) override;\r
 \r
                //! Like IGPUProgrammingServices::addShaderMaterial(), but tries to load the\r
                //! programs from files.\r
@@ -495,7 +495,7 @@ namespace video
                        io::IReadFile* pixelShaderProgram = 0,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData=0) _IRR_OVERRIDE_;\r
+                       s32 userData=0) override;\r
 \r
                //! Like IGPUProgrammingServices::addShaderMaterial(), but tries to load the\r
                //! programs from files.\r
@@ -503,16 +503,16 @@ namespace video
                        const io::path& pixelShaderProgramFileName,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData=0) _IRR_OVERRIDE_;\r
+                       s32 userData=0) override;\r
 \r
                //! Returns pointer to material renderer or null\r
-               virtual IMaterialRenderer* getMaterialRenderer(u32 idx) const _IRR_OVERRIDE_;\r
+               IMaterialRenderer* getMaterialRenderer(u32 idx) const override;\r
 \r
                //! Returns amount of currently available material renderers.\r
-               virtual u32 getMaterialRendererCount() const _IRR_OVERRIDE_;\r
+               u32 getMaterialRendererCount() const override;\r
 \r
                //! Returns name of the material renderer\r
-               virtual const char* getMaterialRendererName(u32 idx) const _IRR_OVERRIDE_;\r
+               const char* getMaterialRendererName(u32 idx) const override;\r
 \r
                //! Adds a new material renderer to the VideoDriver, based on a high level shading\r
                //! language. Currently only HLSL in D3D9 is supported.\r
@@ -531,7 +531,7 @@ namespace video
                        u32 verticesOut = 0,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData = 0) _IRR_OVERRIDE_;\r
+                       s32 userData = 0) override;\r
 \r
                //! Like IGPUProgrammingServices::addShaderMaterial() (look there for a detailed description),\r
                //! but tries to load the programs from files.\r
@@ -550,7 +550,7 @@ namespace video
                        u32 verticesOut = 0,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData = 0) _IRR_OVERRIDE_;\r
+                       s32 userData = 0) override;\r
 \r
                //! Like IGPUProgrammingServices::addShaderMaterial() (look there for a detailed description),\r
                //! but tries to load the programs from files.\r
@@ -569,72 +569,72 @@ namespace video
                        u32 verticesOut = 0,\r
                        IShaderConstantSetCallBack* callback = 0,\r
                        E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                       s32 userData = 0) _IRR_OVERRIDE_;\r
+                       s32 userData = 0) override;\r
 \r
                //! Returns a pointer to the mesh manipulator.\r
-               virtual scene::IMeshManipulator* getMeshManipulator() _IRR_OVERRIDE_;\r
+               scene::IMeshManipulator* getMeshManipulator() override;\r
 \r
-               virtual void clearBuffers(u16 flag, SColor color = SColor(255,0,0,0), f32 depth = 1.f, u8 stencil = 0) _IRR_OVERRIDE_;\r
+               void clearBuffers(u16 flag, SColor color = SColor(255,0,0,0), f32 depth = 1.f, u8 stencil = 0) override;\r
 \r
                //! Returns an image created from the last rendered frame.\r
-               virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) _IRR_OVERRIDE_;\r
+               IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) override;\r
 \r
                //! Writes the provided image to disk file\r
-               virtual bool writeImageToFile(IImage* image, const io::path& filename, u32 param = 0) _IRR_OVERRIDE_;\r
+               bool writeImageToFile(IImage* image, const io::path& filename, u32 param = 0) override;\r
 \r
                //! Writes the provided image to a file.\r
-               virtual bool writeImageToFile(IImage* image, io::IWriteFile * file, u32 param = 0) _IRR_OVERRIDE_;\r
+               bool writeImageToFile(IImage* image, io::IWriteFile * file, u32 param = 0) override;\r
 \r
                //! Sets the name of a material renderer.\r
-               virtual void setMaterialRendererName(s32 idx, const char* name) _IRR_OVERRIDE_;\r
+               void setMaterialRendererName(s32 idx, const char* name) override;\r
 \r
                //! Swap the material renderers used for certain id's\r
-               virtual void swapMaterialRenderers(u32 idx1, u32 idx2, bool swapNames) _IRR_OVERRIDE_;\r
+               void swapMaterialRenderers(u32 idx1, u32 idx2, bool swapNames) override;\r
 \r
                //! looks if the image is already loaded\r
-               virtual video::ITexture* findTexture(const io::path& filename) _IRR_OVERRIDE_;\r
+               video::ITexture* findTexture(const io::path& filename) override;\r
 \r
                //! Set/unset a clipping plane.\r
                //! There are at least 6 clipping planes available for the user to set at will.\r
                //! \param index: The plane index. Must be between 0 and MaxUserClipPlanes.\r
                //! \param plane: The plane itself.\r
                //! \param enable: If true, enable the clipping plane else disable it.\r
-               virtual bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) _IRR_OVERRIDE_;\r
+               bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) override;\r
 \r
                //! Enable/disable a clipping plane.\r
                //! There are at least 6 clipping planes available for the user to set at will.\r
                //! \param index: The plane index. Must be between 0 and MaxUserClipPlanes.\r
                //! \param enable: If true, enable the clipping plane else disable it.\r
-               virtual void enableClipPlane(u32 index, bool enable) _IRR_OVERRIDE_;\r
+               void enableClipPlane(u32 index, bool enable) override;\r
 \r
                //! Returns the graphics card vendor name.\r
-               virtual core::stringc getVendorInfo() _IRR_OVERRIDE_ {return "Not available on this driver.";}\r
+               core::stringc getVendorInfo() override {return "Not available on this driver.";}\r
 \r
                //! Set the minimum number of vertices for which a hw buffer will be created\r
                /** \param count Number of vertices to set as minimum. */\r
-               virtual void setMinHardwareBufferVertexCount(u32 count) _IRR_OVERRIDE_;\r
+               void setMinHardwareBufferVertexCount(u32 count) override;\r
 \r
                //! Get the global Material, which might override local materials.\r
                /** Depending on the enable flags, values from this Material\r
                are used to override those of local materials of some\r
                meshbuffer being rendered. */\r
-               virtual SOverrideMaterial& getOverrideMaterial() _IRR_OVERRIDE_;\r
+               SOverrideMaterial& getOverrideMaterial() override;\r
 \r
                //! Get the 2d override material for altering its values\r
-               virtual SMaterial& getMaterial2D() _IRR_OVERRIDE_;\r
+               SMaterial& getMaterial2D() override;\r
 \r
                //! Enable the 2d override material\r
-               virtual void enableMaterial2D(bool enable=true) _IRR_OVERRIDE_;\r
+               void enableMaterial2D(bool enable=true) override;\r
 \r
                //! Only used by the engine internally.\r
-               virtual void setAllowZWriteOnTransparent(bool flag) _IRR_OVERRIDE_\r
+               void setAllowZWriteOnTransparent(bool flag) override\r
                { AllowZWriteOnTransparent=flag; }\r
 \r
                //! Returns the maximum texture size supported.\r
-               virtual core::dimension2du getMaxTextureSize() const _IRR_OVERRIDE_;\r
+               core::dimension2du getMaxTextureSize() const override;\r
 \r
                //! Used by some SceneNodes to check if a material should be rendered in the transparent render pass\r
-               virtual bool needsTransparentRenderPass(const irr::video::SMaterial& material) const _IRR_OVERRIDE_;\r
+               bool needsTransparentRenderPass(const irr::video::SMaterial& material) const override;\r
 \r
                //! Color conversion convenience function\r
                /** Convert an image (as array of pixels) from source to destination\r
@@ -647,13 +647,13 @@ namespace video
                \param dF Color format of destination\r
                */\r
                virtual void convertColor(const void* sP, ECOLOR_FORMAT sF, s32 sN,\r
-                               void* dP, ECOLOR_FORMAT dF) const _IRR_OVERRIDE_;\r
+                               void* dP, ECOLOR_FORMAT dF) const override;\r
 \r
                //! deprecated method\r
                virtual ITexture* createRenderTargetTexture(const core::dimension2d<u32>& size,\r
                                const c8* name=0);\r
 \r
-               virtual bool checkDriverReset() _IRR_OVERRIDE_ {return false;}\r
+               bool checkDriverReset() override {return false;}\r
        protected:\r
 \r
                //! deletes all textures\r
@@ -719,9 +719,9 @@ namespace video
 \r
                        void setSize(const core::dimension2d<u32>& size) { Size = OriginalSize = size; }\r
 \r
-                       virtual void* lock(E_TEXTURE_LOCK_MODE mode = ETLM_READ_WRITE, u32 mipmapLevel=0, u32 layer = 0, E_TEXTURE_LOCK_FLAGS lockFlags = ETLF_FLIP_Y_UP_RTT) _IRR_OVERRIDE_ { return 0; }\r
-                       virtual void unlock()_IRR_OVERRIDE_ {}\r
-                       virtual void regenerateMipMapLevels(void* data = 0, u32 layer = 0) _IRR_OVERRIDE_ {}\r
+                       void* lock(E_TEXTURE_LOCK_MODE mode = ETLM_READ_WRITE, u32 mipmapLevel=0, u32 layer = 0, E_TEXTURE_LOCK_FLAGS lockFlags = ETLF_FLIP_Y_UP_RTT) override { return 0; }\r
+                       void unlock()override {}\r
+                       void regenerateMipMapLevels(void* data = 0, u32 layer = 0) override {}\r
                };\r
                core::array<SSurface> Textures;\r
 \r
index e3d21a40f9662c295d62af0141065aaff7c5103b..c03197a714bf00717f14cb2be2be9444d2695f8a 100644 (file)
@@ -30,13 +30,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".obj")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! creates/loads an animated mesh from the file.\r
        //! \return Pointer to the created mesh. Returns 0 if loading failed.\r
        //! If you no longer need the mesh, you should call IAnimatedMesh::drop().\r
        //! See IReferenceCounted::drop() for more information.\r
-       virtual IAnimatedMesh* createMesh(io::IReadFile* file) _IRR_OVERRIDE_;\r
+       IAnimatedMesh* createMesh(io::IReadFile* file) override;\r
 \r
 private:\r
 \r
index 6ca303bc1acb58b3174b0f141affcd36a18f964c..8d31ff6381834d842aeaf349256aaffba79337d0 100644 (file)
@@ -42,12 +42,12 @@ namespace video
                virtual ~COGLES2Driver();\r
 \r
                virtual bool beginScene(u16 clearFlag, SColor clearColor = SColor(255, 0, 0, 0), f32 clearDepth = 1.f, u8 clearStencil = 0,\r
-                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) _IRR_OVERRIDE_;\r
+                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) override;\r
 \r
-               virtual bool endScene() _IRR_OVERRIDE_;\r
+               bool endScene() override;\r
 \r
                //! sets transformation\r
-               virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) _IRR_OVERRIDE_;\r
+               void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) override;\r
 \r
                struct SHWBufferLink_opengl : public SHWBufferLink\r
                {\r
@@ -67,41 +67,41 @@ namespace video
                bool updateIndexHardwareBuffer(SHWBufferLink_opengl *HWBuffer);\r
 \r
                //! updates hardware buffer if needed\r
-               virtual bool updateHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               bool updateHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Create hardware buffer from mesh\r
-               virtual SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                //! Delete hardware buffer (only some drivers can)\r
-               virtual void deleteHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void deleteHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Draw hardware buffer\r
-               virtual void drawHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void drawHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
-               virtual IRenderTarget* addRenderTarget() _IRR_OVERRIDE_;\r
+               IRenderTarget* addRenderTarget() override;\r
 \r
                //! draws a vertex primitive list\r
                virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
-                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) _IRR_OVERRIDE_;\r
+                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) override;\r
 \r
                //! queries the features of the driver, returns true if feature is available\r
-               virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const _IRR_OVERRIDE_\r
+               bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const override\r
                {\r
                        return FeatureEnabled[feature] && COGLES2ExtensionHandler::queryFeature(feature);\r
                }\r
 \r
                //! Sets a material.\r
-               virtual void setMaterial(const SMaterial& material) _IRR_OVERRIDE_;\r
+               void setMaterial(const SMaterial& material) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture,\r
                                const core::position2d<s32>& destPos,\r
                                const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                               SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) override;\r
 \r
                // internally used\r
                virtual void draw2DImage(const video::ITexture* texture, u32 layer, bool flip);\r
@@ -113,110 +113,110 @@ namespace video
                                const core::array<s32>& indices, s32 kerningWidth = 0,\r
                                const core::rect<s32>* clipRect = 0,\r
                                SColor color = SColor(255, 255, 255, 255),\r
-                               bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture = false) override;\r
 \r
                void draw2DImageBatch(const video::ITexture* texture,\r
                                const core::array<core::position2d<s32> >& positions,\r
                                const core::array<core::rect<s32> >& sourceRects,\r
                                const core::rect<s32>* clipRect,\r
                                SColor color,\r
-                               bool useAlphaChannelOfTexture) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture) override;\r
 \r
                //! draw an 2d rectangle\r
                virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos,\r
-                               const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip = 0) override;\r
 \r
                //!Draws an 2d rectangle with a gradient.\r
                virtual void draw2DRectangle(const core::rect<s32>& pos,\r
                                SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown,\r
-                               const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws a 2d line.\r
                virtual void draw2DLine(const core::position2d<s32>& start,\r
                                const core::position2d<s32>& end,\r
-                               SColor color = SColor(255, 255, 255, 255)) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255)) override;\r
 \r
                //! Draws a single pixel\r
-               virtual void drawPixel(u32 x, u32 y, const SColor & color) _IRR_OVERRIDE_;\r
+               void drawPixel(u32 x, u32 y, const SColor & color) override;\r
 \r
                //! Draws a 3d line.\r
                virtual void draw3DLine(const core::vector3df& start,\r
                                const core::vector3df& end,\r
-                               SColor color = SColor(255, 255, 255, 255)) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255)) override;\r
 \r
                //! Draws a pixel\r
 //                     virtual void drawPixel(u32 x, u32 y, const SColor & color);\r
 \r
                //! Returns the name of the video driver.\r
-               virtual const wchar_t* getName() const _IRR_OVERRIDE_;\r
+               const wchar_t* getName() const override;\r
 \r
                //! Returns the maximum texture size supported.\r
-               virtual core::dimension2du getMaxTextureSize() const _IRR_OVERRIDE_;\r
+               core::dimension2du getMaxTextureSize() const override;\r
 \r
                //! Draws a shadow volume into the stencil buffer.\r
-               virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) _IRR_OVERRIDE_;\r
+               void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) override;\r
 \r
                //! Fills the stencil shadow with color.\r
                virtual void drawStencilShadow(bool clearStencilBuffer=false,\r
                        video::SColor leftUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor rightUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor leftDownEdge = video::SColor(0,0,0,0),\r
-                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) _IRR_OVERRIDE_;\r
+                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) override;\r
 \r
                //! sets a viewport\r
-               virtual void setViewPort(const core::rect<s32>& area) _IRR_OVERRIDE_;\r
+               void setViewPort(const core::rect<s32>& area) override;\r
 \r
                //! Only used internally by the engine\r
-               virtual void OnResize(const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void OnResize(const core::dimension2d<u32>& size) override;\r
 \r
                //! Returns type of video driver\r
-               virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_;\r
+               E_DRIVER_TYPE getDriverType() const override;\r
 \r
                //! get color format of the current color buffer\r
-               virtual ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! Returns the transformation set by setTransform\r
-               virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const _IRR_OVERRIDE_;\r
+               const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const override;\r
 \r
                //! Can be called by an IMaterialRenderer to make its work easier.\r
-               virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastmaterial, bool resetAllRenderstates) _IRR_OVERRIDE_;\r
+               void setBasicRenderStates(const SMaterial& material, const SMaterial& lastmaterial, bool resetAllRenderstates) override;\r
 \r
                //! Compare in SMaterial doesn't check texture parameters, so we should call this on each OnRender call.\r
                void setTextureRenderStates(const SMaterial& material, bool resetAllRenderstates);\r
 \r
                //! Get a vertex shader constant index.\r
-               virtual s32 getVertexShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getVertexShaderConstantID(const c8* name) override;\r
 \r
                //! Get a pixel shader constant index.\r
-               virtual s32 getPixelShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getPixelShaderConstantID(const c8* name) override;\r
 \r
                //! Sets a vertex shader constant.\r
-               virtual void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount = 1) _IRR_OVERRIDE_;\r
+               void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount = 1) override;\r
 \r
                //! Sets a pixel shader constant.\r
-               virtual void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount = 1) _IRR_OVERRIDE_;\r
+               void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount = 1) override;\r
 \r
                //! Sets a constant for the vertex shader based on an index.\r
-               virtual bool setVertexShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! Sets a constant for the pixel shader based on an index.\r
-               virtual bool setPixelShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! Adds a new material renderer to the VideoDriver\r
                virtual s32 addShaderMaterial(const c8* vertexShaderProgram, const c8* pixelShaderProgram,\r
-                               IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) _IRR_OVERRIDE_;\r
+                               IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) override;\r
 \r
                //! Adds a new material renderer to the VideoDriver\r
                virtual s32 addHighLevelShaderMaterial(\r
@@ -234,31 +234,31 @@ namespace video
                                u32 verticesOut = 0,\r
                                IShaderConstantSetCallBack* callback = 0,\r
                                E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                               s32 userData=0) _IRR_OVERRIDE_;\r
+                               s32 userData=0) override;\r
 \r
                //! Returns pointer to the IGPUProgrammingServices interface.\r
-               virtual IGPUProgrammingServices* getGPUProgrammingServices() _IRR_OVERRIDE_;\r
+               IGPUProgrammingServices* getGPUProgrammingServices() override;\r
 \r
                //! Returns a pointer to the IVideoDriver interface.\r
-               virtual IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+               IVideoDriver* getVideoDriver() override;\r
 \r
                //! Returns the maximum amount of primitives\r
-               virtual u32 getMaximalPrimitiveCount() const _IRR_OVERRIDE_;\r
+               u32 getMaximalPrimitiveCount() const override;\r
 \r
                virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,\r
-                               const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) override;\r
 \r
                //! Creates a render target texture for a cubemap\r
                ITexture* addRenderTargetTextureCubemap(const irr::u32 sideLen,\r
-                               const io::path& name, const ECOLOR_FORMAT format) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format) override;\r
 \r
                virtual bool setRenderTargetEx(IRenderTarget* target, u16 clearFlag, SColor clearColor = SColor(255, 0, 0, 0),\r
-                       f32 clearDepth = 1.f, u8 clearStencil = 0) _IRR_OVERRIDE_;\r
+                       f32 clearDepth = 1.f, u8 clearStencil = 0) override;\r
 \r
-               virtual void clearBuffers(u16 flag, SColor color = SColor(255, 0, 0, 0), f32 depth = 1.f, u8 stencil = 0) _IRR_OVERRIDE_;\r
+               void clearBuffers(u16 flag, SColor color = SColor(255, 0, 0, 0), f32 depth = 1.f, u8 stencil = 0) override;\r
 \r
                //! Returns an image created from the last rendered frame.\r
-               virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) _IRR_OVERRIDE_;\r
+               IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) override;\r
 \r
                //! checks if an OpenGL error has happened and prints it (+ some internal code which is usually the line number)\r
                bool testGLError(int code=0);\r
@@ -267,7 +267,7 @@ namespace video
                bool testEGLError();\r
 \r
                //! Set/unset a clipping plane.\r
-               virtual bool setClipPlane(u32 index, const core::plane3df& plane, bool enable = false) _IRR_OVERRIDE_;\r
+               bool setClipPlane(u32 index, const core::plane3df& plane, bool enable = false) override;\r
 \r
                //! returns the current amount of user clip planes set.\r
                u32 getClipPlaneCount() const;\r
@@ -276,21 +276,21 @@ namespace video
                const core::plane3df& getClipPlane(u32 index) const;\r
 \r
                //! Enable/disable a clipping plane.\r
-               virtual void enableClipPlane(u32 index, bool enable) _IRR_OVERRIDE_;\r
+               void enableClipPlane(u32 index, bool enable) override;\r
 \r
                //! Returns the graphics card vendor name.\r
-               virtual core::stringc getVendorInfo() _IRR_OVERRIDE_\r
+               core::stringc getVendorInfo() override\r
                {\r
                        return VendorName;\r
                };\r
 \r
-               virtual void removeTexture(ITexture* texture) _IRR_OVERRIDE_;\r
+               void removeTexture(ITexture* texture) override;\r
 \r
                //! Check if the driver supports creating textures with the given color format\r
-               virtual bool queryTextureFormat(ECOLOR_FORMAT format) const _IRR_OVERRIDE_;\r
+               bool queryTextureFormat(ECOLOR_FORMAT format) const override;\r
 \r
                //! Used by some SceneNodes to check if a material should be rendered in the transparent render pass\r
-               virtual bool needsTransparentRenderPass(const irr::video::SMaterial& material) const _IRR_OVERRIDE_;\r
+               bool needsTransparentRenderPass(const irr::video::SMaterial& material) const override;\r
 \r
                //! Convert E_BLEND_FACTOR to OpenGL equivalent\r
                GLenum getGLBlend(E_BLEND_FACTOR factor) const;\r
@@ -312,9 +312,9 @@ namespace video
 \r
                void chooseMaterial2D();\r
 \r
-               virtual ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) override;\r
 \r
-               virtual ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) override;\r
 \r
                //! Map Irrlicht wrap mode to OpenGL enum\r
                GLint getTextureWrapMode(u8 clamp) const;\r
index 118cf5d70ad3751a3691147313c2fd1a2972a7fe..9c4c2c9feac0c6b9fe67c2f1c8abfac02767e226 100644 (file)
@@ -53,20 +53,20 @@ public:
 \r
        virtual s32 getRenderCapability() const;\r
 \r
-       virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates) _IRR_OVERRIDE_;\r
-\r
-       virtual s32 getVertexShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
-       virtual s32 getPixelShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
-       virtual void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
-       virtual void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
-\r
-       virtual IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+       void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates) override;\r
+\r
+       s32 getVertexShaderConstantID(const c8* name) override;\r
+       s32 getPixelShaderConstantID(const c8* name) override;\r
+       void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
+       void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
+       bool setVertexShaderConstant(s32 index, const f32* floats, int count) override;\r
+       bool setVertexShaderConstant(s32 index, const s32* ints, int count) override;\r
+       bool setVertexShaderConstant(s32 index, const u32* ints, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const f32* floats, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const s32* ints, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const u32* ints, int count) override;\r
+\r
+       IVideoDriver* getVideoDriver() override;\r
 \r
 protected:\r
 \r
index ee01fa773a71c49c9830652baf93e139fa001e15..eb27f076cd517945a9c0a807e59c3103702ca70f 100644 (file)
@@ -35,12 +35,12 @@ namespace video
                virtual ~COGLES1Driver();\r
 \r
                virtual bool beginScene(u16 clearFlag, SColor clearColor = SColor(255, 0, 0, 0), f32 clearDepth = 1.f, u8 clearStencil = 0,\r
-                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) _IRR_OVERRIDE_;\r
+                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) override;\r
 \r
-               virtual bool endScene() _IRR_OVERRIDE_;\r
+               bool endScene() override;\r
 \r
                //! sets transformation\r
-               virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) _IRR_OVERRIDE_;\r
+               void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) override;\r
 \r
 \r
                struct SHWBufferLink_opengl : public SHWBufferLink\r
@@ -59,43 +59,43 @@ namespace video
                bool updateIndexHardwareBuffer(SHWBufferLink_opengl *HWBuffer);\r
 \r
                //! updates hardware buffer if needed\r
-               virtual bool updateHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               bool updateHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Create hardware buffer from mesh\r
-               virtual SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                //! Delete hardware buffer (only some drivers can)\r
-               virtual void deleteHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void deleteHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Draw hardware buffer\r
-               virtual void drawHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void drawHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
-               virtual IRenderTarget* addRenderTarget() _IRR_OVERRIDE_;\r
+               IRenderTarget* addRenderTarget() override;\r
 \r
                //! draws a vertex primitive list\r
                virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
-                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) _IRR_OVERRIDE_;\r
+                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) override;\r
 \r
                void drawVertexPrimitiveList2d3d(const void* vertices, u32 vertexCount, const void* indexList, u32 primitiveCount, E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType=EIT_16BIT, bool threed=true);\r
 \r
                //! queries the features of the driver, returns true if feature is available\r
-               virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const _IRR_OVERRIDE_\r
+               bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const override\r
                {\r
 //                     return FeatureEnabled[feature] && COGLES1ExtensionHandler::queryFeature(feature);\r
                        return COGLES1ExtensionHandler::queryFeature(feature);\r
                }\r
 \r
                //! Sets a material.\r
-               virtual void setMaterial(const SMaterial& material) _IRR_OVERRIDE_;\r
+               void setMaterial(const SMaterial& material) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, u32 layer, bool flip);\r
 \r
@@ -106,7 +106,7 @@ namespace video
                                const core::array<s32>& indices, s32 kerningWidth = 0,\r
                                const core::rect<s32>* clipRect=0,\r
                                SColor color=SColor(255,255,255,255),\r
-                               bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! draws a set of 2d images, using a color and the alpha channel of the texture if desired.\r
                virtual void draw2DImageBatch(const video::ITexture* texture,\r
@@ -114,105 +114,105 @@ namespace video
                                const core::array<core::rect<s32> >& sourceRects,\r
                                const core::rect<s32>* clipRect=0,\r
                                SColor color=SColor(255,255,255,255),\r
-                               bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! draw an 2d rectangle\r
                virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos,\r
-                       const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clip = 0) override;\r
 \r
                //!Draws an 2d rectangle with a gradient.\r
                virtual void draw2DRectangle(const core::rect<s32>& pos,\r
                        SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown,\r
-                       const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws a 2d line.\r
                virtual void draw2DLine(const core::position2d<s32>& start,\r
                                        const core::position2d<s32>& end,\r
-                                       SColor color=SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                                       SColor color=SColor(255,255,255,255)) override;\r
 \r
                //! Draws a single pixel\r
-               virtual void drawPixel(u32 x, u32 y, const SColor & color) _IRR_OVERRIDE_;\r
+               void drawPixel(u32 x, u32 y, const SColor & color) override;\r
 \r
                //! Draws a 3d line.\r
                virtual void draw3DLine(const core::vector3df& start,\r
                                        const core::vector3df& end,\r
-                                       SColor color = SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                                       SColor color = SColor(255,255,255,255)) override;\r
 \r
                //! Returns the name of the video driver.\r
-               virtual const wchar_t* getName() const _IRR_OVERRIDE_;\r
+               const wchar_t* getName() const override;\r
 \r
                //! Sets the dynamic ambient light color.\r
-               virtual void setAmbientLight(const SColorf& color) _IRR_OVERRIDE_;\r
+               void setAmbientLight(const SColorf& color) override;\r
 \r
                //! Draws a shadow volume into the stencil buffer.\r
-               virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) _IRR_OVERRIDE_;\r
+               void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) override;\r
 \r
                //! Fills the stencil shadow with color.\r
                virtual void drawStencilShadow(bool clearStencilBuffer=false,\r
                        video::SColor leftUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor rightUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor leftDownEdge = video::SColor(0,0,0,0),\r
-                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) _IRR_OVERRIDE_;\r
+                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) override;\r
 \r
                //! sets a viewport\r
-               virtual void setViewPort(const core::rect<s32>& area) _IRR_OVERRIDE_;\r
+               void setViewPort(const core::rect<s32>& area) override;\r
 \r
                //! Sets the fog mode.\r
                virtual void setFog(SColor color, E_FOG_TYPE fogType, f32 start,\r
-                       f32 end, f32 density, bool pixelFog, bool rangeFog) _IRR_OVERRIDE_;\r
+                       f32 end, f32 density, bool pixelFog, bool rangeFog) override;\r
 \r
                //! Only used internally by the engine\r
-               virtual void OnResize(const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void OnResize(const core::dimension2d<u32>& size) override;\r
 \r
                //! Returns type of video driver\r
-               virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_;\r
+               E_DRIVER_TYPE getDriverType() const override;\r
 \r
                //! get color format of the current color buffer\r
-               virtual ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! Returns the transformation set by setTransform\r
-               virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const _IRR_OVERRIDE_;\r
+               const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const override;\r
 \r
                //! Can be called by an IMaterialRenderer to make its work easier.\r
                virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastmaterial,\r
-                       bool resetAllRenderstates) _IRR_OVERRIDE_;\r
+                       bool resetAllRenderstates) override;\r
 \r
                //! Compare in SMaterial doesn't check texture parameters, so we should call this on each OnRender call.\r
                virtual void setTextureRenderStates(const SMaterial& material, bool resetAllRenderstates);\r
 \r
                //! Get a vertex shader constant index.\r
-               virtual s32 getVertexShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getVertexShaderConstantID(const c8* name) override;\r
 \r
                //! Get a pixel shader constant index.\r
-               virtual s32 getPixelShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getPixelShaderConstantID(const c8* name) override;\r
 \r
                //! Sets a constant for the vertex shader based on an index.\r
-               virtual bool setVertexShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! Sets a constant for the pixel shader based on an index.\r
-               virtual bool setPixelShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! Sets a vertex shader constant.\r
-               virtual void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
+               void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
 \r
                //! Sets a pixel shader constant.\r
-               virtual void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
+               void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
 \r
                //! Adds a new material renderer to the VideoDriver\r
                virtual s32 addShaderMaterial(const c8* vertexShaderProgram, const c8* pixelShaderProgram,\r
-                       IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) _IRR_OVERRIDE_;\r
+                       IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) override;\r
 \r
                //! Adds a new material renderer to the VideoDriver\r
                virtual s32 addHighLevelShaderMaterial(const c8* vertexShaderProgram, const c8* vertexShaderEntryPointName,\r
@@ -220,57 +220,57 @@ namespace video
                        E_PIXEL_SHADER_TYPE psCompileTarget, const c8* geometryShaderProgram, const c8* geometryShaderEntryPointName,\r
                        E_GEOMETRY_SHADER_TYPE gsCompileTarget, scene::E_PRIMITIVE_TYPE inType, scene::E_PRIMITIVE_TYPE outType,\r
                        u32 verticesOut, IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial,\r
-                       s32 userData) _IRR_OVERRIDE_;\r
+                       s32 userData) override;\r
 \r
                //! Returns pointer to the IGPUProgrammingServices interface.\r
-               virtual IGPUProgrammingServices* getGPUProgrammingServices() _IRR_OVERRIDE_;\r
+               IGPUProgrammingServices* getGPUProgrammingServices() override;\r
 \r
                //! Returns a pointer to the IVideoDriver interface.\r
-               virtual IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+               IVideoDriver* getVideoDriver() override;\r
 \r
                //! Returns the maximum amount of primitives\r
-               virtual u32 getMaximalPrimitiveCount() const _IRR_OVERRIDE_;\r
+               u32 getMaximalPrimitiveCount() const override;\r
 \r
                virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,\r
-                       const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) _IRR_OVERRIDE_;\r
+                       const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) override;\r
 \r
                //! Creates a render target texture for a cubemap\r
                ITexture* addRenderTargetTextureCubemap(const irr::u32 sideLen,\r
-                               const io::path& name, const ECOLOR_FORMAT format) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format) override;\r
 \r
                virtual bool setRenderTargetEx(IRenderTarget* target, u16 clearFlag, SColor clearColor = SColor(255, 0, 0, 0),\r
-                       f32 clearDepth = 1.f, u8 clearStencil = 0) _IRR_OVERRIDE_;\r
+                       f32 clearDepth = 1.f, u8 clearStencil = 0) override;\r
 \r
-               virtual void clearBuffers(u16 flag, SColor color = SColor(255, 0, 0, 0), f32 depth = 1.f, u8 stencil = 0) _IRR_OVERRIDE_;\r
+               void clearBuffers(u16 flag, SColor color = SColor(255, 0, 0, 0), f32 depth = 1.f, u8 stencil = 0) override;\r
 \r
                //! Returns an image created from the last rendered frame.\r
-               virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) _IRR_OVERRIDE_;\r
+               IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) override;\r
 \r
                //! checks if an OpenGL error has happened and prints it (+ some internal code which is usually the line number)\r
                bool testGLError(int code=0);\r
 \r
                //! Set/unset a clipping plane.\r
-               virtual bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) _IRR_OVERRIDE_;\r
+               bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) override;\r
 \r
                //! Enable/disable a clipping plane.\r
-               virtual void enableClipPlane(u32 index, bool enable) _IRR_OVERRIDE_;\r
+               void enableClipPlane(u32 index, bool enable) override;\r
 \r
                //! Returns the graphics card vendor name.\r
-               virtual core::stringc getVendorInfo() _IRR_OVERRIDE_\r
+               core::stringc getVendorInfo() override\r
                {\r
                        return VendorName;\r
                }\r
 \r
                //! Get the maximal texture size for this driver\r
-               virtual core::dimension2du getMaxTextureSize() const _IRR_OVERRIDE_;\r
+               core::dimension2du getMaxTextureSize() const override;\r
 \r
-               virtual void removeTexture(ITexture* texture) _IRR_OVERRIDE_;\r
+               void removeTexture(ITexture* texture) override;\r
 \r
                //! Check if the driver supports creating textures with the given color format\r
-               virtual bool queryTextureFormat(ECOLOR_FORMAT format) const _IRR_OVERRIDE_;\r
+               bool queryTextureFormat(ECOLOR_FORMAT format) const override;\r
 \r
                //! Used by some SceneNodes to check if a material should be rendered in the transparent render pass\r
-               virtual bool needsTransparentRenderPass(const irr::video::SMaterial& material) const _IRR_OVERRIDE_;\r
+               bool needsTransparentRenderPass(const irr::video::SMaterial& material) const override;\r
 \r
                //! Convert E_BLEND_FACTOR to OpenGL equivalent\r
                GLenum getGLBlend(E_BLEND_FACTOR factor) const;\r
@@ -289,9 +289,9 @@ namespace video
                //! inits the opengl-es driver\r
                bool genericDriverInit(const core::dimension2d<u32>& screenSize, bool stencilBuffer);\r
 \r
-               virtual ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) override;\r
 \r
-               virtual ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) override;\r
 \r
                //! creates a transposed matrix in supplied GLfloat array to pass to OGLES1\r
                inline void getGLMatrix(GLfloat gl_matrix[16], const core::matrix4& m);\r
index 8a811cb9796489bd5c62cdbd54106808dd734a47..5af6f73edf96b91b301947b2226afad917b83dfc 100644 (file)
@@ -450,7 +450,7 @@ public:
        }\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                Driver->setBasicRenderStates(material, lastMaterial, resetAllRenderstates);\r
 \r
@@ -464,7 +464,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setActiveTexture(GL_TEXTURE1);\r
                glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);\r
index bdf4d1dc3e012ac008a1eaf3f911b68959ea531a..6ef0f9ba290f12d918ba4822c70abfa7437e818f 100644 (file)
@@ -24,21 +24,21 @@ public:
        COSOperator(const core::stringc& osversion);\r
 \r
        //! returns the current operation system version as string.\r
-       virtual const core::stringc& getOperatingSystemVersion() const _IRR_OVERRIDE_;\r
+       const core::stringc& getOperatingSystemVersion() const override;\r
 \r
        //! copies text to the clipboard\r
        //! \param text: text in utf-8\r
-       virtual void copyToClipboard(const c8 *text) const _IRR_OVERRIDE_;\r
+       void copyToClipboard(const c8 *text) const override;\r
 \r
        //! gets text from the clipboard\r
        //! \return Returns 0 if no string is in there, otherwise an utf-8 string.\r
-       virtual const c8* getTextFromClipboard() const _IRR_OVERRIDE_;\r
+       const c8* getTextFromClipboard() const override;\r
 \r
        //! gets the total and available system RAM in kB\r
        //! \param Total: will contain the total system memory\r
        //! \param Avail: will contain the available memory\r
        //! \return Returns true if successful, false if not\r
-       virtual bool getSystemMemory(u32* Total, u32* Avail) const _IRR_OVERRIDE_;\r
+       bool getSystemMemory(u32* Total, u32* Avail) const override;\r
 \r
 private:\r
 \r
index c4c4530f1147af9b971f77f6df0090b6f6222666..6c542f5d1bfafbc7633d69ecf82b2516b2bd4d71 100644 (file)
@@ -58,7 +58,7 @@ public:
                        DepthStencil->drop();\r
        }\r
 \r
-       virtual void setTextures(ITexture* const * textures, u32 numTextures, ITexture* depthStencil, const E_CUBE_SURFACE* cubeSurfaces, u32 numCubeSurfaces) _IRR_OVERRIDE_\r
+       void setTextures(ITexture* const * textures, u32 numTextures, ITexture* depthStencil, const E_CUBE_SURFACE* cubeSurfaces, u32 numCubeSurfaces) override\r
        {\r
                bool needSizeUpdate = false;\r
 \r
index f18c77898dc582a852bc83b3c3833a0495fad8af..19ab06b2d743be2348f206019763fd6bedccee70 100644 (file)
@@ -234,7 +234,7 @@ public:
                        Images[i]->drop();\r
        }\r
 \r
-       virtual void* lock(E_TEXTURE_LOCK_MODE mode = ETLM_READ_WRITE, u32 mipmapLevel=0, u32 layer = 0, E_TEXTURE_LOCK_FLAGS lockFlags = ETLF_FLIP_Y_UP_RTT) _IRR_OVERRIDE_\r
+       void* lock(E_TEXTURE_LOCK_MODE mode = ETLM_READ_WRITE, u32 mipmapLevel=0, u32 layer = 0, E_TEXTURE_LOCK_FLAGS lockFlags = ETLF_FLIP_Y_UP_RTT) override\r
        {\r
                if (LockImage)\r
                        return getLockImageData(MipLevelStored);\r
@@ -376,7 +376,7 @@ public:
                return (LockImage) ? getLockImageData(MipLevelStored) : 0;\r
        }\r
 \r
-       virtual void unlock() _IRR_OVERRIDE_\r
+       void unlock() override\r
        {\r
                if (!LockImage)\r
                        return;\r
@@ -398,7 +398,7 @@ public:
                LockLayer = 0;\r
        }\r
 \r
-       virtual void regenerateMipMapLevels(void* data = 0, u32 layer = 0) _IRR_OVERRIDE_\r
+       void regenerateMipMapLevels(void* data = 0, u32 layer = 0) override\r
        {\r
                if (!HasMipMaps || LegacyAutoGenerateMipMaps || (Size.Width <= 1 && Size.Height <= 1))\r
                        return;\r
index 7121549b82bb83e0ebf1f39a0cee047b9905f0db..34540368d05b94e07fe939f8fe52287601425fb6 100644 (file)
@@ -52,12 +52,12 @@ namespace video
                virtual ~COpenGLDriver();\r
 \r
                virtual bool beginScene(u16 clearFlag, SColor clearColor = SColor(255,0,0,0), f32 clearDepth = 1.f, u8 clearStencil = 0,\r
-                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) _IRR_OVERRIDE_;\r
+                       const SExposedVideoData& videoData = SExposedVideoData(), core::rect<s32>* sourceRect = 0) override;\r
 \r
-               virtual bool endScene() _IRR_OVERRIDE_;\r
+               bool endScene() override;\r
 \r
                //! sets transformation\r
-               virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) _IRR_OVERRIDE_;\r
+               void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) override;\r
 \r
 \r
                struct SHWBufferLink_opengl : public SHWBufferLink\r
@@ -72,75 +72,75 @@ namespace video
                };\r
 \r
                //! updates hardware buffer if needed\r
-               virtual bool updateHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               bool updateHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Create hardware buffer from mesh\r
-               virtual SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               SHWBufferLink *createHardwareBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                //! Delete hardware buffer (only some drivers can)\r
-               virtual void deleteHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void deleteHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Draw hardware buffer\r
-               virtual void drawHardwareBuffer(SHWBufferLink *HWBuffer) _IRR_OVERRIDE_;\r
+               void drawHardwareBuffer(SHWBufferLink *HWBuffer) override;\r
 \r
                //! Create occlusion query.\r
                /** Use node for identification and mesh for occlusion test. */\r
                virtual void addOcclusionQuery(scene::ISceneNode* node,\r
-                               const scene::IMesh* mesh=0) _IRR_OVERRIDE_;\r
+                               const scene::IMesh* mesh=0) override;\r
 \r
                //! Remove occlusion query.\r
-               virtual void removeOcclusionQuery(scene::ISceneNode* node) _IRR_OVERRIDE_;\r
+               void removeOcclusionQuery(scene::ISceneNode* node) override;\r
 \r
                //! Run occlusion query. Draws mesh stored in query.\r
                /** If the mesh shall not be rendered visible, use\r
                overrideMaterial to disable the color and depth buffer. */\r
-               virtual void runOcclusionQuery(scene::ISceneNode* node, bool visible=false) _IRR_OVERRIDE_;\r
+               void runOcclusionQuery(scene::ISceneNode* node, bool visible=false) override;\r
 \r
                //! Update occlusion query. Retrieves results from GPU.\r
                /** If the query shall not block, set the flag to false.\r
                Update might not occur in this case, though */\r
-               virtual void updateOcclusionQuery(scene::ISceneNode* node, bool block=true) _IRR_OVERRIDE_;\r
+               void updateOcclusionQuery(scene::ISceneNode* node, bool block=true) override;\r
 \r
                //! Return query result.\r
                /** Return value is the number of visible pixels/fragments.\r
                The value is a safe approximation, i.e. can be larger then the\r
                actual value of pixels. */\r
-               virtual u32 getOcclusionQueryResult(scene::ISceneNode* node) const _IRR_OVERRIDE_;\r
+               u32 getOcclusionQueryResult(scene::ISceneNode* node) const override;\r
 \r
                //! Create render target.\r
-               virtual IRenderTarget* addRenderTarget() _IRR_OVERRIDE_;\r
+               IRenderTarget* addRenderTarget() override;\r
 \r
                //! draws a vertex primitive list\r
                virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
-                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) _IRR_OVERRIDE_;\r
+                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) override;\r
 \r
                //! draws a vertex primitive list in 2d\r
                virtual void draw2DVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
-                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) _IRR_OVERRIDE_;\r
+                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) override;\r
 \r
                //! queries the features of the driver, returns true if feature is available\r
-               virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const _IRR_OVERRIDE_\r
+               bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const override\r
                {\r
                        return FeatureEnabled[feature] && COpenGLExtensionHandler::queryFeature(feature);\r
                }\r
 \r
                //! Disable a feature of the driver.\r
-               virtual void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true) _IRR_OVERRIDE_;\r
+               void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true) override;\r
 \r
                //! Sets a material. All 3d drawing functions draw geometry now\r
                //! using this material.\r
                //! \param material: Material to be used from now on.\r
-               virtual void setMaterial(const SMaterial& material) _IRR_OVERRIDE_;\r
+               void setMaterial(const SMaterial& material) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) override;\r
 \r
                // Explicitly bring in base class methods, otherwise\r
                // this overload would hide them.\r
@@ -154,7 +154,7 @@ namespace video
                                const core::array<core::rect<s32> >& sourceRects,\r
                                const core::rect<s32>* clipRect,\r
                                SColor color,\r
-                               bool useAlphaChannelOfTexture) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture) override;\r
 \r
                //! draws a set of 2d images, using a color and the alpha\r
                /** channel of the texture if desired. The images are drawn\r
@@ -179,46 +179,46 @@ namespace video
                                s32 kerningWidth=0,\r
                                const core::rect<s32>* clipRect=0,\r
                                SColor color=SColor(255,255,255,255),\r
-                               bool useAlphaChannelOfTexture=false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture=false) override;\r
 \r
                //! draw an 2d rectangle\r
                virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos,\r
-                       const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clip = 0) override;\r
 \r
                //!Draws an 2d rectangle with a gradient.\r
                virtual void draw2DRectangle(const core::rect<s32>& pos,\r
                        SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown,\r
-                       const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                       const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws a 2d line.\r
                virtual void draw2DLine(const core::position2d<s32>& start,\r
                                        const core::position2d<s32>& end,\r
-                                       SColor color=SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                                       SColor color=SColor(255,255,255,255)) override;\r
 \r
                //! Draws a single pixel\r
-               virtual void drawPixel(u32 x, u32 y, const SColor & color) _IRR_OVERRIDE_;\r
+               void drawPixel(u32 x, u32 y, const SColor & color) override;\r
 \r
                //! Draws a 3d box\r
-               virtual void draw3DBox( const core::aabbox3d<f32>& box, SColor color = SColor(255,255,255,255 ) ) _IRR_OVERRIDE_;\r
+               void draw3DBox( const core::aabbox3d<f32>& box, SColor color = SColor(255,255,255,255 ) ) override;\r
 \r
                //! Draws a 3d line.\r
                virtual void draw3DLine(const core::vector3df& start,\r
                                        const core::vector3df& end,\r
-                                       SColor color = SColor(255,255,255,255)) _IRR_OVERRIDE_;\r
+                                       SColor color = SColor(255,255,255,255)) override;\r
 \r
                //! \return Returns the name of the video driver. Example: In case of the Direct3D8\r
                //! driver, it would return "Direct3D8.1".\r
-               virtual const wchar_t* getName() const _IRR_OVERRIDE_;\r
+               const wchar_t* getName() const override;\r
 \r
                //! Sets the dynamic ambient light color. The default color is\r
                //! (0,0,0,0) which means it is dark.\r
                //! \param color: New color of the ambient light.\r
-               virtual void setAmbientLight(const SColorf& color) _IRR_OVERRIDE_;\r
+               void setAmbientLight(const SColorf& color) override;\r
 \r
                //! Draws a shadow volume into the stencil buffer. To draw a stencil shadow, do\r
                //! this: First, draw all geometry. Then use this method, to draw the shadow\r
                //! volume. Then, use IVideoDriver::drawStencilShadow() to visualize the shadow.\r
-               virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) _IRR_OVERRIDE_;\r
+               void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) override;\r
 \r
                //! Fills the stencil shadow with color. After the shadow volume has been drawn\r
                //! into the stencil buffer using IVideoDriver::drawStencilShadowVolume(), use this\r
@@ -227,64 +227,64 @@ namespace video
                        video::SColor leftUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor rightUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor leftDownEdge = video::SColor(0,0,0,0),\r
-                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) _IRR_OVERRIDE_;\r
+                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) override;\r
 \r
                //! sets a viewport\r
-               virtual void setViewPort(const core::rect<s32>& area) _IRR_OVERRIDE_;\r
+               void setViewPort(const core::rect<s32>& area) override;\r
 \r
                //! Sets the fog mode.\r
                virtual void setFog(SColor color, E_FOG_TYPE fogType, f32 start,\r
-                       f32 end, f32 density, bool pixelFog, bool rangeFog) _IRR_OVERRIDE_;\r
+                       f32 end, f32 density, bool pixelFog, bool rangeFog) override;\r
 \r
                //! Only used by the internal engine. Used to notify the driver that\r
                //! the window was resized.\r
-               virtual void OnResize(const core::dimension2d<u32>& size) _IRR_OVERRIDE_;\r
+               void OnResize(const core::dimension2d<u32>& size) override;\r
 \r
                //! Returns type of video driver\r
-               virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_;\r
+               E_DRIVER_TYPE getDriverType() const override;\r
 \r
                //! get color format of the current color buffer\r
-               virtual ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_;\r
+               ECOLOR_FORMAT getColorFormat() const override;\r
 \r
                //! Returns the transformation set by setTransform\r
-               virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const _IRR_OVERRIDE_;\r
+               const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const override;\r
 \r
                //! Can be called by an IMaterialRenderer to make its work easier.\r
                virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastmaterial,\r
-                       bool resetAllRenderstates) _IRR_OVERRIDE_;\r
+                       bool resetAllRenderstates) override;\r
 \r
                //! Compare in SMaterial doesn't check texture parameters, so we should call this on each OnRender call.\r
                virtual void setTextureRenderStates(const SMaterial& material, bool resetAllRenderstates);\r
 \r
                //! Get a vertex shader constant index.\r
-               virtual s32 getVertexShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getVertexShaderConstantID(const c8* name) override;\r
 \r
                //! Get a pixel shader constant index.\r
-               virtual s32 getPixelShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
+               s32 getPixelShaderConstantID(const c8* name) override;\r
 \r
                //! Sets a vertex shader constant.\r
-               virtual void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
+               void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
 \r
                //! Sets a pixel shader constant.\r
-               virtual void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
+               void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
 \r
                //! Sets a constant for the vertex shader based on an index.\r
-               virtual bool setVertexShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setVertexShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setVertexShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! Sets a constant for the pixel shader based on an index.\r
-               virtual bool setPixelShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const f32* floats, int count) override;\r
 \r
                //! Int interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const s32* ints, int count) override;\r
 \r
                //! Uint interface for the above.\r
-               virtual bool setPixelShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
+               bool setPixelShaderConstant(s32 index, const u32* ints, int count) override;\r
 \r
                //! disables all textures beginning with the optional fromStage parameter. Otherwise all texture stages are disabled.\r
                //! Returns whether disabling was successful or not.\r
@@ -294,7 +294,7 @@ namespace video
                //! extGLGetObjectParameteriv(shaderHandle, GL_OBJECT_COMPILE_STATUS_ARB, &status)\r
                //! pixel and/or vertex shaders to render geometry.\r
                virtual s32 addShaderMaterial(const c8* vertexShaderProgram, const c8* pixelShaderProgram,\r
-                       IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) _IRR_OVERRIDE_;\r
+                       IShaderConstantSetCallBack* callback, E_MATERIAL_TYPE baseMaterial, s32 userData) override;\r
 \r
                //! Adds a new material renderer to the VideoDriver, using GLSL to render geometry.\r
                virtual s32 addHighLevelShaderMaterial(\r
@@ -312,31 +312,31 @@ namespace video
                                u32 verticesOut = 0,\r
                                IShaderConstantSetCallBack* callback = 0,\r
                                E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,\r
-                               s32 userData = 0) _IRR_OVERRIDE_;\r
+                               s32 userData = 0) override;\r
 \r
                //! Returns a pointer to the IVideoDriver interface. (Implementation for\r
                //! IMaterialRendererServices)\r
-               virtual IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+               IVideoDriver* getVideoDriver() override;\r
 \r
                //! Returns the maximum amount of primitives (mostly vertices) which\r
                //! the device is able to render with one drawIndexedTriangleList\r
                //! call.\r
-               virtual u32 getMaximalPrimitiveCount() const _IRR_OVERRIDE_;\r
+               u32 getMaximalPrimitiveCount() const override;\r
 \r
                virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,\r
-                               const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN) override;\r
 \r
                //! Creates a render target texture for a cubemap\r
                ITexture* addRenderTargetTextureCubemap(const irr::u32 sideLen,\r
-                               const io::path& name, const ECOLOR_FORMAT format) _IRR_OVERRIDE_;\r
+                               const io::path& name, const ECOLOR_FORMAT format) override;\r
 \r
                virtual bool setRenderTargetEx(IRenderTarget* target, u16 clearFlag, SColor clearColor = SColor(255,0,0,0),\r
-                       f32 clearDepth = 1.f, u8 clearStencil = 0) _IRR_OVERRIDE_;\r
+                       f32 clearDepth = 1.f, u8 clearStencil = 0) override;\r
 \r
-               virtual void clearBuffers(u16 flag, SColor color = SColor(255,0,0,0), f32 depth = 1.f, u8 stencil = 0) _IRR_OVERRIDE_;\r
+               void clearBuffers(u16 flag, SColor color = SColor(255,0,0,0), f32 depth = 1.f, u8 stencil = 0) override;\r
 \r
                //! Returns an image created from the last rendered frame.\r
-               virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) _IRR_OVERRIDE_;\r
+               IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) override;\r
 \r
                //! checks if an OpenGL error has happened and prints it (+ some internal code which is usually the line number)\r
                //! for performance reasons only available in debug mode\r
@@ -347,31 +347,31 @@ namespace video
                //! \param index: The plane index. Must be between 0 and MaxUserClipPlanes.\r
                //! \param plane: The plane itself.\r
                //! \param enable: If true, enable the clipping plane else disable it.\r
-               virtual bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) _IRR_OVERRIDE_;\r
+               bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) override;\r
 \r
                //! Enable/disable a clipping plane.\r
                //! There are at least 6 clipping planes available for the user to set at will.\r
                //! \param index: The plane index. Must be between 0 and MaxUserClipPlanes.\r
                //! \param enable: If true, enable the clipping plane else disable it.\r
-               virtual void enableClipPlane(u32 index, bool enable) _IRR_OVERRIDE_;\r
+               void enableClipPlane(u32 index, bool enable) override;\r
 \r
                //! Enable the 2d override material\r
-               virtual void enableMaterial2D(bool enable=true) _IRR_OVERRIDE_;\r
+               void enableMaterial2D(bool enable=true) override;\r
 \r
                //! Returns the graphics card vendor name.\r
-               virtual core::stringc getVendorInfo() _IRR_OVERRIDE_ {return VendorName;}\r
+               core::stringc getVendorInfo() override {return VendorName;}\r
 \r
                //! Returns the maximum texture size supported.\r
-               virtual core::dimension2du getMaxTextureSize() const _IRR_OVERRIDE_;\r
+               core::dimension2du getMaxTextureSize() const override;\r
 \r
                //! Removes a texture from the texture cache and deletes it, freeing lot of memory.\r
-               virtual void removeTexture(ITexture* texture) _IRR_OVERRIDE_;\r
+               void removeTexture(ITexture* texture) override;\r
 \r
                //! Check if the driver supports creating textures with the given color format\r
-               virtual bool queryTextureFormat(ECOLOR_FORMAT format) const _IRR_OVERRIDE_;\r
+               bool queryTextureFormat(ECOLOR_FORMAT format) const override;\r
 \r
                //! Used by some SceneNodes to check if a material should be rendered in the transparent render pass\r
-               virtual bool needsTransparentRenderPass(const irr::video::SMaterial& material) const _IRR_OVERRIDE_;\r
+               bool needsTransparentRenderPass(const irr::video::SMaterial& material) const override;\r
 \r
                //! Convert E_PRIMITIVE_TYPE to OpenGL equivalent\r
                GLenum primitiveTypeToGL(scene::E_PRIMITIVE_TYPE type) const;\r
@@ -406,9 +406,9 @@ namespace video
                //! inits the parts of the open gl driver used on all platforms\r
                bool genericDriverInit();\r
 \r
-               virtual ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTexture(const io::path& name, IImage* image) override;\r
 \r
-               virtual ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) _IRR_OVERRIDE_;\r
+               ITexture* createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image) override;\r
 \r
                //! creates a transposed matrix in supplied GLfloat array to pass to OpenGL\r
                inline void getGLMatrix(GLfloat gl_matrix[16], const core::matrix4& m);\r
index 43d72190df277cabd212712888a0682b073a081c..ed37e5d5dad61d87e2cd950c8e3f0bfd18c79f97 100644 (file)
@@ -26,7 +26,7 @@ public:
        COpenGLMaterialRenderer_SOLID(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -51,7 +51,7 @@ public:
        COpenGLMaterialRenderer_ONETEXTURE_BLEND(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -137,7 +137,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setActiveTexture(GL_TEXTURE0_ARB);\r
 \r
@@ -158,7 +158,7 @@ public:
 \r
        //! Returns if the material is transparent.\r
        /** Is not always transparent, but mostly. */\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return true;\r
        }\r
@@ -177,7 +177,7 @@ public:
        COpenGLMaterialRenderer_SOLID_2_LAYER(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -215,7 +215,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                if (Driver->queryFeature(EVDF_MULTITEXTURE))\r
                {\r
@@ -245,7 +245,7 @@ public:
        COpenGLMaterialRenderer_TRANSPARENT_ADD_COLOR(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -259,13 +259,13 @@ public:
                Driver->getCacheHandler()->setBlend(true);\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setBlend(false);\r
        }\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return true;\r
        }\r
@@ -284,7 +284,7 @@ public:
        COpenGLMaterialRenderer_TRANSPARENT_VERTEX_ALPHA(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -319,7 +319,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setActiveTexture(GL_TEXTURE0_ARB);\r
 \r
@@ -336,7 +336,7 @@ public:
        }\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return true;\r
        }\r
@@ -355,7 +355,7 @@ public:
        COpenGLMaterialRenderer_TRANSPARENT_ALPHA_CHANNEL(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -392,7 +392,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setActiveTexture(GL_TEXTURE0_ARB);\r
 \r
@@ -407,7 +407,7 @@ public:
        }\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return true;\r
        }\r
@@ -426,7 +426,7 @@ public:
        COpenGLMaterialRenderer_TRANSPARENT_ALPHA_CHANNEL_REF(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -443,13 +443,13 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setAlphaTest(false);\r
        }\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return false;  // this material is not really transparent because it does no blending.\r
        }\r
@@ -468,7 +468,7 @@ public:
        COpenGLMaterialRenderer_LIGHTMAP(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -562,7 +562,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                if (Driver->queryFeature(EVDF_MULTITEXTURE))\r
                {\r
@@ -595,7 +595,7 @@ public:
        COpenGLMaterialRenderer_DETAIL_MAP(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -627,7 +627,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                if (Driver->queryFeature(EVDF_MULTITEXTURE))\r
                {\r
@@ -651,7 +651,7 @@ public:
        COpenGLMaterialRenderer_SPHERE_MAP(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -677,7 +677,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                Driver->getCacheHandler()->setActiveTexture(GL_TEXTURE0_ARB);\r
 \r
@@ -699,7 +699,7 @@ public:
        COpenGLMaterialRenderer_REFLECTION_2_LAYER(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -735,7 +735,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                if (Driver->queryFeature(EVDF_MULTITEXTURE))\r
                {\r
@@ -761,7 +761,7 @@ public:
        COpenGLMaterialRenderer_TRANSPARENT_REFLECTION_2_LAYER(video::COpenGLDriver* d) : Driver(d) {}\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override\r
        {\r
                if (Driver->getFixedPipelineState() == COpenGLDriver::EOFPS_DISABLE)\r
                        Driver->setFixedPipelineState(COpenGLDriver::EOFPS_DISABLE_TO_ENABLE);\r
@@ -820,7 +820,7 @@ public:
                }\r
        }\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_\r
+       void OnUnsetMaterial() override\r
        {\r
                if (Driver->queryFeature(EVDF_MULTITEXTURE))\r
                {\r
@@ -840,7 +840,7 @@ public:
        }\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_\r
+       bool isTransparent() const override\r
        {\r
                return true;\r
        }\r
index 354f1a068c5511de49581eaa1242e5857c1c7dc8..b6a4f821a2df4ece2869e263c44767b8f7bb3cd1 100644 (file)
@@ -56,34 +56,34 @@ public:
        virtual ~COpenGLSLMaterialRenderer();\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_;\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override;\r
 \r
-       virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) _IRR_OVERRIDE_;\r
+       bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) override;\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_;\r
+       void OnUnsetMaterial() override;\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_;\r
+       bool isTransparent() const override;\r
 \r
        //! Access the callback provided by the users when creating shader materials\r
-       virtual IShaderConstantSetCallBack* getShaderConstantSetCallBack() const _IRR_OVERRIDE_\r
+       IShaderConstantSetCallBack* getShaderConstantSetCallBack() const override\r
        { \r
                return CallBack;\r
        }\r
 \r
        // implementations for the render services\r
-       virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates) _IRR_OVERRIDE_;\r
-       virtual s32 getVertexShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
-       virtual s32 getPixelShaderConstantID(const c8* name) _IRR_OVERRIDE_;\r
-       virtual void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
-       virtual void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setVertexShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const f32* floats, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const s32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual bool setPixelShaderConstant(s32 index, const u32* ints, int count) _IRR_OVERRIDE_;\r
-       virtual IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+       void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates) override;\r
+       s32 getVertexShaderConstantID(const c8* name) override;\r
+       s32 getPixelShaderConstantID(const c8* name) override;\r
+       void setVertexShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
+       void setPixelShaderConstant(const f32* data, s32 startRegister, s32 constantAmount=1) override;\r
+       bool setVertexShaderConstant(s32 index, const f32* floats, int count) override;\r
+       bool setVertexShaderConstant(s32 index, const s32* ints, int count) override;\r
+       bool setVertexShaderConstant(s32 index, const u32* ints, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const f32* floats, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const s32* ints, int count) override;\r
+       bool setPixelShaderConstant(s32 index, const u32* ints, int count) override;\r
+       IVideoDriver* getVideoDriver() override;\r
 \r
 protected:\r
 \r
index 7cae915e56b5fc5eb2c0aaa515ad921c4d18240b..80ca43322f9f32d15a98579b923c407380fd48c4 100644 (file)
@@ -35,17 +35,17 @@ public:
        virtual ~COpenGLShaderMaterialRenderer();\r
 \r
        virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
-               bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_;\r
+               bool resetAllRenderstates, IMaterialRendererServices* services) override;\r
 \r
-       virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) _IRR_OVERRIDE_;\r
+       bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) override;\r
 \r
-       virtual void OnUnsetMaterial() _IRR_OVERRIDE_;\r
+       void OnUnsetMaterial() override;\r
 \r
        //! Returns if the material is transparent.\r
-       virtual bool isTransparent() const _IRR_OVERRIDE_;\r
+       bool isTransparent() const override;\r
 \r
        //! Access the callback provided by the users when creating shader materials\r
-       virtual IShaderConstantSetCallBack* getShaderConstantSetCallBack() const _IRR_OVERRIDE_\r
+       IShaderConstantSetCallBack* getShaderConstantSetCallBack() const override\r
        { \r
                return CallBack;\r
        }\r
index d86f9e0a4022793411a08f50162983b0a144625f..80b0d3afcf8780b399c8048c7bcba343e4ca98ca 100644 (file)
@@ -18,10 +18,10 @@ public:
        virtual ~CProfiler();\r
 \r
        //! Write all profile-data into a string\r
-    virtual void printAll(core::stringw &result, bool includeOverview,bool suppressUncalled) const  _IRR_OVERRIDE_;\r
+    void printAll(core::stringw &result, bool includeOverview,bool suppressUncalled) const  override;\r
 \r
        //! Write the profile data of one group into a string\r
-    virtual void printGroup(core::stringw &result, u32 groupIndex, bool suppressUncalled) const  _IRR_OVERRIDE_;\r
+    void printGroup(core::stringw &result, u32 groupIndex, bool suppressUncalled) const  override;\r
 \r
 protected:\r
        core::stringw makeTitleString() const;\r
index d0a3cac3015457336a234273e469a6e186f8ae7f..c029b3dd6f693ba29a81920a801e758f1a208fe1 100644 (file)
@@ -27,13 +27,13 @@ namespace io
                virtual ~CReadFile();\r
 \r
                //! returns how much was read\r
-               virtual size_t read(void* buffer, size_t sizeToRead) _IRR_OVERRIDE_;\r
+               size_t read(void* buffer, size_t sizeToRead) override;\r
 \r
                //! changes position in file, returns true if successful\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! returns size of file\r
-               virtual long getSize() const _IRR_OVERRIDE_;\r
+               long getSize() const override;\r
 \r
                //! returns if file is open\r
                bool isOpen() const\r
@@ -42,13 +42,13 @@ namespace io
                }\r
 \r
                //! returns where in the file we are.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! returns name of file\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
                //! Get the type of the class implementing this interface\r
-               virtual EREAD_FILE_TYPE getType() const _IRR_OVERRIDE_\r
+               EREAD_FILE_TYPE getType() const override\r
                {\r
                        return ERFT_READ_FILE;\r
                }\r
index e3ca3d007d9f1ba739caa02e8247a4637bd044cf..6b0f254db59970f586a0a7a6d9985ab0a6c029ed 100644 (file)
@@ -26,21 +26,21 @@ namespace video
 
                virtual ~CSDLManager() {}
 
-               virtual bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) _IRR_OVERRIDE_;
+               bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) override;
 
-               virtual void terminate() _IRR_OVERRIDE_ {};
-               virtual bool generateSurface() _IRR_OVERRIDE_ { return true; };
-               virtual void destroySurface() _IRR_OVERRIDE_ {};
-               virtual bool generateContext() _IRR_OVERRIDE_ { return true; };
-               virtual void destroyContext() _IRR_OVERRIDE_ {};
+               void terminate() override {};
+               bool generateSurface() override { return true; };
+               void destroySurface() override {};
+               bool generateContext() override { return true; };
+               void destroyContext() override {};
 
-               virtual const SExposedVideoData& getContext() const _IRR_OVERRIDE_;
+               const SExposedVideoData& getContext() const override;
 
-               virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero=false) _IRR_OVERRIDE_;
+               bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero=false) override;
 
-               virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;
+               void* getProcAddress(const std::string &procName) override;
 
-               virtual bool swapBuffers() _IRR_OVERRIDE_;
+               bool swapBuffers() override;
 
        private:
                SExposedVideoData Data;
index 9f51103741246560e554c0beee0488b35ddcc34e..870b5d1e8082fd9ef603fc50e99c5a215dfbc964 100644 (file)
@@ -26,7 +26,7 @@ namespace scene
 \r
                //! Returns a 3d ray which would go through the 2d screen coordinates.\r
                virtual core::line3d<f32> getRayFromScreenCoordinates(\r
-                       const core::position2d<s32> & pos, const ICameraSceneNode* camera = 0) _IRR_OVERRIDE_;\r
+                       const core::position2d<s32> & pos, const ICameraSceneNode* camera = 0) override;\r
 \r
        private:\r
 \r
index d17b53bcabae3275ac3f864aab2ef767cda66971..caf9dbeafc6d830441d080d01efacd64c7c8d952 100644 (file)
@@ -39,29 +39,29 @@ namespace scene
                virtual ~CSceneManager();\r
 \r
                //! gets an animateable mesh. loads it if needed. returned pointer must not be dropped.\r
-               virtual IAnimatedMesh* getMesh(const io::path& filename, const io::path& alternativeCacheName) _IRR_OVERRIDE_;\r
+               IAnimatedMesh* getMesh(const io::path& filename, const io::path& alternativeCacheName) override;\r
 \r
                //! gets an animateable mesh. loads it if needed. returned pointer must not be dropped.\r
-               virtual IAnimatedMesh* getMesh(io::IReadFile* file) _IRR_OVERRIDE_;\r
+               IAnimatedMesh* getMesh(io::IReadFile* file) override;\r
 \r
                //! Returns an interface to the mesh cache which is shared between all existing scene managers.\r
-               virtual IMeshCache* getMeshCache() _IRR_OVERRIDE_;\r
+               IMeshCache* getMeshCache() override;\r
 \r
                //! returns the video driver\r
-               virtual video::IVideoDriver* getVideoDriver() _IRR_OVERRIDE_;\r
+               video::IVideoDriver* getVideoDriver() override;\r
 \r
                //! return the gui environment\r
-               virtual gui::IGUIEnvironment* getGUIEnvironment() _IRR_OVERRIDE_;\r
+               gui::IGUIEnvironment* getGUIEnvironment() override;\r
 \r
                //! return the filesystem\r
-               virtual io::IFileSystem* getFileSystem() _IRR_OVERRIDE_;\r
+               io::IFileSystem* getFileSystem() override;\r
 \r
                //! adds a scene node for rendering an animated mesh model\r
                virtual IAnimatedMeshSceneNode* addAnimatedMeshSceneNode(IAnimatedMesh* mesh, ISceneNode* parent=0, s32 id=-1,\r
                        const core::vector3df& position = core::vector3df(0,0,0),\r
                        const core::vector3df& rotation = core::vector3df(0,0,0),\r
                        const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f),\r
-                       bool alsoAddIfMeshPointerZero=false) _IRR_OVERRIDE_;\r
+                       bool alsoAddIfMeshPointerZero=false) override;\r
 \r
                //! adds a scene node for rendering a static mesh\r
                //! the returned pointer must not be dropped.\r
@@ -69,22 +69,22 @@ namespace scene
                        const core::vector3df& position = core::vector3df(0,0,0),\r
                        const core::vector3df& rotation = core::vector3df(0,0,0),\r
                        const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f),\r
-                       bool alsoAddIfMeshPointerZero=false) _IRR_OVERRIDE_;\r
+                       bool alsoAddIfMeshPointerZero=false) override;\r
 \r
                //! renders the node.\r
-               virtual void render() _IRR_OVERRIDE_;\r
+               void render() override;\r
 \r
                //! returns the axis aligned bounding box of this node\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! registers a node for rendering it at a specific time.\r
-               virtual u32 registerNodeForRendering(ISceneNode* node, E_SCENE_NODE_RENDER_PASS pass = ESNRP_AUTOMATIC) _IRR_OVERRIDE_;\r
+               u32 registerNodeForRendering(ISceneNode* node, E_SCENE_NODE_RENDER_PASS pass = ESNRP_AUTOMATIC) override;\r
 \r
                //! Clear all nodes which are currently registered for rendering\r
-               virtual void clearAllRegisteredNodesForRendering() _IRR_OVERRIDE_;\r
+               void clearAllRegisteredNodesForRendering() override;\r
 \r
                //! draws all scene nodes\r
-               virtual void drawAll() _IRR_OVERRIDE_;\r
+               void drawAll() override;\r
 \r
                //! Adds a camera scene node to the tree and sets it as active camera.\r
                //! \param position: Position of the space relative to its parent where the camera will be placed.\r
@@ -95,7 +95,7 @@ namespace scene
                virtual ICameraSceneNode* addCameraSceneNode(ISceneNode* parent = 0,\r
                        const core::vector3df& position = core::vector3df(0,0,0),\r
                        const core::vector3df& lookat = core::vector3df(0,0,100),\r
-                       s32 id=-1, bool makeActive=true) _IRR_OVERRIDE_;\r
+                       s32 id=-1, bool makeActive=true) override;\r
 \r
                //! Adds a billboard scene node to the scene. A billboard is like a 3d sprite: A 2d element,\r
                //! which always looks to the camera. It is usually used for things like explosions, fire,\r
@@ -103,103 +103,103 @@ namespace scene
                virtual IBillboardSceneNode* addBillboardSceneNode(ISceneNode* parent = 0,\r
                        const core::dimension2d<f32>& size = core::dimension2d<f32>(10.0f, 10.0f),\r
                        const core::vector3df& position = core::vector3df(0,0,0), s32 id=-1,\r
-                       video::SColor shadeTop = 0xFFFFFFFF, video::SColor shadeBottom = 0xFFFFFFFF) _IRR_OVERRIDE_;\r
+                       video::SColor shadeTop = 0xFFFFFFFF, video::SColor shadeBottom = 0xFFFFFFFF) override;\r
 \r
                //! Adds a dummy transformation scene node to the scene graph.\r
                virtual IDummyTransformationSceneNode* addDummyTransformationSceneNode(\r
-                       ISceneNode* parent=0, s32 id=-1) _IRR_OVERRIDE_;\r
+                       ISceneNode* parent=0, s32 id=-1) override;\r
 \r
                //! Adds an empty scene node.\r
-               virtual ISceneNode* addEmptySceneNode(ISceneNode* parent, s32 id=-1) _IRR_OVERRIDE_;\r
+               ISceneNode* addEmptySceneNode(ISceneNode* parent, s32 id=-1) override;\r
 \r
                //! Returns the root scene node. This is the scene node which is parent\r
                //! of all scene nodes. The root scene node is a special scene node which\r
                //! only exists to manage all scene nodes. It is not rendered and cannot\r
                //! be removed from the scene.\r
                //! \return Pointer to the root scene node.\r
-               virtual ISceneNode* getRootSceneNode() _IRR_OVERRIDE_;\r
+               ISceneNode* getRootSceneNode() override;\r
 \r
                //! Returns the current active camera.\r
                //! \return The active camera is returned. Note that this can be NULL, if there\r
                //! was no camera created yet.\r
-               virtual ICameraSceneNode* getActiveCamera() const _IRR_OVERRIDE_;\r
+               ICameraSceneNode* getActiveCamera() const override;\r
 \r
                //! Sets the active camera. The previous active camera will be deactivated.\r
                //! \param camera: The new camera which should be active.\r
-               virtual void setActiveCamera(ICameraSceneNode* camera) _IRR_OVERRIDE_;\r
+               void setActiveCamera(ICameraSceneNode* camera) override;\r
 \r
                //! Adds an external mesh loader.\r
-               virtual void addExternalMeshLoader(IMeshLoader* externalLoader) _IRR_OVERRIDE_;\r
+               void addExternalMeshLoader(IMeshLoader* externalLoader) override;\r
 \r
                //! Returns the number of mesh loaders supported by Irrlicht at this time\r
-               virtual u32 getMeshLoaderCount() const _IRR_OVERRIDE_;\r
+               u32 getMeshLoaderCount() const override;\r
 \r
                //! Retrieve the given mesh loader\r
-               virtual IMeshLoader* getMeshLoader(u32 index) const _IRR_OVERRIDE_;\r
+               IMeshLoader* getMeshLoader(u32 index) const override;\r
 \r
                //! Returns a pointer to the scene collision manager.\r
-               virtual ISceneCollisionManager* getSceneCollisionManager() _IRR_OVERRIDE_;\r
+               ISceneCollisionManager* getSceneCollisionManager() override;\r
 \r
                //! Returns a pointer to the mesh manipulator.\r
-               virtual IMeshManipulator* getMeshManipulator() _IRR_OVERRIDE_;\r
+               IMeshManipulator* getMeshManipulator() override;\r
 \r
                //! Adds a scene node to the deletion queue.\r
-               virtual void addToDeletionQueue(ISceneNode* node) _IRR_OVERRIDE_;\r
+               void addToDeletionQueue(ISceneNode* node) override;\r
 \r
                //! Returns the first scene node with the specified id.\r
-               virtual ISceneNode* getSceneNodeFromId(s32 id, ISceneNode* start=0) _IRR_OVERRIDE_;\r
+               ISceneNode* getSceneNodeFromId(s32 id, ISceneNode* start=0) override;\r
 \r
                //! Returns the first scene node with the specified name.\r
-               virtual ISceneNode* getSceneNodeFromName(const c8* name, ISceneNode* start=0) _IRR_OVERRIDE_;\r
+               ISceneNode* getSceneNodeFromName(const c8* name, ISceneNode* start=0) override;\r
 \r
                //! Returns the first scene node with the specified type.\r
-               virtual ISceneNode* getSceneNodeFromType(scene::ESCENE_NODE_TYPE type, ISceneNode* start=0) _IRR_OVERRIDE_;\r
+               ISceneNode* getSceneNodeFromType(scene::ESCENE_NODE_TYPE type, ISceneNode* start=0) override;\r
 \r
                //! returns scene nodes by type.\r
-               virtual void getSceneNodesFromType(ESCENE_NODE_TYPE type, core::array<scene::ISceneNode*>& outNodes, ISceneNode* start=0) _IRR_OVERRIDE_;\r
+               void getSceneNodesFromType(ESCENE_NODE_TYPE type, core::array<scene::ISceneNode*>& outNodes, ISceneNode* start=0) override;\r
 \r
                //! Posts an input event to the environment. Usually you do not have to\r
                //! use this method, it is used by the internal engine.\r
-               virtual bool postEventFromUser(const SEvent& event) _IRR_OVERRIDE_;\r
+               bool postEventFromUser(const SEvent& event) override;\r
 \r
                //! Clears the whole scene. All scene nodes are removed.\r
-               virtual void clear() _IRR_OVERRIDE_;\r
+               void clear() override;\r
 \r
                //! Removes all children of this scene node\r
-               virtual void removeAll() _IRR_OVERRIDE_;\r
+               void removeAll() override;\r
 \r
                //! Returns interface to the parameters set in this scene.\r
-               virtual io::IAttributes* getParameters() _IRR_OVERRIDE_;\r
+               io::IAttributes* getParameters() override;\r
 \r
                //! Returns current render pass.\r
-               virtual E_SCENE_NODE_RENDER_PASS getSceneNodeRenderPass() const _IRR_OVERRIDE_;\r
+               E_SCENE_NODE_RENDER_PASS getSceneNodeRenderPass() const override;\r
 \r
                //! Creates a new scene manager.\r
-               virtual ISceneManager* createNewSceneManager(bool cloneContent) _IRR_OVERRIDE_;\r
+               ISceneManager* createNewSceneManager(bool cloneContent) override;\r
 \r
                //! Returns type of the scene node\r
-               virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SCENE_MANAGER; }\r
+               ESCENE_NODE_TYPE getType() const override { return ESNT_SCENE_MANAGER; }\r
 \r
                //! Returns a mesh writer implementation if available\r
-               virtual IMeshWriter* createMeshWriter(EMESH_WRITER_TYPE type) _IRR_OVERRIDE_;\r
+               IMeshWriter* createMeshWriter(EMESH_WRITER_TYPE type) override;\r
 \r
                //! Get a skinned mesh, which is not available as header-only code\r
-               virtual ISkinnedMesh* createSkinnedMesh() _IRR_OVERRIDE_;\r
+               ISkinnedMesh* createSkinnedMesh() override;\r
 \r
                //! Sets ambient color of the scene\r
-               virtual void setAmbientLight(const video::SColorf &ambientColor) _IRR_OVERRIDE_;\r
+               void setAmbientLight(const video::SColorf &ambientColor) override;\r
 \r
                //! Returns ambient color of the scene\r
-               virtual const video::SColorf& getAmbientLight() const _IRR_OVERRIDE_;\r
+               const video::SColorf& getAmbientLight() const override;\r
 \r
                //! Get current render time.\r
-               virtual E_SCENE_NODE_RENDER_PASS getCurrentRenderPass() const _IRR_OVERRIDE_ { return CurrentRenderPass; }\r
+               E_SCENE_NODE_RENDER_PASS getCurrentRenderPass() const override { return CurrentRenderPass; }\r
 \r
                //! Set current render time.\r
-               virtual void setCurrentRenderPass(E_SCENE_NODE_RENDER_PASS nextPass) _IRR_OVERRIDE_ { CurrentRenderPass = nextPass; }\r
+               void setCurrentRenderPass(E_SCENE_NODE_RENDER_PASS nextPass) override { CurrentRenderPass = nextPass; }\r
 \r
                //! returns if node is culled\r
-               virtual bool isCulled(const ISceneNode* node) const _IRR_OVERRIDE_;\r
+               bool isCulled(const ISceneNode* node) const override;\r
 \r
        private:\r
 \r
index f70fc3f79ebdcff37adc4aabf195569fe1602eea..4c919ccfd7d9161fbe853ba5a26a55dda3589a97 100644 (file)
@@ -33,122 +33,122 @@ namespace scene
                virtual ~CSkinnedMesh();\r
 \r
                //! returns the amount of frames. If the amount is 1, it is a static (=non animated) mesh.\r
-               virtual u32 getFrameCount() const _IRR_OVERRIDE_;\r
+               u32 getFrameCount() const override;\r
 \r
                //! Gets the default animation speed of the animated mesh.\r
                /** \return Amount of frames per second. If the amount is 0, it is a static, non animated mesh. */\r
-               virtual f32 getAnimationSpeed() const _IRR_OVERRIDE_;\r
+               f32 getAnimationSpeed() const override;\r
 \r
                //! Gets the frame count of the animated mesh.\r
                /** \param fps Frames per second to play the animation with. If the amount is 0, it is not animated.\r
                The actual speed is set in the scene node the mesh is instantiated in.*/\r
-               virtual void setAnimationSpeed(f32 fps) _IRR_OVERRIDE_;\r
+               void setAnimationSpeed(f32 fps) override;\r
 \r
                //! returns the animated mesh based on a detail level (which is ignored)\r
-               virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) _IRR_OVERRIDE_;\r
+               IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) override;\r
 \r
                //! Animates this mesh's joints based on frame input\r
                //! blend: {0-old position, 1-New position}\r
-               virtual void animateMesh(f32 frame, f32 blend) _IRR_OVERRIDE_;\r
+               void animateMesh(f32 frame, f32 blend) override;\r
 \r
                //! Preforms a software skin on this mesh based of joint positions\r
-               virtual void skinMesh() _IRR_OVERRIDE_;\r
+               void skinMesh() override;\r
 \r
                //! returns amount of mesh buffers.\r
-               virtual u32 getMeshBufferCount() const _IRR_OVERRIDE_;\r
+               u32 getMeshBufferCount() const override;\r
 \r
                //! returns pointer to a mesh buffer\r
-               virtual IMeshBuffer* getMeshBuffer(u32 nr) const _IRR_OVERRIDE_;\r
+               IMeshBuffer* getMeshBuffer(u32 nr) const override;\r
 \r
                //! Returns pointer to a mesh buffer which fits a material\r
                /** \param material: material to search for\r
                \return Returns the pointer to the mesh buffer or\r
                NULL if there is no such mesh buffer. */\r
-               virtual IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const _IRR_OVERRIDE_;\r
+               IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const override;\r
 \r
                //! returns an axis aligned bounding box\r
-               virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;\r
+               const core::aabbox3d<f32>& getBoundingBox() const override;\r
 \r
                //! set user axis aligned bounding box\r
-               virtual void setBoundingBox( const core::aabbox3df& box) _IRR_OVERRIDE_;\r
+               void setBoundingBox( const core::aabbox3df& box) override;\r
 \r
                //! sets a flag of all contained materials to a new value\r
-               virtual void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) _IRR_OVERRIDE_;\r
+               void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue) override;\r
 \r
                //! set the hardware mapping hint, for driver\r
-               virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_;\r
+               void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) override;\r
 \r
                //! flags the meshbuffer as changed, reloads hardware buffers\r
-               virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_;\r
+               void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) override;\r
 \r
                //! Returns the type of the animated mesh.\r
-               virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_;\r
+               E_ANIMATED_MESH_TYPE getMeshType() const override;\r
 \r
                //! Gets joint count.\r
-               virtual u32 getJointCount() const _IRR_OVERRIDE_;\r
+               u32 getJointCount() const override;\r
 \r
                //! Gets the name of a joint.\r
-               virtual const c8* getJointName(u32 number) const _IRR_OVERRIDE_;\r
+               const c8* getJointName(u32 number) const override;\r
 \r
                //! Gets a joint number from its name\r
-               virtual s32 getJointNumber(const c8* name) const _IRR_OVERRIDE_;\r
+               s32 getJointNumber(const c8* name) const override;\r
 \r
                //! uses animation from another mesh\r
-               virtual bool useAnimationFrom(const ISkinnedMesh *mesh) _IRR_OVERRIDE_;\r
+               bool useAnimationFrom(const ISkinnedMesh *mesh) override;\r
 \r
                //! Update Normals when Animating\r
                //! False= Don't (default)\r
                //! True = Update normals, slower\r
-               virtual void updateNormalsWhenAnimating(bool on) _IRR_OVERRIDE_;\r
+               void updateNormalsWhenAnimating(bool on) override;\r
 \r
                //! Sets Interpolation Mode\r
-               virtual void setInterpolationMode(E_INTERPOLATION_MODE mode) _IRR_OVERRIDE_;\r
+               void setInterpolationMode(E_INTERPOLATION_MODE mode) override;\r
 \r
                //! Convertes the mesh to contain tangent information\r
-               virtual void convertMeshToTangents() _IRR_OVERRIDE_;\r
+               void convertMeshToTangents() override;\r
 \r
                //! Does the mesh have no animation\r
-               virtual bool isStatic() _IRR_OVERRIDE_;\r
+               bool isStatic() override;\r
 \r
                //! (This feature is not implemented in irrlicht yet)\r
-               virtual bool setHardwareSkinning(bool on) _IRR_OVERRIDE_;\r
+               bool setHardwareSkinning(bool on) override;\r
 \r
                //! Refreshes vertex data cached in joints such as positions and normals\r
-               virtual void refreshJointCache() _IRR_OVERRIDE_;\r
+               void refreshJointCache() override;\r
 \r
                //! Moves the mesh into static position.\r
-               virtual void resetAnimation() _IRR_OVERRIDE_;\r
+               void resetAnimation() override;\r
 \r
                //Interface for the mesh loaders (finalize should lock these functions, and they should have some prefix like loader_\r
                //these functions will use the needed arrays, set values, etc to help the loaders\r
 \r
                //! exposed for loaders to add mesh buffers\r
-               virtual core::array<SSkinMeshBuffer*> &getMeshBuffers() _IRR_OVERRIDE_;\r
+               core::array<SSkinMeshBuffer*> &getMeshBuffers() override;\r
 \r
                //! alternative method for adding joints\r
-               virtual core::array<SJoint*> &getAllJoints() _IRR_OVERRIDE_;\r
+               core::array<SJoint*> &getAllJoints() override;\r
 \r
                //! alternative method for adding joints\r
-               virtual const core::array<SJoint*> &getAllJoints() const _IRR_OVERRIDE_;\r
+               const core::array<SJoint*> &getAllJoints() const override;\r
 \r
                //! loaders should call this after populating the mesh\r
-               virtual void finalize() _IRR_OVERRIDE_;\r
+               void finalize() override;\r
 \r
                //! Adds a new meshbuffer to the mesh, access it as last one\r
-               virtual SSkinMeshBuffer *addMeshBuffer() _IRR_OVERRIDE_;\r
+               SSkinMeshBuffer *addMeshBuffer() override;\r
 \r
                //! Adds a new joint to the mesh, access it as last one\r
-               virtual SJoint *addJoint(SJoint *parent=0) _IRR_OVERRIDE_;\r
+               SJoint *addJoint(SJoint *parent=0) override;\r
 \r
                //! Adds a new position key to the mesh, access it as last one\r
-               virtual SPositionKey *addPositionKey(SJoint *joint) _IRR_OVERRIDE_;\r
+               SPositionKey *addPositionKey(SJoint *joint) override;\r
                //! Adds a new rotation key to the mesh, access it as last one\r
-               virtual SRotationKey *addRotationKey(SJoint *joint) _IRR_OVERRIDE_;\r
+               SRotationKey *addRotationKey(SJoint *joint) override;\r
                //! Adds a new scale key to the mesh, access it as last one\r
-               virtual SScaleKey *addScaleKey(SJoint *joint) _IRR_OVERRIDE_;\r
+               SScaleKey *addScaleKey(SJoint *joint) override;\r
 \r
                //! Adds a new weight to the mesh, access it as last one\r
-               virtual SWeight *addWeight(SJoint *joint) _IRR_OVERRIDE_;\r
+               SWeight *addWeight(SJoint *joint) override;\r
 \r
                virtual void updateBoundingBox(void);\r
 \r
index caf2bf5f5a61eefa4fa172f981c11682a7aea951..d3b6ca5e6a2c5d93c49d000dc7fe78b10e64cf8e 100644 (file)
@@ -24,13 +24,13 @@ namespace irr
                /** This value does not start with 0 when the application starts.\r
                For example in one implementation the value returned could be the\r
                amount of milliseconds which have elapsed since the system was started. */\r
-               virtual u32 getRealTime() const _IRR_OVERRIDE_\r
+               u32 getRealTime() const override\r
                {\r
                        return os::Timer::getRealTime();\r
                }\r
 \r
                //! Get current time and date in calendar form\r
-               virtual RealTimeDate getRealTimeAndDate() const _IRR_OVERRIDE_\r
+               RealTimeDate getRealTimeAndDate() const override\r
                {\r
                        return os::Timer::getRealTimeAndDate();\r
                }\r
@@ -39,13 +39,13 @@ namespace irr
                /** This value starts with 0 and can be manipulated using setTime(), stopTimer(),\r
                startTimer(), etc. This value depends on the set speed of the timer if the timer\r
                is stopped, etc. If you need the system time, use getRealTime() */\r
-               virtual u32 getTime() const _IRR_OVERRIDE_\r
+               u32 getTime() const override\r
                {\r
                        return os::Timer::getTime();\r
                }\r
 \r
                //! sets current virtual time\r
-               virtual void setTime(u32 time) _IRR_OVERRIDE_\r
+               void setTime(u32 time) override\r
                {\r
                        os::Timer::setTime(time);\r
                }\r
@@ -54,7 +54,7 @@ namespace irr
                /** The timer is reference counted, which means everything which calls\r
                stopTimer() will also have to call startTimer(), otherwise the timer may not start/stop\r
                corretly again. */\r
-               virtual void stop() _IRR_OVERRIDE_\r
+               void stop() override\r
                {\r
                        os::Timer::stopTimer();\r
                }\r
@@ -63,7 +63,7 @@ namespace irr
                /** The timer is reference counted, which means everything which calls\r
                stopTimer() will also have to call startTimer(), otherwise the timer may not start/stop\r
                corretly again. */\r
-               virtual void start() _IRR_OVERRIDE_\r
+               void start() override\r
                {\r
                        os::Timer::startTimer();\r
                }\r
@@ -71,7 +71,7 @@ namespace irr
                //! Sets the speed of the timer\r
                /** The speed is the factor with which the time is running faster or slower then the\r
                real system time. */\r
-               virtual void setSpeed(f32 speed = 1.0f) _IRR_OVERRIDE_\r
+               void setSpeed(f32 speed = 1.0f) override\r
                {\r
                        os::Timer::setSpeed(speed);\r
                }\r
@@ -79,13 +79,13 @@ namespace irr
                //! Returns current speed of the timer\r
                /** The speed is the factor with which the time is running faster or slower then the\r
                real system time. */\r
-               virtual f32 getSpeed() const _IRR_OVERRIDE_\r
+               f32 getSpeed() const override\r
                {\r
                        return os::Timer::getSpeed();\r
                }\r
 \r
                //! Returns if game timer is currently stopped\r
-               virtual bool isStopped() const _IRR_OVERRIDE_\r
+               bool isStopped() const override\r
                {\r
                        bool ret = os::Timer::isStopped();\r
                        return ret;\r
@@ -95,7 +95,7 @@ namespace irr
                /** Makes the virtual timer update the time value based on the real time. This is\r
                called automatically when calling IrrlichtDevice::run(), but you can call it manually\r
                if you don't use this method. */\r
-               virtual void tick() _IRR_OVERRIDE_\r
+               void tick() override\r
                {\r
                        os::Timer::tick();\r
                }\r
index 23d1485fafcbdef9566ad20ffb73d231a3d69aa1..bd750650cf2e337741120c6738adea828bbf5e5f 100644 (file)
@@ -33,34 +33,34 @@ namespace video
                ~CWGLManager();\r
 \r
         // Initialize\r
-        virtual bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) _IRR_OVERRIDE_;\r
+        bool initialize(const SIrrlichtCreationParameters& params, const SExposedVideoData& data) override;\r
 \r
         // Terminate\r
-        virtual void terminate() _IRR_OVERRIDE_;\r
+        void terminate() override;\r
 \r
         // Create surface.\r
-        virtual bool generateSurface() _IRR_OVERRIDE_;\r
+        bool generateSurface() override;\r
 \r
         // Destroy surface.\r
-        virtual void destroySurface() _IRR_OVERRIDE_;\r
+        void destroySurface() override;\r
 \r
         // Create context.\r
-        virtual bool generateContext() _IRR_OVERRIDE_;\r
+        bool generateContext() override;\r
 \r
         // Destroy EGL context.\r
-        virtual void destroyContext() _IRR_OVERRIDE_;\r
+        void destroyContext() override;\r
 \r
                //! Get current context\r
-               virtual const SExposedVideoData& getContext() const _IRR_OVERRIDE_;\r
+               const SExposedVideoData& getContext() const override;\r
 \r
                //! Change render context, disable old and activate new defined by videoData\r
-               virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) _IRR_OVERRIDE_;\r
+               bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) override;\r
 \r
                // Get procedure address.\r
-               virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;\r
+               void* getProcAddress(const std::string &procName) override;\r
 \r
         // Swap buffers.\r
-        virtual bool swapBuffers() _IRR_OVERRIDE_;\r
+        bool swapBuffers() override;\r
 \r
     private:\r
         SIrrlichtCreationParameters Params;\r
index dd1dad820bbb23e250f91670d3fbe1f63c9d0b4d..ce2643229db5b8abba43fa6b5051bcb312ebf151 100644 (file)
@@ -37,10 +37,10 @@ namespace video
                virtual ~CWebGL1Driver();\r
 \r
                //! Returns type of video driver\r
-               virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_;\r
+               E_DRIVER_TYPE getDriverType() const override;\r
 \r
                //! Is VBO recommended on this mesh?\r
-               virtual bool isHardwareBufferRecommend(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_\r
+               bool isHardwareBufferRecommend(const scene::IMeshBuffer* mb) override\r
                {\r
                        // All buffers must be bound, WebGL doesn't allow sending unbound buffers at all.\r
                        return true;\r
@@ -49,22 +49,22 @@ namespace video
                //! draws a vertex primitive list\r
                virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,\r
                                const void* indexList, u32 primitiveCount,\r
-                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) _IRR_OVERRIDE_;\r
+                               E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) override;\r
 \r
                //! Draws a mesh buffer\r
-               virtual void drawMeshBuffer(const scene::IMeshBuffer* mb) _IRR_OVERRIDE_;\r
+               void drawMeshBuffer(const scene::IMeshBuffer* mb) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture,\r
                                const core::position2d<s32>& destPos,\r
                                const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                               SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture = false) override;\r
 \r
                virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,\r
                        const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,\r
-                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                       const video::SColor* const colors = 0, bool useAlphaChannelOfTexture = false) override;\r
 \r
                // internally used\r
-               virtual void draw2DImage(const video::ITexture* texture, u32 layer, bool flip)  _IRR_OVERRIDE_;\r
+               void draw2DImage(const video::ITexture* texture, u32 layer, bool flip)  override;\r
 \r
                //! draws a set of 2d images\r
                virtual void draw2DImageBatch(const video::ITexture* texture,\r
@@ -73,58 +73,58 @@ namespace video
                                const core::array<s32>& indices, s32 kerningWidth = 0,\r
                                const core::rect<s32>* clipRect = 0,\r
                                SColor color = SColor(255, 255, 255, 255),\r
-                               bool useAlphaChannelOfTexture = false) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture = false) override;\r
 \r
                void draw2DImageBatch(const video::ITexture* texture,\r
                                const core::array<core::position2d<s32> >& positions,\r
                                const core::array<core::rect<s32> >& sourceRects,\r
                                const core::rect<s32>* clipRect,\r
                                SColor color,\r
-                               bool useAlphaChannelOfTexture) _IRR_OVERRIDE_;\r
+                               bool useAlphaChannelOfTexture) override;\r
 \r
                //! draw an 2d rectangle\r
                virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos,\r
-                               const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip = 0) override;\r
 \r
                //!Draws an 2d rectangle with a gradient.\r
                virtual void draw2DRectangle(const core::rect<s32>& pos,\r
                                SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown,\r
-                               const core::rect<s32>* clip = 0) _IRR_OVERRIDE_;\r
+                               const core::rect<s32>* clip = 0) override;\r
 \r
                //! Draws a 2d line.\r
                virtual void draw2DLine(const core::position2d<s32>& start,\r
                                const core::position2d<s32>& end,\r
-                               SColor color = SColor(255, 255, 255, 255)) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255)) override;\r
 \r
                //! Draws a single pixel\r
-               virtual void drawPixel(u32 x, u32 y, const SColor & color) _IRR_OVERRIDE_;\r
+               void drawPixel(u32 x, u32 y, const SColor & color) override;\r
 \r
                //! Draws a 3d line.\r
                virtual void draw3DLine(const core::vector3df& start,\r
                                const core::vector3df& end,\r
-                               SColor color = SColor(255, 255, 255, 255)) _IRR_OVERRIDE_;\r
+                               SColor color = SColor(255, 255, 255, 255)) override;\r
 \r
                //! Draws a shadow volume into the stencil buffer.\r
-               virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) _IRR_OVERRIDE_;\r
+               void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail, u32 debugDataVisible=0) override;\r
 \r
                //! Fills the stencil shadow with color.\r
                virtual void drawStencilShadow(bool clearStencilBuffer=false,\r
                        video::SColor leftUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor rightUpEdge = video::SColor(0,0,0,0),\r
                        video::SColor leftDownEdge = video::SColor(0,0,0,0),\r
-                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) _IRR_OVERRIDE_;\r
+                       video::SColor rightDownEdge = video::SColor(0,0,0,0)) override;\r
 \r
                //! Get ZBuffer bits.\r
-               virtual GLenum getZBufferBits() const _IRR_OVERRIDE_;\r
+               GLenum getZBufferBits() const override;\r
 \r
                virtual bool getColorFormatParameters(ECOLOR_FORMAT format, GLint& internalFormat, GLenum& pixelFormat,\r
-                       GLenum& pixelType, void(**converter)(const void*, s32, void*)) const _IRR_OVERRIDE_;\r
+                       GLenum& pixelType, void(**converter)(const void*, s32, void*)) const override;\r
 \r
        protected:\r
                // create a meshbuffer which has as many vertices as indices\r
                scene::SMeshBuffer* createSimpleMeshBuffer(irr::u32 numVertices, scene::E_PRIMITIVE_TYPE primitiveType, scene::E_HARDWARE_MAPPING vertexMappingHint=scene::EHM_STREAM, scene::E_HARDWARE_MAPPING indexMappingHint=scene::EHM_STATIC) const;\r
 \r
-               virtual bool genericDriverInit(const core::dimension2d<u32>& screenSize, bool stencilBuffer) _IRR_OVERRIDE_;\r
+               bool genericDriverInit(const core::dimension2d<u32>& screenSize, bool stencilBuffer) override;\r
                void initWebGLExtensions();\r
 \r
        private:\r
index d0e2c8040ab954b51529a2ecf57128228c0e8fd2..b09314b093c5455f03e5f59db90742915de122c3 100644 (file)
@@ -27,19 +27,19 @@ namespace io
                virtual ~CWriteFile();\r
 \r
                //! Reads an amount of bytes from the file.\r
-               virtual size_t write(const void* buffer, size_t sizeToWrite) _IRR_OVERRIDE_;\r
+               size_t write(const void* buffer, size_t sizeToWrite) override;\r
 \r
                //! Changes position in file, returns true if successful.\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! Returns the current position in the file.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! Returns name of file.\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
                //! Flush the content of the buffer in the file\r
-               virtual bool flush() _IRR_OVERRIDE_;\r
+               bool flush() override;\r
 \r
                //! returns if file is open\r
                bool isOpen() const;\r
index 8021e8f4b9834f00e7950266cb6924d4dbe8be88..cfedfd04be9b049420fea9a16ffb300597cac510 100644 (file)
@@ -31,13 +31,13 @@ public:
 \r
        //! returns true if the file maybe is able to be loaded by this class\r
        //! based on the file extension (e.g. ".cob")\r
-       virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;\r
+       bool isALoadableFileExtension(const io::path& filename) const override;\r
 \r
        //! creates/loads an animated mesh from the file.\r
        //! \return Pointer to the created mesh. Returns 0 if loading failed.\r
        //! If you no longer need the mesh, you should call IAnimatedMesh::drop().\r
        //! See IReferenceCounted::drop() for more information.\r
-       virtual IAnimatedMesh* createMesh(io::IReadFile* file) _IRR_OVERRIDE_;\r
+       IAnimatedMesh* createMesh(io::IReadFile* file) override;\r
 \r
        struct SXMesh\r
        {\r
index 286c4ebfa085b2dec5dc3e6274cfd0fc9f394e1a..458b6db4093a5806c9f57971e91273dbc99c2ab8 100644 (file)
@@ -145,28 +145,28 @@ namespace io
 \r
                //! returns true if the file maybe is able to be loaded by this class\r
                //! based on the file extension (e.g. ".zip")\r
-               virtual bool isALoadableFileFormat(const io::path& filename) const _IRR_OVERRIDE_;\r
+               bool isALoadableFileFormat(const io::path& filename) const override;\r
 \r
                //! Check if the file might be loaded by this class\r
                /** Check might look into the file.\r
                \param file File handle to check.\r
                \return True if file seems to be loadable. */\r
-               virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;\r
+               bool isALoadableFileFormat(io::IReadFile* file) const override;\r
 \r
                //! Check to see if the loader can create archives of this type.\r
                /** Check based on the archive type.\r
                \param fileType The archive type to check.\r
                \return True if the archile loader supports this type, false if not */\r
-               virtual bool isALoadableFileFormat(E_FILE_ARCHIVE_TYPE fileType) const _IRR_OVERRIDE_;\r
+               bool isALoadableFileFormat(E_FILE_ARCHIVE_TYPE fileType) const override;\r
 \r
                //! Creates an archive from the filename\r
                /** \param file File handle to check.\r
                \return Pointer to newly created archive, or 0 upon error. */\r
-               virtual IFileArchive* createArchive(const io::path& filename, bool ignoreCase, bool ignorePaths) const _IRR_OVERRIDE_;\r
+               IFileArchive* createArchive(const io::path& filename, bool ignoreCase, bool ignorePaths) const override;\r
 \r
                //! creates/loads an archive from the file.\r
                //! \return Pointer to the created archive. Returns 0 if loading failed.\r
-               virtual io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const _IRR_OVERRIDE_;\r
+               io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const override;\r
 \r
        private:\r
                io::IFileSystem* FileSystem;\r
@@ -186,19 +186,19 @@ namespace io
                virtual ~CZipReader();\r
 \r
                //! opens a file by file name\r
-               virtual IReadFile* createAndOpenFile(const io::path& filename) _IRR_OVERRIDE_;\r
+               IReadFile* createAndOpenFile(const io::path& filename) override;\r
 \r
                //! opens a file by index\r
-               virtual IReadFile* createAndOpenFile(u32 index) _IRR_OVERRIDE_;\r
+               IReadFile* createAndOpenFile(u32 index) override;\r
 \r
                //! returns the list of files\r
-               virtual const IFileList* getFileList() const _IRR_OVERRIDE_;\r
+               const IFileList* getFileList() const override;\r
 \r
                //! get the archive type\r
-               virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_;\r
+               E_FILE_ARCHIVE_TYPE getType() const override;\r
 \r
                //! return the id of the file Archive\r
-               virtual const io::path& getArchiveName() const _IRR_OVERRIDE_ {return Path;}\r
+               const io::path& getArchiveName() const override {return Path;}\r
 \r
        protected:\r
 \r