JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
TextRenderer.cpp File Reference
#include "HMI/Graphics/TextRenderer.h"
#include <cmath>
#include <cstddef>
#include "HMI/Graphics/BitmapFont.h"

Namespaces

namespace  hmi

Functions

DirectX::XMFLOAT4X4 hmi::screenProjectionMatrix (int viewportWidth, int viewportHeight) noexcept
 Construit la projection écran → clip du calque UI, indépendante de Camera2D.
void hmi::composeText (ComposedScene &scene, const FontMetrics &metrics, TextureHandle texture, int textureWidth, int textureHeight, std::string_view text, float x, float y, float scale, const core::Color &tint, TextAnchor anchor={}, std::int32_t sortOrder=0)
 Compose une chaîne en quads sur le calque UI, ancrée à une position écran.
void hmi::composeText (ComposedScene &scene, const BitmapFont &font, std::string_view text, float x, float y, float scale, const core::Color &tint, TextAnchor anchor={}, std::int32_t sortOrder=0)
 Raccourci de hmi::composeText prenant directement une hmi::BitmapFont.