How sightem/libtexce works
libtexce is a C LaTeX-like renderer for TI-84 Plus CE, also usable in native/browser development builds. Its main workflow borrows immutable source and font data, formats the document into height and sparse checkpoints, then reparses visible windows and draws them through a renderer. The graph focuses on parsing, layout, font metrics, and rendering; unsampled details are omitted where the available references do not establish calls.
Main entry points: tex_layout.c Format API · tex_draw.c Window Draw · tex_parse.c Math Parser · tex_measure.c Math Measurement
Components 15
Public API
- Font API
src/tex/tex_fonts.c - Format API
src/tex/tex_layout.c - Renderer Lifecycle
src/tex/tex_renderer.c
Input and Parsing
- Document Tokenizer
src/tex/tex_token.c - Math Parser
src/tex/tex_parse.c - Math Symbols
src/tex/tex_symbols.c
Measurement and Layout
- Flow Layout
src/tex/tex_layout.c - Math Measurement
src/tex/tex_measure.c - Glyph Metrics
src/tex/tex_metrics.c - Font Format
include/texfont.h - Transient Pool
src/tex/tex_pool.c
Windowed Rendering
- Renderer State
src/tex/tex_renderer.c - Window Draw
src/tex/tex_draw.c
Other components
- Application
- Graphics Display
Connections 17
- Application → Font API: opens fonts
README.md - Application → Format API: formats source
README.md - Application → Renderer Lifecycle: creates renderer
README.md - Application → Window Draw: requests draw
README.md - Format API → Document Tokenizer: tokenizes input
src/tex/tex_layout.c - Format API → Math Parser: parses math
src/tex/tex_layout.c - Format API → Math Measurement: measures layout
src/tex/tex_layout.c - Math Parser → Math Symbols: looks up symbols
src/tex/tex_parse.c - Math Parser → Math Measurement: uses measurement
src/tex/tex_parse.c - Math Measurement → Glyph Metrics: queries metrics
src/tex/tex_measure.c - Glyph Metrics → Font Format: reads glyph data
- Format API → Transient Pool: allocates parse data
- Renderer Lifecycle → Transient Pool: owns slab pool
- Window Draw → Math Measurement: measures draw geometry
src/tex/tex_draw.c - Window Draw → Math Parser: rehydrates visible window
src/tex/tex_draw.c - Window Draw → Renderer State: uses renderer state
src/tex/tex_draw.c - Window Draw → Graphics Display: draws pixels