From: Diederick C. N. <dc...@gm...> - 2014-06-01 03:49:07
|
Thanks! Yeah, i think its pretty cool too Sylvain! Please do push, noting Vinnie's comment about lines 46 and 47 of fg_window_egl.c that should not be there. Thanks! Dee On Sun, Jun 1, 2014 at 11:42 AM, Vinnie Simonetti <rcm...@ho...> wrote: > Tested successfully. > > That's pretty cool. Switch between GLES 1.x, 2.0, and 3.0 at runtime. > > Vinnie > > -----Original Message----- > From: Diederick C. Niehorster [mailto:dc...@gm...] > Sent: Saturday, May 31, 2014 11:34 PM > To: FreeGLUT developers list > Subject: Re: [Freeglut-developer] Unifying GLES1 and GLES2 > > Thats good/great to hear! Could you try GLES 3 as well, just to be sure? > > Thanks! > Dee > > On Sun, Jun 1, 2014 at 11:28 AM, Vinnie Simonetti <rcm...@ho...> > wrote: >> Ok, tested. Works on BlackBerry. >> >> Only bug I saw, line 46 and 47 of fg_window_egl.c should not be there. > Otherwise, it runs GLES 1.x and 2.0. Haven't tried GLES 3.0 yet, but it > should work from what I can tell. >> >> Vinnie >> >> -----Original Message----- >> From: Diederick C. Niehorster [mailto:dc...@gm...] >> Sent: Saturday, May 31, 2014 6:41 PM >> To: FreeGLUT developers list; Vinnie Simonetti >> Subject: Fwd: [Freeglut-developer] Unifying GLES1 and GLES2 >> >> Hi Sylvain, >> >> Thats great! Glad you were able to make this work. If things work well on > Andriod, I guess you can push. Vinnie, who implemented blackberry support, > will be testing your patch soon and see how things go on his side. >> >> And of course, once we have a working solution, we should contact > openframeworks and let them know their setup can be simplified greatly by > using freeglut everywhere, or find out what problems they run into > preventing them from doing so. >> >> >> Thanks! >> Dee >> >> ---------- Forwarded message ---------- >> From: <be...@be...> >> Date: Sun, Jun 1, 2014 at 6:24 AM >> Subject: Re: [Freeglut-developer] Unifying GLES1 and GLES2 >> To: fre...@li... >> >> >> Hey, >> >> On Sat, May 31, 2014 at 03:23:00PM +0200, be...@be... wrote: >>> I'm playing a bit with the Raspberry PI and I noticed that >>> openFrameworks(.cc) is not bothering with double GLES compilation. >>> >>> It appears that it's not necessary to compile a GLES1 and GLES2 >>> version separately, you can include both headers and link with both >>> libs without issue. >>> (note: unifying GL and GLES still requires dynamically loading OpenGL >>> and possibly EGL, so it's another story) >>> >>> >>> Attached is a patch. The main change it introduces is that on GLES, >>> you need to explicitely specify glutInitContextVersion(2,0) if you >>> want GLES2 (instead of choosing the FreeGLUT variant to link with). >>> And of course, the unified lib is now libfreeglut-gles.so (no more >>> gles1.so/gles2.so). >>> >>> I just tested on Mesa/EGL and it works. >>> I'll try and test if that works with Android. >> >> Android: checked :) >> >> Still need to pass -DFREEGLUT_GLES so that freeglut_std.h can load to > right GL headers, but again that's a GL/GLES difference and a different > story. >> >> If there's no objection I'm going to push the patch so I can have a go at > Raspberry PI support. >> >> Updated patch attached with Android.mk updated. >> >> I'm still interested in these questions :) >> >>> Does that work on BlackBerry too? What do you think? >>> >>> Also, openFrameworks is using FreeGLUT for its GNU/Linux build. >>> How about approaching them to use FreeGLUT as well for the Windows >>> (instead of legacy non-free GLUT) and Raspberry PI (instead of their >>> custom solution) builds? :) >> >> -- >> Sylvain >> >> ---------------------------------------------------------------------- >> -------- Time is money. Stop wasting it! Get your web API in 5 >> minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Freeglut-developer mailing list >> Fre...@li... >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer >> >> ---------------------------------------------------------------------- >> -------- Time is money. Stop wasting it! Get your web API in 5 >> minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Freeglut-developer mailing list >> Fre...@li... >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer > > ---------------------------------------------------------------------------- > -- > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer |