virtuals removed

virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
This commit is contained in:
marauder2k7 2024-03-18 18:13:00 +00:00
parent 88a43f3137
commit efbe5e90f5
255 changed files with 2164 additions and 2164 deletions

View file

@ -59,7 +59,7 @@ public:
virtual ~RenderBinManager() {}
// SimObject
void onRemove();
void onRemove() override;
virtual void addElement( RenderInst *inst );
virtual void sort();

View file

@ -58,10 +58,10 @@ public:
virtual void setDeferredMaterial( DeferredMatInstance *mat );
// RenderBinManager interface
virtual void render(SceneRenderState * state);
virtual void sort();
virtual void clear();
virtual void addElement( RenderInst *inst );
void render(SceneRenderState * state) override;
void sort() override;
void clear() override;
void addElement( RenderInst *inst ) override;
// ConsoleObject
DECLARE_CONOBJECT(RenderDeferredMgr);
@ -77,7 +77,7 @@ public:
static const GFXStateBlockDesc &getOpaqueStencilTestDesc();
static const GFXStateBlockDesc &getOpaqueStenciWriteDesc(bool lightmappedGeometry = true);
virtual bool setTargetSize(const Point2I &newTargetSize);
bool setTargetSize(const Point2I &newTargetSize) override;
inline BaseMatInstance* getDeferredMaterial( BaseMatInstance *mat );
@ -96,7 +96,7 @@ protected:
virtual void _registerFeatures();
virtual void _unregisterFeatures();
virtual bool _updateTargets();
bool _updateTargets() override;
virtual void _createDeferredMaterial();
bool _lightManagerActivate(bool active);
@ -120,12 +120,12 @@ class ProcessedDeferredMaterial : public ProcessedShaderMaterial
public:
ProcessedDeferredMaterial(Material& mat, const RenderDeferredMgr *deferredMgr);
virtual U32 getNumStages();
U32 getNumStages() override;
virtual void addStateBlockDesc(const GFXStateBlockDesc& desc);
void addStateBlockDesc(const GFXStateBlockDesc& desc) override;
protected:
virtual void _determineFeatures( U32 stageNum, MaterialFeatureData &fd, const FeatureSet &features );
void _determineFeatures( U32 stageNum, MaterialFeatureData &fd, const FeatureSet &features ) override;
const RenderDeferredMgr *mDeferredMgr;
bool mIsLightmappedGeometry;
@ -147,11 +147,11 @@ public:
}
// MatInstance
virtual bool init( const FeatureSet &features,
const GFXVertexFormat *vertexFormat );
bool init( const FeatureSet &features,
const GFXVertexFormat *vertexFormat ) override;
protected:
virtual ProcessedMaterial* getShaderMaterial();
ProcessedMaterial* getShaderMaterial() override;
const RenderDeferredMgr *mDeferredMgr;
};
@ -166,7 +166,7 @@ public:
virtual DeferredMatInstance *getDeferredMatInstance() { return mHookedDeferredMatInst; }
virtual const MatInstanceHookType& getType() const { return Type; }
const MatInstanceHookType& getType() const override { return Type; }
/// The type for deferred material hooks.
static const MatInstanceHookType Type;
@ -190,17 +190,17 @@ public:
}
virtual String getName()
String getName() override
{
return "Linear Eye-Space Depth Conditioner";
}
virtual void processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd );
void processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd ) override;
protected:
virtual Var *_conditionOutput( Var *unconditionedOutput, MultiLine *meta );
virtual Var *_unconditionInput( Var *conditionedInput, MultiLine *meta );
Var *_conditionOutput( Var *unconditionedOutput, MultiLine *meta ) override;
Var *_unconditionInput( Var *conditionedInput, MultiLine *meta ) override;
virtual Var *printMethodHeader( MethodType methodType, const String &methodName, Stream &stream, MultiLine *meta );
Var *printMethodHeader( MethodType methodType, const String &methodName, Stream &stream, MultiLine *meta ) override;
};

View file

@ -41,7 +41,7 @@ public:
// RenderOcclusionMgr
virtual void init();
virtual void render(SceneRenderState * state);
void render(SceneRenderState * state) override;
// ConsoleObject
static void consoleInit();

View file

@ -57,7 +57,7 @@ class LightInfo;
struct RenderInst;
class MatrixSet;
class GFXPrimitiveBufferHandle;
class CustomShaderBindingData;
struct CustomShaderBindingData;
/// A RenderInstType hash value.
typedef U32 RenderInstTypeHash;

View file

@ -342,14 +342,14 @@ public:
RenderProbeMgr();
RenderProbeMgr(RenderInstType riType, F32 renderOrder, F32 processAddOrder);
virtual ~RenderProbeMgr();
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
// ConsoleObject
static void initPersistFields();
static void consoleInit();
virtual void addElement(RenderInst* inst) {};
void addElement(RenderInst* inst) override {};
DECLARE_CONOBJECT(RenderProbeMgr);
/// <summary>
@ -481,9 +481,9 @@ public:
/// <summary>
/// Renders the sorted probes list via a PostEffect to draw them into the buffer data in deferred mode.
/// </summary>
virtual void render(SceneRenderState * state);
void render(SceneRenderState * state) override;
virtual void clear() { mActiveProbes.clear(); Parent::clear(); }
void clear() override { mActiveProbes.clear(); Parent::clear(); }
};
RenderProbeMgr* RenderProbeMgr::getProbeManager()

View file

@ -77,7 +77,7 @@ public:
DECLARE_CONOBJECT(RenderTexTargetBinManager);
static void initPersistFields();
virtual bool onAdd();
bool onAdd() override;
protected: