From 2b69b71c7a6fa70f21383caa2e4e96f9c89e68d1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 29 May 2022 07:56:55 -0700 Subject: [PATCH] update some documentation --- main.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index dfa3195..df4828e 100644 --- a/main.lua +++ b/main.lua @@ -16,9 +16,12 @@ require 'icons' function App.initialize_globals() -- a line is either text or a drawing -- a text is a table with: --- mode = 'text' --- string data --- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line +-- mode = 'text', +-- string data, +-- a (y) coord in pixels (updated while painting screen), +-- some cached data that's blown away and recomputed when data changes: +-- fragments: snippets of rendered love.graphics.Text, guaranteed to not wrap +-- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line -- a drawing is a table with: -- mode = 'drawing' -- a (y) coord in pixels (updated while painting screen),