FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

LUA Scripting

2 posters

Go down

LUA Scripting Empty LUA Scripting

Post  thebo Thu Oct 02, 2008 8:31 am

My question is:

What is scriptable with LUA and how do i load a script into my project and use it? Smile

Thanks,
Boris

thebo

Posts : 3
Join date : 2008-10-02

Back to top Go down

LUA Scripting Empty Re: LUA Scripting

Post  sio2interactive Fri Oct 03, 2008 8:13 pm

At the moment all OpenGL ES, and some SIO2 structure. Im going to release a new revision like in a week or so and it includes all SIO2 structures & functions.

In the meantime if you want to start testing you can this:

Code:

      {
         SIO2stream *_SIO2stream = sio2StreamOpen( "config.lua", 1 );   

         if( _SIO2stream )
         {
            SIO2script *_SIO2script = sio2ScriptInit( "config" );

            sio2ScriptLoad( _SIO2script,
                        _SIO2stream );
            
            _SIO2script = sio2ScriptFree( _SIO2script );
            _SIO2stream = sio2StreamClose( _SIO2stream );            
         }
      }


That's the code that I was using for testing the SIO2 configuration of sound, texture filtering etc...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum