carbon+OpenGL, a very annoying problem, can anyone help?

cinelocus
Unregistered
 
Post: #1
Mad I'm a rookie...
There are 2 windows, one(winOpenGL) is created for OpenGL drawing, the other one(winMain) is designed for user controlling. I added an EditText to the winMain window, the problem is: after the glMainLoop() run, I can type nothing into the EditText, though the EditText is focused.
It's annoying, what should I do to solve this problem? run OpenGL as a separated thread? I just don't know how!
any advice is appreciated.
thanks in advanced...
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
It's not quite clear from your post what's you mean, but it looks like you've defined a function like

Code:
void glMainLoop(void) {
    while (1) {
        drawScene();
    }
}

If that's the case, then what you need to do is set up a timer to call drawScene regularly, then call RunApplicationEventLoop() instead of glMainLoop().
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Carbon Opengl clapton541 9 6,657 Mar 25, 2007 08:54 PM
Last Post: AnotherJake
  OpenGL and Carbon Controls in the same Window Hasty 1 3,062 Sep 1, 2006 10:19 PM
Last Post: OneSadCookie
  Please help me with problem (OpenGl\Cocoa\Objective-C) wyrmmage 4 3,496 Aug 20, 2006 05:48 PM
Last Post: wyrmmage
  Problem with sdl opengl vbuser1338 6 3,545 Aug 13, 2005 09:11 AM
Last Post: vbuser1338
  Over/underlay rendering (Carbon/OpenGL) sheijk 5 3,664 Mar 30, 2005 05:18 AM
Last Post: aarku