2016年5月24日 星期二

week14

電腦圖學 2016-05-24 Week14
上課重點概要:

(1)TRT不同關節的轉動
(2)檔案讀寫(R/W)
(3)貼圖+背景&模型
(4)期末作業

作業一:
檔案讀寫(R/W):

#include <stdio.h>

FILE *fout=NULL, *fin=NULL;
int main (int argc,   char ** argv)    //char*argv[] 高手寫法
{
  if ( fout == NULL )  fout=fopen (“output.txt”,”W+”);//w+是寫的功能 r則是讀的功能
  frprintf( fout, “Hello World\n”);

  return 0;

}


作業二:用glut,把mouse motion存起來


















沒有留言:

張貼留言