this program complies on my msvc++ complier but when execute it ,by the way its windows console appl… I dont get the open gl window i get the console window with a error message saying FATAL ERROR IN (UNAMED): PIXEL FORMAT WITH NECESSARY CAPABILITIES NOT FOUND d. Today I put the glut32.dlls in the win system dir and the glut.h in th include\gl and everthing else. Also i ran the first program in the opengl superbible 2nd ed. just fine… whats wrong !!
// glrect.cpp : Defines the entry point for the console application.
void ChangeSize(GLsizei w, GLsizei h)
h = 1;
glViewport(0,0,w,h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w<=h) glOrtho(0.0f,250.0f,0.0f,250.0f*h/w,1.0,-1.0); else glOrtho(0.0f,250.0f*w/h,0.0f,250.0f,1.0,-1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity();