[CG]시점변환
키보드를 입력하여 카메라의 시점을 바꾸는 코드입니다. #include static float C_x, C_y, C_z = 2; static int rotateX = 0, rotateX_ = 0, rotateY = 0, rotateY_ = 0, rotateZ = 0, rotateZ_ = 0; void InitLight() { GLfloat mat_diffuse[] = { 0.5, 0.4, 0.3, 1.0 }; //GLfloat는 변수 타입명 설정하는것. GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 }; GLfloat mat_ambient[] = { 0.5, 0.4, 0.3, 1.0 }; GLfloat mat_shininess[] = { 15.0 }; GLfloat li..
2021.01.05