Graphics/Backgrounds: Update backgrounds to new coding-style
Former-commit-id: 9f96b93706fd8417d6262392f0ce9ab9ca1985c3
This commit is contained in:
@@ -12,18 +12,24 @@
|
||||
#include <Nazara/Renderer/UberShader.hpp>
|
||||
#include <Nazara/Renderer/Texture.hpp>
|
||||
|
||||
class NzTextureBackground;
|
||||
|
||||
using NzTextureBackgroundConstRef = NzObjectRef<const NzTextureBackground>;
|
||||
using NzTextureBackgroundRef = NzObjectRef<NzTextureBackground>;
|
||||
|
||||
class NAZARA_GRAPHICS_API NzTextureBackground : public NzAbstractBackground
|
||||
{
|
||||
public:
|
||||
NzTextureBackground();
|
||||
NzTextureBackground(NzTexture* texture);
|
||||
NzTextureBackground(NzTextureRef texture = NzTextureRef());
|
||||
|
||||
void Draw(const NzAbstractViewer* viewer) const;
|
||||
|
||||
nzBackgroundType GetBackgroundType() const;
|
||||
NzTexture* GetTexture() const;
|
||||
inline const NzTextureRef& GetTexture() const;
|
||||
|
||||
void SetTexture(NzTexture* texture);
|
||||
inline void SetTexture(NzTextureRef texture);
|
||||
|
||||
template<typename... Args> static NzTextureBackgroundRef New(Args&&... args);
|
||||
|
||||
private:
|
||||
NzTextureRef m_texture;
|
||||
@@ -34,4 +40,6 @@ class NAZARA_GRAPHICS_API NzTextureBackground : public NzAbstractBackground
|
||||
int m_vertexDepthUniform;
|
||||
};
|
||||
|
||||
#include <Nazara/Graphics/TextureBackground.inl>
|
||||
|
||||
#endif // NAZARA_TEXTUREBACKGROUND_HPP
|
||||
|
||||
Reference in New Issue
Block a user