|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
glutInitDisplayString problemI'm trying to use glutDisplayString() to request
an RGBA, double buffered, depth buffered with an alpha buffer. If hardware alpha buffer is not available than an RGB display is OK. The string I used to request this was: glutInitDisplayString("rgb alpha>=0 double depth"); which returns freeglut (test.pl): WARNING - Display string token not recognized: alpha>=0 A quick look at the source and it appears the current implementation is pretty much a wrapper around plain old glutInitDisplay() with little of the flexibility in display selection that I had hoped for from glutInitDisplayString(). Is there a work around using FreeGLUT to request a display with an optional (but preferred if available) alpha channel? Thanks, Chris ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
|
|
Re: glutInitDisplayString problemChris,
Hello and welcome to the "freeglut" community. Unfortunately I don't know of a good workaround for you. The full "glutInitDisplayString" functionality has been on my "to do" list for a LONG time and I simply have never had the time and energy available to do it. A not-so-good workaround might be hack the code itself in "freeglut_window.c" around lines 85-265 for Posix/X11 or around lines 372-534 for Windows. That is where the pixel formats are set from the unpacked display string data. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: Chris Marshall [mailto:chm@...] Sent: Monday, June 15, 2009 2:21 PM To: freeglut-developer@... Subject: [Freeglut-developer] glutInitDisplayString problem I'm trying to use glutDisplayString() to request an RGBA, double buffered, depth buffered with an alpha buffer. If hardware alpha buffer is not available than an RGB display is OK. The string I used to request this was: glutInitDisplayString("rgb alpha>=0 double depth"); which returns freeglut (test.pl): WARNING - Display string token not recognized: alpha>=0 A quick look at the source and it appears the current implementation is pretty much a wrapper around plain old glutInitDisplay() with little of the flexibility in display selection that I had hoped for from glutInitDisplayString(). Is there a work around using FreeGLUT to request a display with an optional (but preferred if available) alpha channel? Thanks, Chris ------------------------------------------------------------------------ ------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
|
|
Re: glutInitDisplayString problemJohn,
Thanks for the pointer to the code. I took a quick look but had not browsed to the relevant part. I'm currently working to port the Perl Data Language to use FreeGLUT and the Perl OpenGL module instead of the legacy GLX+X11 code. That should allow for operations on win32 and *nix/os x platforms. --Chris Fay, John F Dr CTR USAF AFMC 46 SK wrote: > Chris, > > Hello and welcome to the "freeglut" community. > > Unfortunately I don't know of a good workaround for you. The > full "glutInitDisplayString" functionality has been on my "to do" list > for a LONG time and I simply have never had the time and energy > available to do it. > > A not-so-good workaround might be hack the code itself in > "freeglut_window.c" around lines 85-265 for Posix/X11 or around lines > 372-534 for Windows. That is where the pixel formats are set from the > unpacked display string data. > > John F. Fay > Technical Fellow > Jacobs Technology TEAS Group > 850-883-1294 > > -----Original Message----- > From: Chris Marshall [mailto:chm@...] > Sent: Monday, June 15, 2009 2:21 PM > To: freeglut-developer@... > Subject: [Freeglut-developer] glutInitDisplayString problem > > I'm trying to use glutDisplayString() to request > an RGBA, double buffered, depth buffered with an > alpha buffer. If hardware alpha buffer is not > available than an RGB display is OK. > > The string I used to request this was: > > glutInitDisplayString("rgb alpha>=0 double depth"); > > which returns > > freeglut (test.pl): WARNING - Display string token not recognized: > alpha>=0 > > A quick look at the source and it appears the > current implementation is pretty much a wrapper > around plain old glutInitDisplay() with little > of the flexibility in display selection that I > had hoped for from glutInitDisplayString(). > > Is there a work around using FreeGLUT to request > a display with an optional (but preferred if > available) alpha channel? > > Thanks, > Chris ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
| Free embeddable forum powered by Nabble | Forum Help |