overcode
09-24-2002, 06:23 PM
Hi,
I tried to compile and run a sample program from the Red Book, one that dealt with a fog effect. The program compiled fine, but when I run it, it tells me something along the lines of "Pixel Format Unsupported, etc". I'm not sure how to set the pixel format/determine the pixel format with these functions that are provided in the Red Book:
int ChoosePixelFormat( HDC hdc, etc );
BOOL SetPixelFormat( HDC hdc, etc );
int DescribePixelFormat( HDC hdc, etc );
BOOL wglDescribeLayerPlane( HDC hdc, etc );
BOOL GetVersion( LPOSVERSIONINFO etc );
BOOL GetVersionEx( LPOS...etc );
How do I use these to set/find out the pixel formats that I need?
Programming OpenGL on Linux was a breeze, but this XP stuff is weird, lol. I don't remember Linux ever complaining about pixel formats...
I tried to compile and run a sample program from the Red Book, one that dealt with a fog effect. The program compiled fine, but when I run it, it tells me something along the lines of "Pixel Format Unsupported, etc". I'm not sure how to set the pixel format/determine the pixel format with these functions that are provided in the Red Book:
int ChoosePixelFormat( HDC hdc, etc );
BOOL SetPixelFormat( HDC hdc, etc );
int DescribePixelFormat( HDC hdc, etc );
BOOL wglDescribeLayerPlane( HDC hdc, etc );
BOOL GetVersion( LPOSVERSIONINFO etc );
BOOL GetVersionEx( LPOS...etc );
How do I use these to set/find out the pixel formats that I need?
Programming OpenGL on Linux was a breeze, but this XP stuff is weird, lol. I don't remember Linux ever complaining about pixel formats...