diff options
Diffstat (limited to 'bin/main.lua')
-rw-r--r-- | bin/main.lua | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/bin/main.lua b/bin/main.lua index 3655cf5..590debe 100644 --- a/bin/main.lua +++ b/bin/main.lua @@ -10,6 +10,7 @@ function jin.core.onLoad() -- local tfdata = jin.graphics.newTTFData("font.ttf") -- tf = tfdata:newTTF(13) -- page = tf:typeset("this is a test") + jin.graphics.setClearColor(100, 100, 100, 255) end function jin.core.onEvent(e) @@ -38,5 +39,35 @@ function run() end function jin.core.onDraw() - jin.graphics.print(string.format("FPS: %d\nok this is another test", fps), 0, 0) + jin.graphics.print([[ + ;:-_/|\!'"+=*()[]{}&% +function jin.core.onLoad() + shader = jin.graphics.newShaderf("font.shader") + -- local bitmap = jin.graphics.newBitmap("defaultfont.png") + -- local tfdata = jin.graphics.newTTFData("font.ttf") + -- tf = tfdata:newTTF(13) + -- page = tf:typeset("this is a test") +end +function jin.core.onLoad() + shader = jin.graphics.newShaderf("font.shader") + -- local bitmap = jin.graphics.newBitmap("defaultfont.png") + -- local tfdata = jin.graphics.newTTFData("font.ttf") + -- tf = tfdata:newTTF(13) + -- page = tf:typeset("this is a test") +end +function jin.core.onLoad() + shader = jin.graphics.newShaderf("font.shader") + -- local bitmap = jin.graphics.newBitmap("defaultfont.png") + -- local tfdata = jin.graphics.newTTFData("font.ttf") + -- tf = tfdata:newTTF(13) + -- page = tf:typeset("this is a test") +end +function jin.core.onLoad() + shader = jin.graphics.newShaderf("font.shader") + -- local bitmap = jin.graphics.newBitmap("defaultfont.png") + -- local tfdata = jin.graphics.newTTFData("font.ttf") + -- tf = tfdata:newTTF(13) + -- page = tf:typeset("this is a test") +end +]], 10,10) end
\ No newline at end of file |