|
-
November 23rd, 2004, 02:09 PM
#1
weird opengl/mfc problem
Hi all,
I tried to create an MFC OpenGl control, similar to the one in this article: http://steinsoft.net/index.php?site=.../opengl_dialog. It seems to work and draw fine in general, unless I try to use a timer in the dialog that contains the OpenGl control. Then my timer never gets triggered. If I add a line that says CPaintDC dc(this) to the beginning of the OnPaint() function of the control, then the timer gets triggered, but then the rendering doesn't work. Does anyone know what the cause of this could be?? I've seen other tutorials that created the gl context during each OnPaint call, but that seems a little excessive. Is that a better way?
Thanks,
akgreene
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|