Scarab
A thin, game-agnostic 2D engine host built on the sunlight tile-map engine
Loading...
Searching...
No Matches
Scarab::Engine::Lua::LuaTextApi Class Reference

Text/font Lua primitives - a thin wrapper over IDrawSurface::SetFont/DrawText/MeasureText/GetWindowWidth/ GetWindowHeight. All game-side HUD logic (what to draw, when, positioning, score/lives formatting) lives in Lua on top of these; this class knows nothing about what the text being drawn actually means. More...

#include <luatextapi.h>

Static Public Member Functions

static void Register (lua_State *pLuaState)
 Register the text/font Lua-callable functions.
 

Detailed Description

Text/font Lua primitives - a thin wrapper over IDrawSurface::SetFont/DrawText/MeasureText/GetWindowWidth/ GetWindowHeight. All game-side HUD logic (what to draw, when, positioning, score/lives formatting) lives in Lua on top of these; this class knows nothing about what the text being drawn actually means.

Font loading and screen-space text rendering — a thin wrapper over ITileMap::SetFont/DrawText/MeasureText/ GetWindowWidth/GetWindowHeight. All HUD logic (what to draw, when, positioning, score/lives formatting) lives in game-side Lua on top of these; this API knows nothing about what the text being drawn actually means. Kept as its own page/file (not folded into app.md) since text/font is its own subsystem, not a generic app-level concern.

Member Function Documentation

◆ Register()

void Scarab::Engine::Lua::LuaTextApi::Register ( lua_State *  pLuaState)
static

Register the text/font Lua-callable functions.


The documentation for this class was generated from the following files: