diff options
Diffstat (limited to '')
-rw-r--r-- | Lua/game/plugins/LuaTest.usdx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lua/game/plugins/LuaTest.usdx b/Lua/game/plugins/LuaTest.usdx index 4cfd718f..553fca13 100644 --- a/Lua/game/plugins/LuaTest.usdx +++ b/Lua/game/plugins/LuaTest.usdx @@ -1,8 +1,7 @@ function plugin_init()
register('lua interface test plugin', 'not Versioned', 'Hawkear');
- require('Usdx.Gl');
- require('Usdx.TextGl');
+ require('Usdx.Gl', 'Usdx.TextGl', 'Usdx.ScreenSing');
Usdx.Hook('Display.Draw', 'OnDraw');
@@ -34,6 +33,9 @@ function OnDraw() Gl.Color(0.9, 0.9, 0.9, 0.7)
TextGl.Print('FPS: ' .. LastFPSCounted)
+ TextGl.Pos(650, 50)
+ TextGl.Print('Beat: ' .. ScreenSing.GetBeat())
+
-- Draw some rectanGles
Gl.Enable("Gl_BLEND")
Gl.Color(1, 1, 1, 0.5)
|