utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
text_material.hpp
1/*
2** ETIB PROJECT, 2026
3** utility
4** File description:
5** text_material
6*/
7
8#pragma once
9
10#include <utility/graphic/text/font.hpp>
11
12#include <utility/graphic/material.hpp>
13
14namespace utility::graphic
15{
29 class TextMaterial: public Material
30 {
31 public:
42
47 ~TextMaterial() = default;
48
64 void addAtlas(const std::string &name, std::shared_ptr<Texture> atlas);
65 };
66} // namespace utility::graphic
The Material class represents a material that can be used for rendering objects in a graphics applica...
Definition material.hpp:58
The TextMaterial class is a specialized Material that is designed to work with Font objects for rende...
~TextMaterial()=default
Destructs the TextMaterial object, releasing any allocated resources.
TextMaterial()
Constructs a TextMaterial object that is synchronized with the provided Font object.
void addAtlas(const std::string &name, std::shared_ptr< Texture > atlas)
Add a texture atlas to the material with the specified name and Texture object.