[Iwao@fedora C81]$ cd ../../C9/C91/
[Iwao@fedora C91]$ g++ c91.cpp -lglut -lGL -lGLU
c91.cpp: 関数 ‘void display()’ 内:
c91.cpp:46:17: エラー: expected unqualified-id before ‘,’ token
46 | ::glRotated(r.,0.,1.,0.) ;
| ^
c91.cpp: 関数 ‘void resize(int, int)’ 内:
c91.cpp:64:17: エラー: ‘GL_PROGECTION’ was not declared in this scope; did you mean ‘GL_PROJECTION’?
64 | ::glMatrixMode(GL_PROGECTION) ;
| ^~~~~~~~~~~~~
| GL_PROJECTION
[Iwao@fedora C91]$ g++ c91.cpp -lglut -lGL -lGLU
[Iwao@fedora C91]$ ./a.out
9.1 図形を動かす
- 詳細
- カテゴリー: GLUT による OpenGL 入門
- 参照数: 966