danomatika / ofxLua

(maintained) a lua scripting interface & bindings for openFrameworks
Other
164 stars 36 forks source link

Update bindings #46

Closed skrat closed 6 years ago

skrat commented 6 years ago

Reflecting on this commit https://github.com/openframeworks/openFrameworks/commit/9cf0ebaae5de194dc15b97648e48204cb8344dec#diff-c8e0703c91e75c761267451841825f1d

It now builds again on Linux (at least)

danomatika commented 6 years ago

Cool.

One thing to note is that the glm math types are not yet bound, so I'm not sure which API functions will have script errors yet. I'm on the fence about dropping the ofVec & ofMat types yet, although the general rule I've followed is to drop deprecations in the Lua bindings with each new OF version.

skrat commented 6 years ago

I'm not there yet; just starting with oF and wanted some interactive development environment, so I ended up here. Guess things will break later when I dive deeper. Any plans on updating the binding for glm types? BTW does this really have to be done manually rather than generated from some data?

danomatika commented 6 years ago

just starting with oF and wanted some interactive development environment, so I ended up here.

Maybe checkout loaf?: http://danomatika.com/code/loaf

Guess things will break later when I dive deeper. Any plans on updating the binding for glm types?

Yes, although I don't have it finished yet. I was hoping my suggestion of making the OF math types wrappers for glm types might be adopted, but looks like not.

BTW does this really have to be done manually rather than generated from some data?

SWIG does handle a lot of it, but glm does a lot with templating so that has to be handled manually to some extent. SWIG can do pretty much everything itself with "simple" C++ but there are always workarounds for more complicated cases...

skrat commented 6 years ago

I couldn't get loaf to build even with the 0.10 branch of ofxLua. Any place we can chat?

danomatika commented 6 years ago

It's not updated to build with 0.10.0. I stick to the OF releases instead of constantly chasing changes in the master branch. When the lua bindings are working, I'll get to it next.

On Apr 15, 2018, at 9:28 PM, Dušan Maliarik notifications@github.com wrote:

I couldn't get loaf to build even with the 0.10 branch of ofxLua. Any place we can chat?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danomatika/ofxLua/pull/46#issuecomment-381431607, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdVffXZv72uI9liydWS7FbJd8B5AZV7ks5to59mgaJpZM4TVewR.


Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/

danomatika commented 6 years ago

The bindings are updated for OF 0.10.0 and now include glm.

danomatika commented 6 years ago

Also, loaf has been updated for OF 0.10.0.