C arrays from LUA
2 posters
C arrays from LUA
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)
something like:
Cube.obj.vbo_offset[1]
or
Cube.obj._SIO2vertexgroup.get(1)
zzajin- Posts : 81
Join date : 2008-10-14
Re: C arrays from LUA
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...
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...
Permissions in this forum:
You cannot reply to topics in this forum
|
|