Added Texture backgrounds

Former-commit-id: 8aa98a9b8bee5fbf1b5eefa958a7b9095b784cf5
This commit is contained in:
Lynix
2013-03-22 11:15:17 +01:00
parent aecc5919d3
commit ea2cc97169
4 changed files with 234 additions and 8 deletions

View File

@@ -0,0 +1,30 @@
// Copyright (C) 2013 Jérôme Leclercq
// This file is part of the "Nazara Engine - 2D Module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_TEXTUREBACKGROUND_HPP
#define NAZARA_TEXTUREBACKGROUND_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/2D/Background.hpp>
#include <Nazara/Renderer/Texture.hpp>
class NAZARA_API NzTextureBackground : public NzBackground
{
public:
NzTextureBackground(NzTexture* texture);
void Draw() const;
nzBackgroundType GetBackgroundType() const;
NzTexture* GetTexture() const;
void SetTexture(NzTexture* texture);
private:
NzTextureRef m_texture;
};
#endif // NAZARA_TEXTUREBACKGROUND_HPP