/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/FontEffectShadow.h
42 строки
921 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#pragma once #include "../../Include/RmlUi/Core/FontEffect.h" #include "../../Include/RmlUi/Core/FontEffectInstancer.h" namespace Rml { /** A concrete font effect for rendering text shadows. */ class FontEffectShadow : public FontEffect { public: FontEffectShadow(); virtual ~FontEffectShadow(); bool Initialise(Vector2i offset); bool HasUniqueTexture() const override; bool GetGlyphMetrics(Vector2i& origin, Vector2i& dimensions, const FontGlyph& glyph) const override; private: Vector2i offset; }; /** A concrete font effect instancer for the shadow effect. */ class FontEffectShadowInstancer : public FontEffectInstancer { public: FontEffectShadowInstancer(); virtual ~FontEffectShadowInstancer(); SharedPtr<FontEffect> InstanceFontEffect(const String& name, const PropertyDictionary& properties) override; private: PropertyId id_offset_x, id_offset_y, id_color; }; } // namespace Rml