How can I 'break away' from Cocoa and develop Mac OpenGL applications in C/C++?

前端 未结 3 668
执笔经年
执笔经年 2021-02-09 15:23

I am looking to get started with some 3D programming in C or C++. The problem I have is that it seems like the only tutorials I can find for Mac OS use objective C and Cocoa fra

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-09 15:51

    If you want to create cross-platform applications you could create a project with the Command Line Tool template. Next, import the OpenGL and GLUT framework. This will get you a "blank" C++ project with the required OpenGL and GLUT headers.

    Lighthouse 3D gives you some tips about portability and how to initiate your first project. http://www.lighthouse3d.com/tutorials/glut-tutorial/initialization/

提交回复
热议问题