2024年4月25日 星期四

11160933_week10

0.freeglut

1.new file week10-1_glutWireCube_myBody_myArm

copy last week 09-3

2.只留一個矩陣

3.second cube

4.color

5.把程式分成myBody和myArm

6.new file week10-2_rotate_myArm

copy last

float angle = 0;

add matrix

glutIdleFunc(display);


7.new file week10-3_rotate_translate_myArm

copy last

add translatef

8.new file week10-4_translate_rotate_translate_myArm

add another myArm()


9.new file week10-5_TRT_TRT_myArm

wrong one


10.new file week10-6_left_right_myArm
copy matrix and turn left

11.new file week10-7_mouse_motion_control_myArm
copy last

除掉++

glutMotionFunc(motion);

void motion(int x int y){

    angle = x;

    glutPostRedisplay();

}

12.new file week10-8_mouse_motion_2_myArm
copy last

left angle -angle

13.new file week10-9_PlaySound

copy last

#include <mmsystem.h>

PlaySound("C:/horse.wav", NULL, SND_ASYNC);

put horse in C:























沒有留言:

張貼留言