Renderer & renderer
Definition: TextRenderer.hpp:36
std::unique_ptr< RenderContext > renderContext
Definition: TextRenderer.hpp:38
World & world
Definition: TextRenderer.hpp:35
void render(double dtime)
int getTextWidth(std::string text, Font font)
Meassures the width of text respecting the font.
Definition: TextRenderer.cpp:18
TextRenderer(World &w, Renderer &ren)
Definition: TextRenderer.cpp:12
static Matrix4f clipProjMat(const Entity &ent, const Matrix4f &view, const Matrix4f &proj)
Definition: TextRenderer.hpp:14
void renderText(RenderContext &rc, Text text)
Renders a string to the screen using signed-distance field text rendering.
Definition: TextRenderer.cpp:22
double time
Definition: TextRenderer.hpp:40
Definition: RenderContext.hpp:15