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
  Cocoa/OpenGL drawing full-screen problem ultitech 5 11,455 Jan 13, 2011 01:11 PM
Last Post: SethWillits
  Carbon Opengl clapton541 9 9,126 Mar 25, 2007 08:54 PM
Last Post: AnotherJake
  OpenGL and Carbon Controls in the same Window Hasty 1 4,123 Sep 1, 2006 10:19 PM
Last Post: OneSadCookie
  Please help me with problem (OpenGl\Cocoa\Objective-C) wyrmmage 4 5,259 Aug 20, 2006 05:48 PM
Last Post: wyrmmage
  Problem with sdl opengl vbuser1338 6 5,363 Aug 13, 2005 09:11 AM
Last Post: vbuser1338