回答編集履歴
5
文の改善
answer
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
printf("%
|
23
|
+
printf("%ld\n",r);
|
24
24
|
|
25
25
|
glRotated(r,0,1,0);
|
26
26
|
|
4
文の改善
answer
CHANGED
@@ -18,10 +18,9 @@
|
|
18
18
|
|
19
19
|
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
|
20
20
|
|
21
|
-
glLoadIdentity();
|
22
|
-
//gluLookAt(3.0,4.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
|
23
21
|
|
22
|
+
|
24
|
-
|
23
|
+
printf("%d\n",r);
|
25
24
|
|
26
25
|
glRotated(r,0,1,0);
|
27
26
|
|
3
文の改善
answer
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
```opengl
|
2
|
-
[なんかいろいろ引用しました](https://seesaawiki.jp/w/mikk_ni3_92/d/%a5%a2%a5%cb%a5%e1%a1%bc%a5%b7%a5%e7%a5%f3)
|
2
|
+
[なんかいろいろ引用してアニメーションにしました。](https://seesaawiki.jp/w/mikk_ni3_92/d/%a5%a2%a5%cb%a5%e1%a1%bc%a5%b7%a5%e7%a5%f3)
|
3
3
|
|
4
4
|
|
5
5
|
#include <GL/glut.h>
|
2
文の改善
answer
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
void disp( void ) {
|
17
|
-
static
|
17
|
+
static double r=0.0;
|
18
18
|
|
19
19
|
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
|
20
20
|
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
printf("%d\n",r);
|
25
25
|
|
26
|
-
glRotated(
|
26
|
+
glRotated(r,0,1,0);
|
27
27
|
|
28
28
|
glutWireTeapot(0.65);
|
29
29
|
|
1
文の改善
answer
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
printf("%d\n",r);
|
25
25
|
|
26
|
-
glRotated((double)r,0,1,0);
|
26
|
+
glRotated((double)r,0,1,0);
|
27
27
|
|
28
28
|
glutWireTeapot(0.65);
|
29
29
|
|