Now the OpenGl book swears by high and dry that if i just include glut/glu/gl/windows.h etc that it will see a black screen with a white rectangle in it. But if i compile i will just get the standard output. I don’t understand what i am doing wrong
Is your window client area at least filled with black or is it completely grey as every standard window is? What does “InitializeAWindowPlease()”?
ok, here some copy paste GL init stuff, check, if some of this is missing:
needed variables: valid hWnd
other variables:
HDC mWinDC; ///< display control
HGLRC mRC; ///< RC
int mPixelFormat; ///< pixel format handle
PIXELFORMATDESCRIPTOR mPfd; ///< pixelformat description containing bit depth etc.