PDA

View Full Version : [Q]I got some problem OpenGL programing for Dialog based



SH Lee
09-05-2001, 07:51 AM
hi
I'm a beginner. ;-)

so, i have many problem OpenGL programming.

Now i am doing dialog based project.
I need redrawing only OpenGL object.
but, when drawing OpenGL object , all item(button, static text, edit box, ..) is redraw.

how can i redraw only OpenGL object?

please, help me. :-)

Randolph
09-05-2001, 12:10 PM
What do you mean? Calling glClear affects other windows stuff? Usually all buttons/labels/edits are always repainted with WM_PAINT message. Its not OpenGL task to repaint them.

SH Lee
09-05-2001, 06:44 PM
Originally posted by Randolph:
What do you mean? Calling glClear affects other windows stuff? Usually all buttons/labels/edits are always repainted with WM_PAINT message. Its not OpenGL task to repaint them.

hi, thanks your information.
Usually all items are always repainted WM_PAINT message.
but , i want to know how can i only repaint OpenGL object.

My project repainting OpenGL object and items.

please, help me.

e-mail : war3@icitiro.com

Randolph
09-07-2001, 07:31 AM
As I think you try to win performance, trying to disable GUI elements redrawing within a window. I dont think you'll receive serious results, but you may handle WM_PAINT message by your own and allow window to repaint only if you need it (simply avoid calls to defWindowProc when you received WM_PAINT, and call it not every time...). Hope, this helps.