SourceForge logo
SourceForge logo
Menu

wxlua-users

From: xteo <xt...@xt...> - 2006年04月22日 15:37:54
 Hi ,
 first thanks you for the work on wxLua , its really great !
 I want to use wxGLCanvas but althoug there is some reference to it in : bindings/wxwidgets/override.hpp
 I get a 'attempt to call field `wxGLCanvas' (a nil value)' error ?
 I guess its not fully impelemted yet , any plan on that ? what does it involve I am quite Happy 
 trying to do it , do I need to write on openGL.i file ?
 an other question , there was talk on the list about been able to do : 
	require "wxlua" 
 with lua 5.1 , any idea if this will happen ?
 alternatively we have our own class wrap around a lua_state that register command and userdata object ,
 would it be possible for us to 'register' wxlua using the API ? if yes where should I look for exemple ?
 
 many thanks for you work on wxlua !
 xteo
From: John L. <jla...@gm...> - 2006年04月22日 17:43:29
On 4/22/06, xteo <xt...@xt...> wrote:
> first thanks you for the work on wxLua , its really great !
Thanks.
> I want to use wxGLCanvas but althoug there is some reference to it in :=
 bindings/wxwidgets/override.hpp
> I get a 'attempt to call field `wxGLCanvas' (a nil value)' error ?
>
> I guess its not fully impelemted yet , any plan on that ? what does it i=
nvolve I am quite Happy
> trying to do it , do I need to write on openGL.i file ?
Thanks for the offer, but since I'm already working on the bindings I
just added it to gdi.i. You'll have to use CVS to get it. Note that it
sometimes takes a little while for Sourceforge to get updated so be
patient.
> an other question , there was talk on the list about been able to do :
> require "wxlua"
> with lua 5.1 , any idea if this will happen ?
It's not something that I will get to anytime soon unfortunately. I
think it may be a little tricky, but I could be wrong. I think
updating the bindings and docs is a little more important right now.
You are more than welcome to take a stab at it and I'd be happy to
provide any info about the internals of wxLua to help you.
> alternatively we have our own class wrap around a lua_state that registe=
r command and userdata object ,
Is there anything about the wxLuaState that is missing that's also
generally useful that your class wrapper has that we should add?
> would it be possible for us to 'register' wxlua using the API ? if yes w=
here should I look for exemple ?
Look at bool wxLuaState::Create(wxEvtHandler *handler, wxWindowID id)
to see what functions are called to add the bindings.
Regards,
 John Labenski
From: John L. <jla...@gm...> - 2006年04月22日 23:25:32
ps. You'll need to edit modules/wxbind/setup/wxluasetup.h and set
wxLUA_USE_wxGLCanvas to 1 to compile it in. I think that wxWidgets
does not compile GL in by default so it's probably best to not compile
it by default for wxLua as well.
Regards,
 John Labenski
On 4/22/06, John Labenski <jla...@gm...> wrote:
> On 4/22/06, xteo <xt...@xt...> wrote:
> > first thanks you for the work on wxLua , its really great !
>
> Thanks.
>
> > I want to use wxGLCanvas but althoug there is some reference to it in =
 : bindings/wxwidgets/override.hpp
> > I get a 'attempt to call field `wxGLCanvas' (a nil value)' error ?
> >
> > I guess its not fully impelemted yet , any plan on that ? what does it=
 involve I am quite Happy
> > trying to do it , do I need to write on openGL.i file ?
>
> Thanks for the offer, but since I'm already working on the bindings I
> just added it to gdi.i. You'll have to use CVS to get it. Note that it
> sometimes takes a little while for Sourceforge to get updated so be
> patient.
>
> > an other question , there was talk on the list about been able to do =
:
> > require "wxlua"
> > with lua 5.1 , any idea if this will happen ?
>
> It's not something that I will get to anytime soon unfortunately. I
> think it may be a little tricky, but I could be wrong. I think
> updating the bindings and docs is a little more important right now.
>
> You are more than welcome to take a stab at it and I'd be happy to
> provide any info about the internals of wxLua to help you.
>
> > alternatively we have our own class wrap around a lua_state that regis=
ter command and userdata object ,
>
> Is there anything about the wxLuaState that is missing that's also
> generally useful that your class wrapper has that we should add?
>
> > would it be possible for us to 'register' wxlua using the API ? if yes=
 where should I look for exemple ?
>
> Look at bool wxLuaState::Create(wxEvtHandler *handler, wxWindowID id)
> to see what functions are called to add the bindings.
>
> Regards,
> John Labenski
>
From: xteo <xt...@xt...> - 2006年04月24日 12:12:14
> > I want to use wxGLCanvas but althoug there is some reference to it in : bindings/wxwidgets/override.hpp
> > I get a 'attempt to call field `wxGLCanvas' (a nil value)' error ?
> >
> > I guess its not fully impelemted yet , any plan on that ? what does it involve I am quite Happy
> > trying to do it , do I need to write on openGL.i file ?
> 
> Thanks for the offer, but since I'm already working on the bindings I
> just added it to gdi.i. You'll have to use CVS to get it. Note that it
> sometimes takes a little while for Sourceforge to get updated so be
> patient.
 thanks for that , Sourceforge CVS isn`t updated yet so I couldn`t try it yet .
 
> > alternatively we have our own class wrap around a lua_state that register command and userdata object ,
> 
> Is there anything about the wxLuaState that is missing that's also
> generally useful that your class wrapper has that we should add?
 not that I can see , our wrapper class is fairly small .
> > would it be possible for us to 'register' wxlua using the API ? if yes where should I look for exemple ?
> Look at bool wxLuaState::Create(wxEvtHandler *handler, wxWindowID id)
> to see what functions are called to add the bindings.
 I had a look , but I need to get a little more familiar with wxWidget API to really get my head around that .
 do you think that in order to 'register' wxLua in the lua_state I need to have some sort of wxApp object somewhere in memory ?
 I will try to get some free time to look after that , my guess is this wouldn`t be very different from creating a lua 5.1 module for wxLua ...
 I will let you know if I get anywhere 
 thanks
 damien
 
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /