﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-随感而发-随笔分类-OpenGL</title><link>http://www.cppblog.com/shongbee2/category/10265.html</link><description>杂七杂八</description><language>zh-cn</language><lastBuildDate>Sat, 09 May 2009 06:52:47 GMT</lastBuildDate><pubDate>Sat, 09 May 2009 06:52:47 GMT</pubDate><ttl>60</ttl><item><title>OpenGL学习笔记【12】——纪念一下</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/08/82287.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Fri, 08 May 2009 15:42:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/08/82287.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/82287.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/08/82287.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/82287.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/82287.html</trackback:ping><description><![CDATA[<p>终于把那本教程看完了，感觉不错。虽然很多还不理解。非常感谢大牛们的帮助。谢谢。<br>下一步计划是继续看NEHE的教程，也会去看一下大牛推荐的红宝书，可惜我这里没有电子版。更没有纸版。不过我相信我会找到的。也顺求一下，如果您有电子版。可以发到我的邮箱里吗？如果有下载连接，可以回复一下下载地址码？谢谢您们了。<br>给自己鼓励一下，还是坚持下来了。我想，入门之后也许路会好走很多。呵呵，加油。。</p><img src ="http://www.cppblog.com/shongbee2/aggbug/82287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-08 23:42 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/08/82287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【11】——融合学习</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Tue, 05 May 2009 15:48:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81994.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81994.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81994.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了a的透明通道，书上说是融合，反正一个意思。奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;"gl\glaux.h"#include&nbsp;&lt;gl\glut.h&gt;void&nbsp;display(void){&nbsp;&nbsp;&nbsp;&nbsp;glClear(GL_COLOR_B...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81994.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-05 23:48 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【10】——移动光源，光照小结</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Sun, 03 May 2009 06:57:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81771.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81771.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81771.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了移动光源，奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;"gl\glaux.h"#include&nbsp;&lt;gl\glut.h&gt;float&nbsp;yRot&nbsp;=&nbsp;0;unsigned&nbsp;int&nbsp;nPre&nbsp;=&nbsp;0;GLfloat&nb...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81771.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-03 14:57 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpneGL学习笔记【9】——纹理学习</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Sat, 02 May 2009 14:25:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81730.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81730.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81730.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了纹理，奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;"gl\glaux.h"#include&nbsp;&lt;gl\glut.h&gt;/**//*&nbsp;创建纹理&nbsp;*/#define&nbsp;ImageWidth&nbsp;64#define&nbsp;ImageHeight&nbsp...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81730.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-02 22:25 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【8】——颜色材质</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Fri, 01 May 2009 15:48:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81656.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81656.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81656.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了颜色材质：奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;"gl\glaux.h"#include&nbsp;&lt;gl\glut.h&gt;float&nbsp;yRot&nbsp;=&nbsp;0;unsigned&nbsp;int&nbsp;nPre&nbsp;=&nbsp;0;void&nbsp;...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81656.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-01 23:48 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【7】——材质学习</title><link>http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Fri, 01 May 2009 13:52:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81645.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81645.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81645.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了材质，奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;"gl\glaux.h"#include&nbsp;&lt;gl\glut.h&gt;float&nbsp;yRot&nbsp;=&nbsp;0;unsigned&nbsp;int&nbsp;nPre&nbsp;=&nbsp;0;void&nbsp;di...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81645.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-05-01 21:52 <a href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【6】——初学光照</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Mon, 27 Apr 2009 16:28:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81279.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81279.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81279.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天学习了OpenGL的光照，我觉得我以前学习OpenGL的方法有写不对，试着改变一下。换一本书。坚持，我不想就这么放弃。。 OpenGL光照就使用OpenGL的函数给世界带来光，他的具体什么数学知识，光线的原理啊，什么的，我现在都不知道。以后再去了解一下，毕竟这些都是数学家做的事情，我没有那么厉害全部搞定，只能用现成的东西：OpenGL提供的函数来实现光照。首先奉上源代码：按键盘1,2,3,4,...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81279.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-28 00:28 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【5】——自我安慰和鼓励</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/26/81159.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Sun, 26 Apr 2009 13:35:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/26/81159.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81159.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/26/81159.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81159.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81159.html</trackback:ping><description><![CDATA[学习OpenGL也有一些日子的，感觉总是空范范的， 1.很多函数只知道大概是做什么的，却没能深入体会他的用法和精髓，更别说原理的理解了。不过没有关系，我先学会怎么用，尽量理解的深点，等会用了我在转头再学一遍，应该理解会更深吧。毕竟OpenGL还是一个满基础的东西的，如果OpenGL学好了，以后学DirectX应该也挺快的吧。呵呵。。 2.在编写OpengGL程序的时候，总是很很多都编译不通过，甚至还有gl.h头文件出错的情况，我都不知道我是怎么回事，难道库有问题。我的处理就是不导入gl.h头文件了，直接用glut.h头文件，ok,就没有问题了。 3.需要静态链接LIB文件，一定要把对应的lib手动静态链接过来，我也不清楚为什么我明明放在Lib目录了还不能静态链接。#pragma comment(lib, "XXX.lib")来静态链接，当然也可以在属性，链接的附加依赖项里面添加要连接的文件。 4.还有就是UNICODE和MultiByte 字节的转换。导致有些函数说不能有XXX转换到XXx。我的处理就是直接在属性-&gt;常规-&gt;字符集改为多字节字符。这样就可以了。不过目前推荐用UNICODE，但是很多时候需要什么WideCharToMultiByte() 和MultiBytToWideChar的转换，导致用的不爽。所以就不用了，因为只是学习嘛。<br>5.我发现了一本学习opneGL比较好的书，他讲解里面的函数的用法都挺好挺实用的，附上他连接：<br><a href="http://download.csdn.net/source/1247246">http://download.csdn.net/source/1247246</a><br>呵呵。。继续加油吧。一定要坚持下去啊。。 
<img src ="http://www.cppblog.com/shongbee2/aggbug/81159.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-26 21:35 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/26/81159.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【4】——给立方体纹理贴图(texture)</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Sat, 25 Apr 2009 03:07:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/81024.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/81024.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/81024.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 今天我学习了对一个正方体贴纹理：这次先奉上源代码：#pragma&nbsp;comment(lib,&nbsp;"glaux.lib")#include&nbsp;&lt;gl\glaux.h&gt;#include&nbsp;&lt;gl\glut.h&gt;GLuint&nbsp;g_texture&nbsp;=&nbsp;0;GLfloat&nbsp;xrot&nbsp;=0;GLflo...&nbsp;&nbsp;<a href='http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html'>阅读全文</a><img src ="http://www.cppblog.com/shongbee2/aggbug/81024.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-25 11:07 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记【3】——OpenGL学习起始框架</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Thu, 23 Apr 2009 16:09:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/80898.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/80898.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/80898.html</trackback:ping><description><![CDATA[<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>今天学习了OpenGL的入门，了解了一下他的流程框架，具体什么什么直接操作硬件啊什么的OpenGL的资料就不讲了，什么时候整理一下。直接进入流程框架：</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>我们用的glut辅助库，他能让我们减少好多的操作，例如创建窗口，初始化设备，他都为我们建好了。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>开始：</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">1.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>初始化opengl</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">2.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>设置渲染模式为：</font></span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">GLUT_DOUBLE</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">&nbsp;|&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">GLUT_RGBA</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">3.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>设置窗口大小，和标题，</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">4.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>创建窗口，</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">5.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>进入Opnegl里面的初始化。Opengl里面的初始化这里的初始化一定要在创建窗口以后。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">6.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>设置渲染的函数</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">7.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>设置变化窗口大小，调整视口的函数</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">8.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>主程序循环。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>这就是程序的主框架，我们只要把这些内容写入到main函数中，然后再自己实现相关的函数就可以了。是不是给我们带来了很大的方便呢。废话少说。奉上源代码：</font></span></p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">gl\glut.h</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;display(</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_42_406_Open_Image onclick="this.style.display='none'; Codehighlighter1_42_406_Open_Text.style.display='none'; Codehighlighter1_42_406_Closed_Image.style.display='inline'; Codehighlighter1_42_406_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_42_406_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_42_406_Closed_Text.style.display='none'; Codehighlighter1_42_406_Open_Image.style.display='inline'; Codehighlighter1_42_406_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_42_406_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_42_406_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glClear(GL_COLOR_BUFFER_BIT&nbsp;</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">&nbsp;GL_DEPTH_BUFFER_BIT);&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">&nbsp;清楚颜色数据和深度数据（清屏）</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glBegin(GL_TRIANGLES);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">绘制一个三角型</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glColor3f(</span><span style="COLOR: #000000">1.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">绘制颜色为红色</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glVertex3f&nbsp;(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">2.0</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">绘制三角型的一个顶点0,0,-2</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glColor3f(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">1.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">同理绘制其他两个顶点</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glVertex3f&nbsp;(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">2.0</span><span style="COLOR: #000000">);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glColor3f(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">1.0</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glVertex3f&nbsp;(</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">2.0</span><span style="COLOR: #000000">);<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glEnd();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">结束绘制三角型</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glutSwapBuffers();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">交换缓冲区。显示图形</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">初始化</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;init&nbsp;(</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">)&nbsp;<br><img id=Codehighlighter1_433_494_Open_Image onclick="this.style.display='none'; Codehighlighter1_433_494_Open_Text.style.display='none'; Codehighlighter1_433_494_Closed_Image.style.display='inline'; Codehighlighter1_433_494_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_433_494_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_433_494_Closed_Text.style.display='none'; Codehighlighter1_433_494_Open_Image.style.display='inline'; Codehighlighter1_433_494_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_433_494_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_433_494_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glClearColor&nbsp;(</span><span style="COLOR: #000000">1.0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0.0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0.0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0.0</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">清理颜色，为黑色，（也可认为是背景颜色）</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">当窗口大小改变时，会调用这个函数</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;reshape(GLsizei&nbsp;w,GLsizei&nbsp;h)<br><img id=Codehighlighter1_550_868_Open_Image onclick="this.style.display='none'; Codehighlighter1_550_868_Open_Text.style.display='none'; Codehighlighter1_550_868_Closed_Image.style.display='inline'; Codehighlighter1_550_868_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_550_868_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_550_868_Closed_Text.style.display='none'; Codehighlighter1_550_868_Open_Image.style.display='inline'; Codehighlighter1_550_868_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_550_868_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_550_868_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">这里小说明一下：矩阵模式是不同的，他们各自有一个矩阵。投影相关<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">只能用投影矩阵。(只是目前情况下哦，等我学多了可能就知道为什么了。)</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glViewport(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,w,h);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">设置视口</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glMatrixMode(GL_PROJECTION);&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">设置矩阵模式为投影变换矩阵，</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glLoadIdentity();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">变为单位矩阵</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;gluPerspective(</span><span style="COLOR: #000000">60</span><span style="COLOR: #000000">,&nbsp;(GLfloat)w&nbsp;</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">&nbsp;h,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">1000</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">设置投影矩阵</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glMatrixMode(GL_MODELVIEW);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">设置矩阵模式为视图矩阵(模型)</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glLoadIdentity();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">变为单位矩阵</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></span><span style="COLOR: #000000">}</span></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cppblog.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;main(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;argc,&nbsp;</span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000">**</span><span style="COLOR: #000000">&nbsp;argv)<br><img id=Codehighlighter1_904_1318_Open_Image onclick="this.style.display='none'; Codehighlighter1_904_1318_Open_Text.style.display='none'; Codehighlighter1_904_1318_Closed_Image.style.display='inline'; Codehighlighter1_904_1318_Closed_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_904_1318_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_904_1318_Closed_Text.style.display='none'; Codehighlighter1_904_1318_Open_Image.style.display='inline'; Codehighlighter1_904_1318_Open_Text.style.display='inline';" src="http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_904_1318_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cppblog.com/Images/dot.gif"></span><span id=Codehighlighter1_904_1318_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glutInit(</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">argc,&nbsp;argv);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">Opnegl初始化</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutInitDisplayMode&nbsp;(GLUT_DOUBLE&nbsp;</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">&nbsp;GLUT_RGBA);&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">设置显示模式为双缓冲，RGEBA</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;glutInitWindowSize&nbsp;(</span><span style="COLOR: #000000">250</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">250</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">窗口大小</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutInitWindowPosition&nbsp;(</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">窗口位置</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutCreateWindow&nbsp;(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">hello</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">创建一个标题为hello的窗口</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;init&nbsp;();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">初始化资源,这里一定要在创建窗口以后，不然会无效。</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutDisplayFunc(display);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">窗口大小改变时的回调</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutReshapeFunc(reshape);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">绘制图形时的回调</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;glutMainLoop();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">主循环。</span><span style="COLOR: #008000"><br><img src="http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;&nbsp;&nbsp;<br><img src="http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div>
在这里只是话了一个三角形。呵呵。<br><!--endfragment-->
<img src ="http://www.cppblog.com/shongbee2/aggbug/80898.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-24 00:09 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpneGL学习笔记 - 零基础搭建OpenGL开发环境</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Fri, 17 Apr 2009 15:13:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/80305.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/80305.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/80305.html</trackback:ping><description><![CDATA[<div class=Section0 style="LAYOUT-GRID:  15.6pt none">
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>零基础搭建OpenGL开发环境</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">OPENGL<font face=宋体>的介绍就不用了，他的好处书上也很多。开始之前记录一个学习openGL的网站：</font></span><span><a href="http://nehe.gamedev.net/"><span class=15 style="FONT-SIZE: 10pt; COLOR: rgb(0,0,255); FONT-FAMILY: '宋体'; TEXT-DECORATION: underline; mso-spacerun: 'yes'">http://nehe.gamedev.net/</span></a></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">&nbsp;NEHE<font face=宋体>的OpenGL学习网站。其他相关openGL的知识的书也希望我去好好看看。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">1.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">openGL<font face=宋体>的库。使用OpenGL开发当然要使用到他的库咯。他的头文件包括：</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">gl.h&nbsp;glu.h&nbsp;glaux.h&nbsp;<font face=宋体>等核心的库，还有一个我们用的很多很多的glut.h头文件。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>为了使用它，我们还有相应的.lib文件和.dll文件。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">2.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>把这些使用到的东东放到他该有的位置。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>头文件的位置：放到VS安装目录下的VC-&gt;include目录下，可以自己建立一个gl文件夹</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>我的位置是：C:\Program&nbsp;Files\Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\VC\include\gl</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><img height=213 src="http://www.cppblog.com/images/cppblog_com/shongbee2/hFilePath.png" width=343><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>因为我是用VS2005安装在C盘的。这个要看具体目录而定。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">Lib<font face=宋体>文件的位置，同理，有include就有lib，找到对应vc-&gt;lib目录，你是不是发现了很多.lib文件，对，这里就是他的位置了。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>我的位置是：C:\Program&nbsp;Files\Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\VC\lib</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><img height=246 src="http://www.cppblog.com/images/cppblog_com/shongbee2/libFilePath.png" width=532><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">.dll<font face=宋体>文件</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">Dll<font face=宋体>文件就放在windos下的sysytem32目录下：</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: justify"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>我的是：C:\WINDOWS\system32</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><img height=255 src="http://www.cppblog.com/images/cppblog_com/shongbee2/dllFilePath.png" width=428><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>基本就是这些东西，我们的Opengl开发环境搭建完毕。理论上来说是可以编写OpenGL程序了。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>由于我英语很烂，居然没有在官网中找到最新的Opengl库文件，只好用以前的库了，整理了一下。如果你也没有找到，就凑合用他吧：</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>下载地址：</font></span><span><a href="http://download.csdn.net/source/1221084"><span class=15 style="FONT-SIZE: 10pt; COLOR: rgb(0,0,255); FONT-FAMILY: '宋体'; TEXT-DECORATION: underline; mso-spacerun: 'yes'">http://download.csdn.net/source/1221084</span></a>&nbsp;</span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
</div>
<!--endfragment-->
<img src ="http://www.cppblog.com/shongbee2/aggbug/80305.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-17 23:13 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenGL学习笔记[1]</title><link>http://www.cppblog.com/shongbee2/archive/2009/04/17/80206.html</link><dc:creator>shongbee2</dc:creator><author>shongbee2</author><pubDate>Thu, 16 Apr 2009 17:11:00 GMT</pubDate><guid>http://www.cppblog.com/shongbee2/archive/2009/04/17/80206.html</guid><wfw:comment>http://www.cppblog.com/shongbee2/comments/80206.html</wfw:comment><comments>http://www.cppblog.com/shongbee2/archive/2009/04/17/80206.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shongbee2/comments/commentRss/80206.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shongbee2/services/trackbacks/80206.html</trackback:ping><description><![CDATA[<div class=Section0 style="LAYOUT-GRID:  15.6pt none">
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: left"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">1.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>库更新的问题,首先鄙视一下自己的英语，再鄙视一下opengl官网。英语烂居然在官网找不到要使用到得openGL使用的头文件库。官网也是，不给一个明显的下载标志，反而给了很多工具的下载。郁闷啊。然后去网上找也是怎么找也找不到，最后还是放弃用最新的Opnegl库，用了以前的文件，发现gl.h时98年的。反正很多库都文件都是很久很久的。希望能在网上找到，或则有人提供一下。就好了。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: left"><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">2.</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>包含库的应用问题：今天本来打算学习NEHE的第六课贴图的课程，可是发现居然直接编译不通过，是link的错误。什么什么没有找到，我地一反应时没有相应的.lib文件，我把lib拷到vc目录下(不会不知道怎么拷吧！把LIB文件复制，找到VC目录下VC-LIB里面点粘贴，我的目录是：C:\Program&nbsp;Files\Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\VC\lib，我是在C盘嘛。)然后还是不可以，我紧接着可能是连接没有连接上，用#pragma&nbsp;comment(lib,&nbsp;"glu32.lib")&nbsp;和#pragma(lib,&nbsp;"glaux.lib")&nbsp;来强行的静态链接，结果还是错误。我无语，难道这也有错，我改了配置，在link的附加依赖项里面手动添加了依赖，还是不行。我几乎崩溃了。只有注释法，先让他通过再说以增加自己的信心。后来发现调用</font></span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">auxDIBImageLoad</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">(</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">Filename</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">);</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>这个函数有问题。哎，这个明显是glaux里面的函数，可是我有连接啊，我再次怀疑是不是他没有静态链接，而是用的动态链接.dll，然后在用把dll放到动态system32目录下，郁闷的是glaux是没有dll的，而且还发现了我的glu32.dll是有问题的，不能读取。没有办法。我几乎崩溃的时候，突然发现我以前的程序有一个用到</font></span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: 'Times New Roman'; mso-spacerun: 'yes'">auxDIBImageLoad</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>这个函数的，马上找出来，编译一次，OK，successful(不对，应该是成功，因为我用的是中文版的VS2005)。然后对比一下，发现我多包含了一个glut.h，如法炮制，结果成功了。问题是解决了，可是这明显浪费了我时间啊。觉得一个辅助库glut的功能比核心库没有错误，好用的多。哎。Openggl的发展啊。我暂时定义为我的头文件和lib文件有问题，不是最新的，或则是有bug的。而刚好glut没有问题。哈哈。也许是我的水平太低，没有学好吧。无论哪种原因，再次BS一下自己，英语一定要加油学啊，不然一个必须得资料的找不到，还学什么？</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p class=p0 style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; TEXT-ALIGN: left"><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'">3.</span><span style="FONT-SIZE: 9pt; COLOR: rgb(1,0,1); FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><font face=宋体>加油加油，一边学习，一边找到opengl的最新资源。希望能每天努力点提高英语水平。</font></span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p>
</div>
<!--endfragment-->
<img src ="http://www.cppblog.com/shongbee2/aggbug/80206.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a> 2009-04-17 01:11 <a href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80206.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>