hi`
how about a SDL_GL_GetAttribute function? It’s actually nice to know how
*_BUFFER_SIZE and *_DEPTH_SIZE as they don’t have to be the same set
with SDL_GL_SetAttribute…–
Daniel Vogel
666 @ http://grafzahl.de
hi`
how about a SDL_GL_GetAttribute function? It’s actually nice to know how
*_BUFFER_SIZE and *_DEPTH_SIZE as they don’t have to be the same set
with SDL_GL_SetAttribute…–
Daniel Vogel
666 @ http://grafzahl.de
how about a SDL_GL_GetAttribute function? It’s actually nice to know how
*_BUFFER_SIZE and *_DEPTH_SIZE as they don’t have to be the same set
with SDL_GL_SetAttribute…
Do you want it to reference the internal attribute set, or use
glXGetConfig()?
I’ve added SDL_GL_BUFFER_SIZE and SDL_GL_ACCUM_* to CVS.
m.On Tue, Jan 18, 2000 at 08:24:11AM +0100, Daniel Vogel wrote:
–
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC
hi`
how about a SDL_GL_GetAttribute function? It’s actually nice to know how
*_BUFFER_SIZE and *_DEPTH_SIZE as they don’t have to be the same set
with SDL_GL_SetAttribute…
Sounds easy enough, and definitely useful. I’ll have a crack at this tonight
(6-9 PM Pacific Standard Time), unless Sam the ridiculously fast beats me to
it.
–
Daniel Vogel
Nichola
Sounds easy enough, and definitely useful. I’ll have a crack at this tonight
(6-9 PM Pacific Standard Time), unless Sam the ridiculously fast beats me to
it.
I can do it in ten minutes if people tell me whether they want the
internal device state or the glXGetConfig() return value :).
m.On Tue, Jan 18, 2000 at 06:13:18PM -0000, vining at pacificcoast.net wrote:
–
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC
Michael Vance wrote:
Do you want it to reference the internal attribute set, or use
glXGetConfig()?
glXGetConfig. As the values set using SDL_GL_SetAttribute are only
minimum desired values it would be nice to know what the real ones are
(and if it is only to inform the user ;-))
I’ve added SDL_GL_BUFFER_SIZE and SDL_GL_ACCUM_* to CVS.
cool :)–
Daniel Vogel
666 @ http://grafzahl.de
glXGetConfig. As the values set using SDL_GL_SetAttribute are only
minimum desired values it would be nice to know what the real ones are
(and if it is only to inform the user ;-))
Anyone know how this would be done in Windows? wglGetCurrentDC() and
some other function?
m.On Tue, Jan 18, 2000 at 07:34:06PM +0100, Daniel Vogel wrote:
–
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC
Michael Vance wrote:
Do you want it to reference the internal attribute set, or use
glXGetConfig()?
glXGetConfig. As the values set using SDL_GL_SetAttribute are only
minimum desired values it would be nice to know what the real ones are
(and if it is only to inform the user ;-))
Better, after the context is created, update the internal variables
using glXGetConfig(), and then SDL_GL_GetAttribute() can return those.
That way it will work on all platforms.
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec
I’ve added SDL_GL_GetAttribute() to CVS. It appears to work find under
X11/HAVE_OPENGL. I’d appreciate people testing it.
I modified test/testgl.c to use it.
m.–
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC
hi`
Sam Lantinga wrote:
Better, after the context is created, update the internal variables
using glXGetConfig(), and then SDL_GL_GetAttribute() can return those.
That way it will work on all platforms.
That could lead to a strange bug. When I set e.g. GLX_DEPTH_SIZE to 16,
set the video mode and it then gets a visual with 8 bit stencil
SDL_STENCIL_SIZE would be 8. If I then set GLX_DEPTH_SIZE to 32 and set
the video mode again I will wonder why it won’t succeed… Don’t know if
this example works, but I guess you got the point ;-)–
Daniel Vogel
666 @ http://grafzahl.de
Better, after the context is created, update the internal variables
using glXGetConfig(), and then SDL_GL_GetAttribute() can return those.
That way it will work on all platforms.
Hmm. I can add this, too, I guess. I don’t see why it has anything to
do with multiple platforms, though. You still need to build in the
underlying windowing system interface.
But I need to get back to Heavy Gear 2
m.On Tue, Jan 18, 2000 at 11:24:00AM -0800, Sam Lantinga wrote:
–
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC