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.

C arrays from LUA

2 posters

Go down

C arrays from LUA Empty C arrays from LUA

Post  zzajin Mon Mar 30, 2009 3:51 pm

Is there any way of accessing data from a C array from LUA?

something like:

Cube.obj.vbo_offset[1]

or

Cube.obj._SIO2vertexgroup.get(1)

zzajin

Posts : 81
Join date : 2008-10-14

Back to top Go down

C arrays from LUA Empty Re: C arrays from LUA

Post  sio2interactive Mon Mar 30, 2009 4:10 pm

For this kind of stuff you need to write your own helpers depending on what you want to do exactly... You can either choose to expand the API in the sio2.module and use the sio2_to_lua command to generate the wrapper.

Or you can create your module & wrapper and plug it to the LUA virtual machine that SIO2 is using.

Either way is really a straightforward approach...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Back to top


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