Lua Interpreter on OSX Entry posted by Josh · October 12, 2012 3,129 views Share More sharing options... Followers 0 I've got the editor and Lua interpreter communicating on OSX, but am having trouble creating a window...some weird Objective C problem. I've got to go get my local Xcode expert.
Canardia 42 Posted October 13, 2012 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/ Quote Link to comment
Josh 15,449 Posted October 13, 2012 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. Quote Link to comment
Canardia 42 Posted October 13, 2012 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. Quote Link to comment
4 Comments
Recommended Comments