aglChoosePixelFormat

Hello,
I need some help :
this code is good:

AGLPixelFormat fmt;
AGLContext ctx;
short pDepth = 32;
GLint attrib[] = { AGL_RGBA ,
AGL_DOUBLEBUFFER ,
AGL_ACCELERATED ,
//AGL_FULLSCREEN ,
AGL_PIXEL_SIZE ,
pDepth ,
AGL_NONE };
fmt = aglChoosePixelFormat( NULL , 0 , attrib );

and aglChoosePixelFormat returns a good fmt (without AGL_FULLSCREEN )

but now this code doesnt work

AGLPixelFormat fmt;
AGLContext ctx;
short pDepth = 32;
GLint attrib[] = { AGL_RGBA ,
AGL_DOUBLEBUFFER ,
AGL_ACCELERATED ,
AGL_FULLSCREEN ,
AGL_PIXEL_SIZE ,
pDepth ,
AGL_NONE };

fmt = aglChoosePixelFormat( NULL , 0 , attrib ); 

and with AGL_FULLSCREEN , aglChoosePixelFormat returns NULL

Thanks for help.

My understanding is that AGL_FULLSCREEN is only available on MacOSX. Could that be the problem?

I was far from my Mac these past few days…Thanks for the answer.
I don’t think it’s a question of MacOS: code coming from the net and including aglFULL_SCREEN ( binary executable) works well. Essentially my question was (is) to understand basic and simple agl and opengl functions.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.