2.添加OpenGl.framework 和GLUT.framework 两个系统库
3.导入准备的资源包
1>将include文件夹拖到项目中
2>将libGLTools.a文件拖入到项目的Framework文件夹中
4.在 target -> Build Settings -> Header Search Path中添加include的路径: "$(SRCROOT)/OpenGL First/include",其中OpenGL First是我的项目名
5.删除项目中的 Appdelegate.h、Appdelegate.m 、ViewController.h、ViewController.m、main.m文件
注:项目是由c++语言编写,并不需要这些OC文件
6.创建main.cpp文件
7.
原文:https://www.cnblogs.com/liuzhi20101016/p/13613125.html