diff options
author | Hawkear <Hawkear@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-01-04 14:08:33 +0000 |
---|---|---|
committer | Hawkear <Hawkear@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-01-04 14:08:33 +0000 |
commit | 9125b396714df4025f083f432f11a26dacd355ac (patch) | |
tree | bafd631a33c8e257f376edfa95c09f222707557b /src/base | |
parent | d2e00ea8819f6a8e38539c96fe4104b88e436ad5 (diff) | |
download | usdx-9125b396714df4025f083f432f11a26dacd355ac.tar.gz usdx-9125b396714df4025f083f432f11a26dacd355ac.tar.xz usdx-9125b396714df4025f083f432f11a26dacd355ac.zip |
More functions from OpenGL implemented in Lua
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/Lua@1551 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/UMain.pas | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/base/UMain.pas b/src/base/UMain.pas index 99127b76..0f9daa6e 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -182,8 +182,10 @@ uses UGraphicClasses, UPluginDefs, UPlatform, - ULuaLog, ULuaGl, + ULuaLog, + ULuaTexture, + ULuaTextGL, UThemes; @@ -390,8 +392,14 @@ begin Log.LogError('Lua init failed','Lua'); luaL_openlibs(Lua); - luaopen_Log(Lua); // Log + Benchmark (Lua) luaopen_gl(Lua); // gl (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_Log(Lua); // Log + Benchmark (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_TextGL(Lua); // TextGL (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_Texture(Lua); // Texture (Lua) + lua_pop(Lua, 1); // remove table from stack Log.BenchmarkEnd(1); Log.LogBenchmark('Initializing Lua', 1); |