mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 07:20:30 +01:00
refactor(sonar): use override instead of redundant virtual (cpp:S3471)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,36 +21,36 @@ struct IMaterial
|
||||
{
|
||||
static struct NullMaterial : public IMaterial
|
||||
{
|
||||
virtual void finalize(bool Loadnow) override {}
|
||||
virtual bool update() override
|
||||
void finalize(bool Loadnow) override {}
|
||||
bool update() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual float get_or_guess_opacity() const override
|
||||
float get_or_guess_opacity() const override
|
||||
{
|
||||
return 1.f;
|
||||
}
|
||||
virtual bool is_translucent() const override
|
||||
bool is_translucent() const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual glm::vec2 GetSize() const override
|
||||
glm::vec2 GetSize() const override
|
||||
{
|
||||
return {-1.f, -1.f};
|
||||
}
|
||||
virtual std::string GetName() const override
|
||||
std::string GetName() const override
|
||||
{
|
||||
return "";
|
||||
}
|
||||
virtual std::optional<float> GetSelfillum() const override
|
||||
std::optional<float> GetSelfillum() const override
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
virtual int GetShadowRank() const override
|
||||
int GetShadowRank() const override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
virtual texture_handle GetTexture(int slot) const override
|
||||
texture_handle GetTexture(int slot) const override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user