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

Thread: Developing OpenGL under Xcode 3.0

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2008
    Location
    Wihéries - Belgium
    Posts
    2

    Developing OpenGL under Xcode 3.0

    Hello

    I've just started learning ANSI C++ under Xcode and being kind of lazy guy I don't want to learn either Cocoa or Carbon.
    So I've been wondering whether one could invoke in a C++ Command Line project :

    1. only OpenGL libraries
    2. both Framework and OpenGL libraries

    Thanks for your help

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2005
    Location
    San Francisco, CA
    Posts
    7

    Re: Developing OpenGL under Xcode 3.0

    If you are just learning, I think GLUT should suffice. Just drag the OpenGL & GLUT frameworks into your projects.

    That's about as bare bones as you can get.

    Just make sure you put:

    #include <GLUT/glut.h>

    in your source files.
    This should get you started.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Dec 2001
    Location
    Wellington, New Zealand
    Posts
    548

    Re: Developing OpenGL under Xcode 3.0


  4. #4
    Junior Member Newbie
    Join Date
    Apr 2008
    Location
    Wihéries - Belgium
    Posts
    2

    Re: Developing OpenGL under Xcode 3.0

    Just great

    If you want framed OpenGL app, follow tutorial @
    -> http://blog.onesadcookie.com/2007/12...-tutorial.html
    -> copy/paste some OpenGL sample code in your project then click "Build and Go"

    If you don't mind terminal window showing while OpenGL app running
    -> create New Project / Command Line Utility / C++ Tool
    -> name your project
    -> right click on your project's name, Add Existing Frameworks...
    -> GLUT.framework
    -> then OpenGL.framework
    -> copy/paste some OpenGL sample code in your project then click "Build and Go"

Posting Permissions

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