[Iwao@fedora C111]$ cd ../../C11/C112/
[Iwao@fedora C112]$ g++ c112.cpp -lglut -lGL -lGLU
c112.cpp:55:1: エラー: ‘Glfloat’ does not name a type; did you mean ‘GLfloat’?
55 | Glfloat green [] = { 0., 1., 0., 1. } ;
| ^~~~~~~
| GLfloat
c112.cpp: 関数 ‘void init()’ 内:
c112.cpp:151:36: エラー: ‘green’ was not declared in this scope
151 | ::glLightfv(GL_LIGHT1,GL_DIFFUSE, green) ;
| ^~~~~
[Iwao@fedora C112]$ g++ c112.cpp -lglut -lGL -lGLU
[Iwao@fedora C112]$ ./a.out
11.2 光源を設定する
- 詳細
- カテゴリー: GLUT による OpenGL 入門
- 参照数: 1011