PDA

View Full Version : Correct OpenGL code in CodeWarrior doesnt work.



d98ped
08-27-2001, 02:43 AM
Im programming using CodeWarrior 4.0.4 and OpenGL 1.2.1 and I have a problem that occurs now and then.

My absolutely correct code suddenly doesnt work anymore, even though it work i earlier "runs" in CodeWarrior it might just stop working...and it may also start working again without any change... The problem is that no code at all works, the GL-window jus turns black...key events and such stuff still works but nothing that have with the graphics to do...

I hope someone know how to solve this one...btw Im using glut if thats important to know..

Qwylli
08-29-2001, 12:31 AM
If your in single buffer, you MUST use glFLush(). Do you use it???
Another thing, if you use GLUT it's buggy in classic mode!!!

d98ped
08-29-2001, 12:36 AM
Well, I use glut and double-buffering. I dont run it on OS X but in the standard OS 9...(not classic). That it could be bugs have actually crossed my mind...well thanks anyway!

Qwylli
08-31-2001, 10:26 PM
Don't use carbon with your old codewarrior, Some libraries are not carbonized, and will call non-carbon functions when executed. You should make only classic applications with your old codewarrior. If you really want to make carbonized apps, use the latest version of codewarrior or MPW!

d98ped
08-31-2001, 11:56 PM
How do I choose to use non-carbon libs then?

Qwylli
09-02-2001, 05:45 AM
Use the libs that you need, but not the libs that contain the word "carbon" on them. Don't use the carbonized versions of the stub libraries, don't use carbonized code.