Wrapping Windows Setup
Based on Nehe''s tutorial 1 (setting up windows),
I''ve made a View Class that contains all the openGl specific stuff. Main.cpp has the rest, including CreateGlWindow.
All i''ve done/changed is to put the openGl functions in the View object (which is included as a global in Main.cpp) together with the hDC, hRC, hWnd and hInstance vars. I''m sure i''ve replaced every hDC in CreateGlWindow with View.hDC and so on - but now the program doesnt work. It returns "Window Creation Error" - everything before that point goes smootly. What am I missing? Plese help, I can''t get further without solving this problem :-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement