Demo8 integration into CEGUI Samples framework
Posted: Wed Sep 17, 2014 10:42
I've made an attempt at integrating the Demo8 LUA scripting demo into the CEGUI samples framework again.
Currently it compiles, but crashes.
Currently I am stuck at the problem of passing the GUI context from Demo8Sample::initialise()
into the LUA script.
It seems the default GUI context that is used in the demo8.lua script is the one used for the sample selection
screen of the samples framework, but the individual samples all run in their individual contexts. The sample
browser then crashes because Demo8 doesn't set a root window in the sample's GUI context (the pointer
remains ULL).
Is there an easy method to pass arguments or user data into LUA scripts?
Christian
Currently it compiles, but crashes.
Currently I am stuck at the problem of passing the GUI context from Demo8Sample::initialise()
into the LUA script.
It seems the default GUI context that is used in the demo8.lua script is the one used for the sample selection
screen of the samples framework, but the individual samples all run in their individual contexts. The sample
browser then crashes because Demo8 doesn't set a root window in the sample's GUI context (the pointer
remains ULL).
Is there an easy method to pass arguments or user data into LUA scripts?
Christian