Remove Utility module and move its content to Core and TextRenderer modules
This commit is contained in:
committed by
Jérôme Leclercq
parent
965a00182c
commit
e64c2b036e
39
include/Nazara/TextRenderer/TextRenderer.hpp
Normal file
39
include/Nazara/TextRenderer/TextRenderer.hpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Text renderer"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_TEXTRENDERER_HPP
|
||||
#define NAZARA_TEXTRENDERER_HPP
|
||||
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Core.hpp>
|
||||
#include <Nazara/TextRenderer/Config.hpp>
|
||||
#include <Nazara/TextRenderer/Font.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARA_TEXTRENDERER_API TextRenderer : public ModuleBase<TextRenderer>
|
||||
{
|
||||
friend ModuleBase;
|
||||
|
||||
public:
|
||||
using Dependencies = TypeList<Core>;
|
||||
|
||||
struct Config {};
|
||||
|
||||
TextRenderer(Config /*config*/);
|
||||
~TextRenderer();
|
||||
|
||||
FontLoader& GetFontLoader();
|
||||
const FontLoader& GetFontLoader() const;
|
||||
|
||||
private:
|
||||
FontLoader m_fontLoader;
|
||||
|
||||
static TextRenderer* s_instance;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // NAZARA_TEXTRENDERER_HPP
|
||||
Reference in New Issue
Block a user