Implement back text rendering (WIP)
This commit is contained in:
35
include/Nazara/Graphics/GuillotineTextureAtlas.hpp
Normal file
35
include/Nazara/Graphics/GuillotineTextureAtlas.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Graphics module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_GUILLOTINETEXTUREATLAS_HPP
|
||||
#define NAZARA_GUILLOTINETEXTUREATLAS_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Graphics/Config.hpp>
|
||||
#include <Nazara/Utility/GuillotineImageAtlas.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class RenderDevice;
|
||||
|
||||
class NAZARA_GRAPHICS_API GuillotineTextureAtlas : public GuillotineImageAtlas
|
||||
{
|
||||
public:
|
||||
inline GuillotineTextureAtlas(RenderDevice& renderDevice);
|
||||
~GuillotineTextureAtlas() = default;
|
||||
|
||||
DataStoreFlags GetStorage() const override;
|
||||
|
||||
private:
|
||||
std::shared_ptr<AbstractImage> ResizeImage(const std::shared_ptr<AbstractImage>& oldImage, const Vector2ui& size) const override;
|
||||
|
||||
RenderDevice& m_renderDevice;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Graphics/GuillotineTextureAtlas.inl>
|
||||
|
||||
#endif // NAZARA_GUILLOTINETEXTUREATLAS_HPP
|
||||
Reference in New Issue
Block a user