Made Background::Draw receive const scene pointer
Former-commit-id: 2b84f8ea924714d81046f3dd29990939586e7622
This commit is contained in:
@@ -10,13 +10,15 @@
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Graphics/Enums.hpp>
|
||||
|
||||
class NzScene;
|
||||
|
||||
class NAZARA_API NzBackground
|
||||
{
|
||||
public:
|
||||
NzBackground() = default;
|
||||
~NzBackground();
|
||||
|
||||
virtual void Draw() const = 0;
|
||||
virtual void Draw(const NzScene* scene) const = 0;
|
||||
|
||||
virtual nzBackgroundType GetBackgroundType() const = 0;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ class NAZARA_API NzColorBackground : public NzBackground
|
||||
public:
|
||||
NzColorBackground(const NzColor& color = NzColor::Black);
|
||||
|
||||
void Draw() const;
|
||||
void Draw(const NzScene* scene) const;
|
||||
|
||||
nzBackgroundType GetBackgroundType() const;
|
||||
NzColor GetColor() const;
|
||||
|
||||
@@ -16,7 +16,7 @@ class NAZARA_API NzTextureBackground : public NzBackground
|
||||
public:
|
||||
NzTextureBackground(NzTexture* texture);
|
||||
|
||||
void Draw() const;
|
||||
void Draw(const NzScene* scene) const;
|
||||
|
||||
nzBackgroundType GetBackgroundType() const;
|
||||
NzTexture* GetTexture() const;
|
||||
|
||||
Reference in New Issue
Block a user