|
Scarab
A thin, game-agnostic 2D engine host built on the sunlight tile-map engine
|
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. | |
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.
|
static |
Register the text/font Lua-callable functions.