Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Correct OpenGL code in CodeWarrior doesnt work.

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    Correct OpenGL code in CodeWarrior doesnt work.

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

  2. #2
    Intern Newbie
    Join Date
    Jun 2001
    Location
    North America, .
    Posts
    36

    Re: Correct OpenGL code in CodeWarrior doesnt work.

    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!!!
    Did you know that trekbbs use the same bbs engine???

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    Re: Correct OpenGL code in CodeWarrior doesnt work.

    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!

  4. #4
    Intern Newbie
    Join Date
    Jun 2001
    Location
    North America, .
    Posts
    36

    Re: Correct OpenGL code in CodeWarrior doesnt work.

    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!
    Did you know that trekbbs use the same bbs engine???

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    Re: Correct OpenGL code in CodeWarrior doesnt work.

    How do I choose to use non-carbon libs then?

  6. #6
    Intern Newbie
    Join Date
    Jun 2001
    Location
    North America, .
    Posts
    36

    Re: Correct OpenGL code in CodeWarrior doesnt work.

    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.
    Did you know that trekbbs use the same bbs engine???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •