Advertisement

opening child window

Started by January 24, 2003 04:46 PM
0 comments, last by penetrator 22 years, 1 month ago
How can i open a child window using nehe code ? i tried modifying and re-using the createglwindow() function, but i keep on getting a ''failed to register window class'' error ...
you can''t register the same window class twice. register the class, eg "myopenglwindowclass" and call CreateWindow[Ex]() once per every window you want to create. you will need to supply each windows with its own RC and call wglMakeCurrent() prior to renderint into it. if more questions come up, just ask!

hope this helps,
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared

This topic is closed to new replies.

Advertisement