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

Thread: Question

  1. #1
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    401

    Question

    What APIs shall I use if I want to integrate OpenGL on MacOSX with C++(darwin) and not use glu.

    Can I use COCOA with C++ (darwin)?

    What window classes can i use to work with non full screen (windowed) opengl.

    Any examples...

    just started integration of Gizmo3D on MAC

  2. #2
    Guest

    Re: Question

    I think I saw some cocoa demos with opengl at the apple os x dev site.

  3. #3
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    401

    Re: Question

    Now i have found a lot of APIs to use but which one is for what purpose best

    AGL Framework ?

    CGL/OpenGL frameWork

    DrawSprockets

    I want to program in MacOSX only environment and C++

  4. #4
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    401

    Re: Question

    Hey !

    Nobody knows the difference between AGL and CGL ??

    What does AGL framework add to CGL in the OpenGL framework ?????

    please !!

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

    Re: Question

    CGL is the core OpenGL layer for Mac OS X. Everything else is implemented on top of it. It can only (easily) handle fullscreen contexts.

    AGL is the Carbon window-oriented front end to CGL. AGL also works on Mac OS 9 (though is not a layer on CGL there of course).

    NSGL is the Cocoa window-oriented front end to CGL.

  6. #6
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    401

    Re: Question

    So the conclusion is then to use AGL if I want to integrate with some kind of windows. E.g. making a child window with OpenGL support to an existing parent window ?

    Are the window handles the same in Cocoa as in Carbon

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

    Re: Question

    Use NSGL if you want to use Cocoa & windows, use AGL if you want to use Carbon & windows.

    Cocoa and Carbon windows are not compatible. It is possible to create a Cocoa window object from a Carbon window object (so both refer to the same window on screen); I don't know if it's possible to go the other way.

Posting Permissions

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