carbon+OpenGL, a very annoying problem, can anyone help?
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...
It's not quite clear from your post what's you mean, but it looks like you've defined a function like
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().
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().
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Carbon Opengl | clapton541 | 9 | 6,173 |
Mar 25, 2007 08:54 PM Last Post: AnotherJake |
|
| OpenGL and Carbon Controls in the same Window | Hasty | 1 | 2,679 |
Sep 1, 2006 10:19 PM Last Post: OneSadCookie |
|
| Please help me with problem (OpenGl\Cocoa\Objective-C) | wyrmmage | 4 | 3,112 |
Aug 20, 2006 05:48 PM Last Post: wyrmmage |
|
| Problem with sdl opengl | vbuser1338 | 6 | 3,214 |
Aug 13, 2005 09:11 AM Last Post: vbuser1338 |
|
| Over/underlay rendering (Carbon/OpenGL) | sheijk | 5 | 3,319 |
Mar 30, 2005 05:18 AM Last Post: aarku |
|

