Switch from Nz prefix to namespace Nz
What a huge commit Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
@@ -12,36 +12,39 @@
|
||||
#include <Nazara/Graphics/AbstractBackground.hpp>
|
||||
#include <Nazara/Renderer/UberShader.hpp>
|
||||
|
||||
class NzColorBackground;
|
||||
|
||||
using NzColorBackgroundConstRef = NzObjectRef<const NzColorBackground>;
|
||||
using NzColorBackgroundRef = NzObjectRef<NzColorBackground>;
|
||||
|
||||
class NAZARA_GRAPHICS_API NzColorBackground : public NzAbstractBackground
|
||||
namespace Nz
|
||||
{
|
||||
public:
|
||||
NzColorBackground(const NzColor& color = NzColor::Black);
|
||||
NzColorBackground(const NzColorBackground&) = default;
|
||||
NzColorBackground(NzColorBackground&&) = delete;
|
||||
class ColorBackground;
|
||||
|
||||
void Draw(const NzAbstractViewer* viewer) const;
|
||||
using ColorBackgroundConstRef = ObjectRef<const ColorBackground>;
|
||||
using ColorBackgroundRef = ObjectRef<ColorBackground>;
|
||||
|
||||
nzBackgroundType GetBackgroundType() const;
|
||||
NzColor GetColor() const;
|
||||
class NAZARA_GRAPHICS_API ColorBackground : public AbstractBackground
|
||||
{
|
||||
public:
|
||||
ColorBackground(const Color& color = Color::Black);
|
||||
ColorBackground(const ColorBackground&) = default;
|
||||
ColorBackground(ColorBackground&&) = delete;
|
||||
|
||||
void SetColor(const NzColor& color);
|
||||
void Draw(const AbstractViewer* viewer) const;
|
||||
|
||||
NzColorBackground& operator=(NzColorBackground&&) = delete;
|
||||
BackgroundType GetBackgroundType() const;
|
||||
Color GetColor() const;
|
||||
|
||||
template<typename... Args> static NzColorBackgroundRef New(Args&&... args);
|
||||
void SetColor(const Color& color);
|
||||
|
||||
private:
|
||||
NzColor m_color;
|
||||
NzUberShaderConstRef m_uberShader;
|
||||
const NzUberShaderInstance* m_uberShaderInstance;
|
||||
int m_materialDiffuseUniform;
|
||||
int m_vertexDepthUniform;
|
||||
};
|
||||
ColorBackground& operator=(ColorBackground&&) = delete;
|
||||
|
||||
template<typename... Args> static ColorBackgroundRef New(Args&&... args);
|
||||
|
||||
private:
|
||||
Color m_color;
|
||||
UberShaderConstRef m_uberShader;
|
||||
const UberShaderInstance* m_uberShaderInstance;
|
||||
int m_materialDiffuseUniform;
|
||||
int m_vertexDepthUniform;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Graphics/ColorBackground.inl>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user