赞
踩
最近在学习OpenGL,需要使用到 < GLUT/glut.h >中的一些函数来调用窗口。OpenGL和GLUT的函数库在macOS中都是随着Xcode的安装已经自动安装好。只需要包含以上库就可以。
如:
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
或者:
#include <OpenGL/OpenGL.h>
#include <GLUT/GLUT.h>
但是一些glut函数在Max OS 10.9中就已经被弃用。
如:
* glutInit
* glutCreateWindow
* glutDisplayFunc
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。