Dee,
 
Oddly, the issue seems to be related to the RGB portion. Alpha, depth, and stencil can be anything (within reasonable range) without causing issues. If RGB is set to anything except RGB888 or RGB565, then eglCreateWindowSurface fails with EGL_BAD_MATCH. I've asked someone who works on the graphics team if there are any docs pointing out what is supported and what isn't.
 
Vinnie

 

From: rcmaniac25@hotmail.com
To: freeglut-developer@lists.sourceforge.net
Date: Fri, 6 Sep 2013 22:46:17 -0400
Subject: Re: [Freeglut-developer] Adding support for another platform

Hey Dee,
 
I'm not sure if it's the bit-depth right now. All I know is eglCreateWindowSurface fails with EGL_BAD_MATCH. I will investigate more to see if this is BlackBerry's screen (which I currently set to RGBA8888) or EGL.
 
Vinnie

 
> Date: Sat, 7 Sep 2013 10:35:25 +0800
> From: dcnieho@gmail.com
> To: freeglut-developer@lists.sourceforge.net
> Subject: Re: [Freeglut-developer] Adding support for another platform
>
> Hi Vinnie,
>
> So the default (Freeglut's default) requested bit depth leads to a
> crash? Thats dangerous, please document somewhere what the default fro
> blackberry should be.
>
> Yes, I have some work done there to implement other requests, but
> haven't gone further. Whatever i request on my machine, i always get
> the default instead, it seems my request is silently ignored. At
> least, that's what i remember was the problem why i didn't continue
> working on it at that moment. At some point, not too much in the
> future, it should be finished though indeed, and be made available for
> all platforms.
>
> Best,
> Dee
>
> On Sat, Sep 7, 2013 at 8:06 AM, Vinnie Simonetti <rcmaniac25@hotmail.com> wrote:
> > Thanks Diederick,
> >
> > I made some headway with testing and realized I get an error due to the
> > default bit depth chosen in fg_window_egl.c.
> >
> > I noticed that you not only changed those defaults, but you made them
> > accessible to be changed by the developer
> > (https://github.com/dcnieho/FreeGLUT/commit/58b63620725f186ee6c5821be575fab85e1b6863).
> > I assume you're going to commit that at some point? I temporarily changed
> > them so I can test, but don't want to reimplement that if you already have
> > it (and it seems you implemented it for Windows and X11 too, which I would
> > not have gotten).
> >
> > Vinnie
> >
> >
> >> Date: Fri, 6 Sep 2013 12:14:52 +0800
> >
> >> From: dcnieho@gmail.com
> >> To: freeglut-developer@lists.sourceforge.net
> >> Subject: Re: [Freeglut-developer] Adding support for another platform
> >>
> >> Hi Vinnie,
> >>
> >> It is great to hear you are making such progress. I am a little busy
> >> on my end (thesis deadline in one month from now!), so it will take a
> >> while before I can have a good look of what you did.
> >>
> >> Thanks for letting us know and keep it up!
> >>
> >> All the best,
> >> Dee
> >>
> >> On Fri, Sep 6, 2013 at 11:30 AM, Vinnie Simonetti
> >> <rcmaniac25@hotmail.com> wrote:
> >> > Hello everybody
> >> >
> >> > I've been out of the loop for a bit, but I see a large restructuring
> >> > occurred with the now included Android support.
> >> >
> >> > TL:DR-I added BlackBerry 10 support. I'm in the process of testing, but
> >> > have
> >> > hit some snags on my end (not with Freeglut) so I can't say when I'll be
> >> > done. Take a look at the repo on Github and let me know your opinions.
> >> >
> >> > Code link: https://github.com/rcmaniac25/FreeGLUT/tree/blackberry
> >> >
> >> > I took a look at the Android code and realized a bunch of code could be
> >> > reused for BlackBerry without much if any changes. I changed the CMake
> >> > file
> >> > so that files that work on both Android and BlackBerry were used on both
> >> > platforms. Then I basically "ported" the Android code to BlackBerry, so
> >> > there are some things I know can be done (such as multiple windows) that
> >> > I
> >> > didn't implement just yet. I wanted to make sure everything worked
> >> > first.
> >> >
> >> > On that note, I've encountered issues on my end with debugging that
> >> > don't
> >> > have to do with Freeglut. As such, I can't say when I might have it
> >> > done,
> >> > though I know it crashes right now.
> >> >
> >> > Until that point, if anyone is willing to look at the code, I put the
> >> > link a
> >> > little higher up in the message.
> >> >
> >> > If you have any comments or questions, let me know.
> >> > I don't know if I broke any cardinal rules that Freeglut follows, but if
> >> > you
> >> > have any tips on what can/should/shouldn't be implemented, let me know.
> >> > I
> >> > otherwise only used the other platforms as a basis.
> >> >
> >> > Vinnie
> >> >
> >> > ________________________________
> >> > From: rcmaniac25@hotmail.com
> >> > To: freeglut-developer@lists.sourceforge.net
> >> > Subject: RE: [Freeglut-developer] Adding support for another platform
> >> > Date: Sun, 14 Apr 2013 02:15:36 -0400
> >> >
> >> >
> >> > Sorry for the delay. BB10 has it's own proprietary display system, so I
> >> > know
> >> > I would need to do work there.
> >> >
> >> > I won't be able to work on this for a bit, but it's not too important
> >> > right
> >> > now. As I go I'll make a note of each function I needed to implement so
> >> > that
> >> > if other platforms are added later on, they can just look up what they
> >> > need
> >> > to implement.
> >> >
> >> > BTW, based on the email chain I've seen, I will probably wait for the
> >> > project to be moved to Github (If I read the emails correctly) as it
> >> > will be
> >> > easier to fork and add the functionality.
> >> >
> >> > Vinnie
> >> >> Date: Tue, 9 Apr 2013 20:51:25 +0800
> >> >> From: dcnieho@gmail.com
> >> >> To: freeglut-developer@lists.sourceforge.net
> >> >> Subject: Re: [Freeglut-developer] Adding support for another platform
> >> >>
> >> >> Hi,
> >> >>
> >> >> On Tue, Apr 9, 2013 at 8:04 PM, John Tsiombikas
> >> >> <nuclear@member.fsf.org>
> >> >> wrote:
> >> >> > On Tue, Apr 09, 2013 at 05:59:08PM +0800, Diederick C. Niehorster
> >> >> > wrote:
> >> >> >> A very basic start would be stuff such as window and context
> >> >> >> creation
> >> >> >> and basic cursor interaction. What display server is BB10 based on?
> >> >> >> on
> >> >> >> android at least, a lot of code with the X11 platform could be
> >> >> >> shared..
> >> >> >
> >> >> > To clarify: that is only because they are both UNIX systems, not
> >> >> > because
> >> >> > of the display system. Android doesn't have anything to do with X11.
> >> >>
> >> >> Oops sorry, thanks for the catch. We didn't separate out display
> >> >> server and OS/platform, so i was very imprecise here. Indeed, all the
> >> >> Xgl.. and X.. functions are replaced with egl.. and other functions
> >> >> for andriod for as far as i saw.
> >> >>
> >> >> Best,
> >> >> Dee
> >> >>
> >> >>
> >> >>
> >> >> ------------------------------------------------------------------------------
> >> >> Precog is a next-generation analytics platform capable of advanced
> >> >> analytics on semi-structured data. The platform includes APIs for
> >> >> building
> >> >> apps and a phenomenal toolset for data science. Developers can use
> >> >> our toolset for easy data analysis & visualization. Get a free account!
> >> >> http://www2.precog.com/precogplatform/slashdotnewsletter
> >> >> _______________________________________________
> >> >> Freeglut-developer mailing list
> >> >> Freeglut-developer@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> >> > Discover the easy way to master current and previous Microsoft
> >> > technologies
> >> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> >> > tutorial videos with LearnDevNow. Subscribe today and save!
> >> >
> >> > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Freeglut-developer mailing list
> >> > Freeglut-developer@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/freeglut-developer
> >> >
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> >> Discover the easy way to master current and previous Microsoft
> >> technologies
> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
> >> tutorial videos with LearnDevNow. Subscribe today and save!
> >>
> >> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Freeglut-developer mailing list
> >> Freeglut-developer@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer
> >
> > ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Freeglut-developer mailing list
> > Freeglut-developer@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freeglut-developer
> >
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> _______________________________________________
> Freeglut-developer mailing list
> Freeglut-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freeglut-developer

------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________ Freeglut-developer mailing list Freeglut-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freeglut-developer