2016年2月22日 星期一

Jim_c OpenGL

Week 1
classwork-01 (sample)













classwork-02
Open Code Blocks->File-New-Project->Chose OpenGL project file->click sources file->Build & Run (picture 2)

picture 2:











classwork-03
Open Code Blocks->File-New-Project->Chose GLUT project file->place the glut.rar source location from teacher(picture 1)->click sources file->Build & Run(picture 2)
picture 1:















打開壓縮檔>freeglut放桌面>複製位置>打開codeblocks  >file-new-project
>GLUT-main.cpp的程式-執行

picture 2:

Homework -04














#include <GL/glut.h>
void display()  // 設計窗面
{
       glutSolidTeapot(0.3); //呼叫茶壺并設計大小0.5為上下左右差距

沒有留言:

張貼留言