(1)主題:貼圖Texture
(2)範例:Texture.exe
(3)實作:OpenCV
(4)實作:OpenCV+OpenGL貼圖
(5)期中考:10行OpenGL程式
到http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/下載
將[data][win32]解壓縮
把[data]的資料夾放入window內 將glut32.dllu也放入window
下載OpenCV2.1
GLUT程式
1.網頁搜尋freeglut window->下載freeglut 3.0.0 MinGW Package
2.將壓縮檔拉至桌面
3.把資料夾開啟->lib資料夾開啟->將libfreeglut.a檔案負制病原地貼上->把複製檔重新命名為libglut32.a


打上茶壺程式碼:
#include<GL/glut.h>
void display()
{
glColor3f(0,10,255);
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main (int argc,char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH);
glutCreateWindow("Week03");
glutDisplayFunc(display);
glutMainLoop();
}
新增程式碼

一個一個的匯入檔案夾










沒有留言:
張貼留言