openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

working on panda board #32

Closed arturoc closed 11 years ago

arturoc commented 11 years ago

This joins ofxAppRPiWindow and ofAppEGLWindow in one class in the core with the option to open an x11 window or an rpi one, i think we don't need the raspberry specific window since we only need one different function. Also this will allow for applications to run in different boards if we don't have dependencies with a specific addon by default but I've kept ofxAppRpiWindow in the addon just in case

I've also removed some ifdef's that i think are not necessary, things like TARGET_NO_GLU which seem weird since the target defines are used for platforms. Perhaps we can rename them to something different like OF_USE_GLUT or similar but i think it's really few places were they are used and they can be replaced with the platforms where they are not needed, it's less flexible but i think we should deprecate GLU at some point so probably it's better to keep it simpler.

Also i would remove the mandatory dependency with ofxRaspberryPi to make the applications platform independent. For mobiles the addons are a good idea since it's more closed platforms with different operating systems but for this boards most of the classes should be the same or as much need a couple of ifdefs, then we can have addons for very specific functionality in each platform but imo they shouldn't be mandatory in the makefiles

I've added the libraries for armv7 hard float, I'm still using the old makefile system, haven't looked into the new ones in depth, @bakercp would be great if we can talk one day so you can explain me a little how they work don't have very clear what depends on what or what's the entry point of all of the files

There's also a script with the additional files for omap4 i've only tested on the panda but should work with any similar board, will post instructions on how to install everything

jvcleave commented 11 years ago

@bakercp it looks like I have permissions to merge this but I am going to wait per your note on https://github.com/openFrameworks-RaspberryPi/openFrameworks/pull/29

bakercp commented 11 years ago

Hey @jvcleave and @arturoc -- this looks amazing and, I'm reviewing / testing / merging this and my work on #29 in the next few hours. We should be able to get it all merged shortly.

arturoc commented 11 years ago

great! i've actually used the changes you had in #29 till now so if you want to work from this it's probably going to be easier

bakercp commented 11 years ago

Yeah, that's my plan. I'm closing the other PR.