OpenGL without GLUT?
Clark Cox
clarkcox3 at gmail.com
Mon Apr 7 15:53:45 PDT 2008
On Mon, Apr 7, 2008 at 2:11 PM, Aya Koshigaya <Aya at animes.de> wrote:
> Hi,
>
> I'd like to create an OpenGL-Window from within C++ without using glut...
> can anyone tell me how I can do this?
> I absolutly find nothing in the internet... looks as if anyone is using
> glut or ObjectiveC/Carbon..
>
> But I'd like to do it in a good old c++ way..
C++, by itself, has no concept of windows or OpenGL, so there really
isn't a "good old C++ way". You will have to use *some* library to put
up the window into which OpenGL will draw; basically, your choices on
the Mac boil down to GLUT, Cocoa or Carbon.
Any of these solutions can be used with C++ OpenGL code.
You can find more information about the Cocoa and Carbon interfaces to
OpenGL at: <http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/OpenGLProg_MacOSX.pdf>
--
Clark S. Cox III
clarkcox3 at gmail.com
More information about the MacOSX-dev
mailing list