1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-29 01:09:30 +00:00

gfx.startFrame -> gfx.start and gfx.endFrame -> gfx.stop

This commit is contained in:
Reuh 2015-12-30 18:19:13 +01:00
parent 07d5316d72
commit 73b5c55133
7 changed files with 30 additions and 30 deletions

View file

@ -47,19 +47,19 @@ while ctr.run() do
dMul = hid.pos3d()
gfx.startFrame(gfx.GFX_TOP, gfx.GFX_LEFT)
gfx.start(gfx.GFX_TOP, gfx.GFX_LEFT)
drawStuffIn3D(-1)
gfx.endFrame()
gfx.stop()
gfx.startFrame(gfx.GFX_TOP, gfx.GFX_RIGHT)
gfx.start(gfx.GFX_TOP, gfx.GFX_RIGHT)
drawStuffIn3D(1)
gfx.endFrame()
gfx.stop()
gfx.startFrame(gfx.GFX_BOTTOM)
gfx.start(gfx.GFX_BOTTOM)
gfx.color.setDefault(gfx.color.RGBA8(0, 0, 0))
gfx.text(5, 5, "FPS: "..math.ceil(gfx.getFPS()))
@ -72,7 +72,7 @@ while ctr.run() do
gfx.rectangle(40, 90, 60, 60, 0, 0xDDDDDDFF)
gfx.circle(70 + math.ceil(cx/156 * 30), 120 - math.ceil(cy/156 * 30), 10, 0xFF000000)
gfx.endFrame()
gfx.stop()
angle = angle + 0.05
if angle > 2*math.pi then angle = angle - 2*math.pi end