/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererCore/Debug/SimpleASCIIFont.h
17 строк
1 KB
Ingrater
Implement parameter coding guidelines in clang-tidy (#808)
18 фев 2023, 13:18
Не верифицирован
18 фев 2023, 13:18
3c98d47
Код
Авторство
О чём код?
#pragma once #include <RendererCore/RendererCoreDLL.h> #include <Texture/Image/Image.h> namespace ezGraphicsUtils { /// \brief Creates a 256*128 RGBA greyscale font texture that contains the 96 most important ASCII characters. /// /// Each character is embedded in a 16x16 cell, but only uses the center 10x10 pixels, leaving a 3 pixel black boundary. /// Each row contains 16 characters, each column contains 8 characters. The characters are sorted in the order in that they /// appear in ASCII code, starting at the top left, going to the right and then down. Since the first 32 ASCII characters /// are not very useful, the first two rows are left black, except for the very first character, which is an upside down /// question mark. This character can be used for unknown characters (e.g. when Utf8 is printed as ASCII and thus characters /// above 127 are possible). EZ_RENDERERCORE_DLL void CreateSimpleASCIIFontTexture(ezImage& ref_img, bool bSetEmptyToUnknown = false); } // namespace ezGraphicsUtils