aboutsummaryrefslogtreecommitdiff
path: root/bin/main.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-16 13:43:57 +0800
committerchai <chaifix@163.com>2018-10-16 13:43:57 +0800
commitbe59ac06cbcd60895e25f2e7d76846ee3e6a0d92 (patch)
treee73c977f9161acfdd119ec1bcee4b15a208cea54 /bin/main.lua
parent90802fc96de6523ce12290cd66703aa1351c91dd (diff)
+增加=符号
Diffstat (limited to 'bin/main.lua')
-rw-r--r--bin/main.lua33
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