0.freeglut
1.new file week10-1_glutWireCube_myBody_myArm
copy last week 09-3
2.只留一個矩陣3.second cube4.color5.把程式分成myBody和myArm6.new file week10-2_rotate_myArmcopy 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_myArmadd 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
copy last
除掉++
glutMotionFunc(motion);
void motion(int x int y){
angle = x;
glutPostRedisplay();
}
12.new file week10-8_mouse_motion_2_myArmcopy last
left angle -angle
13.new file week10-9_PlaySoundcopy last
#include <mmsystem.h>
PlaySound("C:/horse.wav", NULL, SND_ASYNC);
put horse in C:
沒有留言:
張貼留言