Jump to content
  • entries
    948
  • comments
    5,905
  • views
    945,315

4 Comments


Recommended Comments

Canardia

Posted

Take a look at GLFW, it's a very very small library (only 20 C++ files) which gives the basic function to create a OpenGL window on all platforms.

http://www.glfw.org/

Josh

Posted

I have to have control over newer OpenGL versions, pixel formats, antialiasing, and the ability to manage OpenGL contexts in GUI applications, on Windows and Mac. Last time I looked into those third-party libraries they were always missing something.

 

Anyways, I've got it working now. Just the complexities of Cocoa/Objective C. My guess is GLFW uses Carbon, which is pure C based, but unfortunately may be removed when any new big cat comes out, and doesn't work with Cocoa apps.

Canardia

Posted

GLFW has both Cocoa and Carbon source code (7 files for each), and it supports OpenGL 3.2 contexts on OS X Lion. But if you got it working, then you probably don't need it anymore. Since the source code of GLFW is so tiny, you might find some useful code chunks in it though, just for reference.

Josh

Posted

I always like small code!

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...