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

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
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

void glMainLoop(void) {
    while (1) {

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,825 Mar 25, 2007 08:54 PM
Last Post: AnotherJake
  OpenGL and Carbon Controls in the same Window Hasty 1 3,195 Sep 1, 2006 10:19 PM
Last Post: OneSadCookie
  Please help me with problem (OpenGl\Cocoa\Objective-C) wyrmmage 4 3,667 Aug 20, 2006 05:48 PM
Last Post: wyrmmage
  Problem with sdl opengl vbuser1338 6 3,751 Aug 13, 2005 09:11 AM
Last Post: vbuser1338
  Over/underlay rendering (Carbon/OpenGL) sheijk 5 3,834 Mar 30, 2005 05:18 AM
Last Post: aarku