Changes between Version 2 and Version 3 of LuaPlugin


Ignore:
Timestamp:
09/27/07 22:06:25 (17 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LuaPlugin

    v2 v3  
    1111For a simple use of lua language please ensure, that luaScripting.so (Unix) or luaScripting.dll (Windows) is properly installed, for example under the "data/plugins/" path. To load the lugin you can just call: 
    1212{{{ 
     13#!cpp 
    1314    Engine::sResourceManager()->loadResource("luaPlugin", "Plugins", "data/plugins/luaScripting", "Plugin"); 
    1415}}} 
     
    2223In the case you want to use your own lua state, so that all your manually defined functions are also accessable from the lua plugin, you can pass your lua state as a parameter to the plugin. This can be achieved in the following way: 
    2324{{{ 
     25#!cpp 
    2426    // create my own lua state 
    2527    mLuaState = luaL_newstate();