OpenGL

OpenGL始めました

ラインで立方体描く! マウス左ボタンで立方体が回転! (ただのメモ書きなんて言えない…) #include <stdlib.h> #include <GL/glut.h> #include <string> using namespace std; #define MAX_POINTS 100 // 記憶する点の数 GLint point[MAX_POINTS][2]; // 座標を記憶する配列 int pointNum </string></gl/glut.h></stdlib.h>…