Remove Utility module and move its content to Core and TextRenderer modules

This commit is contained in:
SirLynix
2024-02-10 22:46:53 +01:00
committed by Jérôme Leclercq
parent 965a00182c
commit e64c2b036e
364 changed files with 2336 additions and 2516 deletions

View 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