Windowed drawing
Until now I''ve only been playing around with fullscreen drawing stuff, but I have to make something that will run in a window. But when the window is resized, moved, or anything like that, rendering stops. This same thing happens to NeHe''s windowed applications. Does anyone have a solution or workaround for this? Also, where should the actual rendering code be? Should I be just calling Render() in the message loop, or should I do it in the WM_PAINT message?
Thanks.
i call ENGINE::Render(); in the winMain function after i have processed all the keyboard input. It makes it easy to do multithreading for those of us who have 2 processors.
you could try saving all the info somewhere in a text file maybe(the current angle around the x and y axis, the position in the 3d world) then close the window and open it and translate by the saved amount and rotate by the saved amount.
you could try saving all the info somewhere in a text file maybe(the current angle around the x and y axis, the position in the 3d world) then close the window and open it and translate by the saved amount and rotate by the saved amount.
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"
December 08, 2000 11:50 PM
Some old hardware can only do it in fullscreen. What card/drivers are you using?
Do you mean rendering stops and doesn''t start again at all, or does it only stop until you release the resize, move, etc, and then start again?
It isn''t my card or drivers(TNT2 32mb) because it does this on all the computers I have tried it on. It''s a windows issue. When you click and hold on the edge of the window and go to resize it, the drawing stops. It''s not really a big issue I guess...
December 09, 2000 01:03 AM
OK, you mean the temporary stop. I think that this is the way it is suppose to work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement