LUA Scripting

View previous topic View next topic Go down

LUA Scripting

Post  thebo on 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

View user profile

Back to top Go down

Re: LUA Scripting

Post  sio2interactive on 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...
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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