OpenGL + VS2015 + Windows10配置
来源:互联网 发布:网络信息安全认证 编辑:程序博客网 时间:2024/05/22 09:51
官网下载OpenGL:https://www.opengl.org/resources/libraries/glut/
解压后得到5个文件:glut.h,glut.dll,glut32.dll,glut.lib,glut32.lib。
打开VS2015安装目录,在【VC/include/】下新建一个文件夹,名为GL,把gl.h文件复制其中;
找到【VC/lib】,把glut.lib,glut32.lib复制其中;
复制glut.dll和glut32.dll到系统的dll目录下:C:\Windows\system32文件夹内(32位系统)或C:\Windows\SysWOW64(64位系统)。
配置完成,接下来程序测试。
#include <GL/glut.h>void myDisplay(void){ glClear(GL_COLOR_BUFFER_BIT); glRectf(-0.5f, -0.5f, 0.5f, 0.5f); glFlush();}int main(int argc, char *argv[]){ glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE); glutInitWindowPosition(100, 100); glutInitWindowSize(400, 400); glutCreateWindow("第一个OpenGL程序"); glutDisplayFunc(&myDisplay); glutMainLoop(); return 0;}
运行如下:
1 0
- OpenGL + VS2015 + Windows10配置
- windows10 opengl配置
- VS2015+openGL配置
- vs2015配置opengl库
- VS2015+openGL环境配置
- vs2015上配置openGL
- VS2015 OpenGL配置
- OpenGl环境配置+VS2015
- VS2015 OpenGL环境配置
- [OpenGL] OpenGL+VS2015环境配置
- [OpenGL] OpenGL+VS2015环境配置
- [OpenGL] OpenGL+VS2015环境配置
- windows10-VS2015-Boost-Pyhton2.7-dlib配置
- openCV3.X+VS2015+Windows10环境配置详解
- Windows10下VS2017配置OpenGL
- VS2015配置OpenGL(glfw,glew)
- 【caffe配置】face_detection_alighment在windows10+caffe+vs2015下的配置
- Windows10下vs2017的OpenGL的配置
- jQuery_解析xml文件
- 23种设计模式 第三部分 关系模式(2)模板方法模式
- 坚持#第23天~嘻嘻家玩了一天
- 网络异常,dns异常,qq能上但是网页打不开
- 修饰符(static、final、abstract)第一篇
- OpenGL + VS2015 + Windows10配置
- 折腾Ubuntu16.04
- C++指针 续
- QGroundControl —— MAVLink 命令
- Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace
- Effective Modern C++ 条款21 比起直接使用new,更偏爱使用std::make_unique和std::make_shared
- c++ 宏展开
- socket编程
- POJ 3104 Drying