![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenGL
王晓斌
十年苦烦剧,一念愈倾仰
展开
-
Color Slider Control的颜色计算
double depthRed, depthGreen, depthBlue; for( int distance = 0; distance { if( distance { depthRed = 0.0; depthGreen = 0.0; depthBlue =原创 2010-05-03 17:47:00 · 751 阅读 · 0 评论 -
glew (1) : MFC下编译glew
<br /> 在MFC mdi下使用glew的源码进行编译。<br /> <br /> 将glew的头文件(glew.h, glxew.h, wglew.h)和源文件glew.c拷贝到 mfc工程目录下。更改glew.c中头文件的路径为当前glew头文件的路径(如 "gl/glew.h", 将glew.c中的 <> 改为工程路径 “”)。更改glew.c文件的属性,对该文件不使用预包含头文件(stdafx.h)。设置工程属性,添加preprocessor definition :GLEW_STA原创 2010-07-08 13:08:00 · 2614 阅读 · 2 评论 -
glew(2) glewInit
<br />MFC下使用glewInit时需要先将Render Context创建好, 否则glewInit将返回 GLEW_ERROR_NO_GL_VERSION<br /> <br />原创 2010-07-12 16:14:00 · 1870 阅读 · 0 评论 -
glut编译问题
<br />This is basically what just about every site I look at tells me to do.<br />So I copy over some code that I know compiles and runs under my Dev C++ setup...<br />And it fails to compile with the following errors: -<br />1>main.obj :转载 2010-05-31 11:21:00 · 1569 阅读 · 1 评论 -
glut编译问题
<br />This is basically what just about every site I look at tells me to do.<br />So I copy over some code that I know compiles and runs under my Dev C++ setup...<br />And it fails to compile with the following errors: -<br />1>main.obj : error转载 2010-05-31 10:54:00 · 717 阅读 · 0 评论