ディスプレイリスト
#include <GL/gl.h>
GLuint theList;
void init()
{
theList = glGenLists(1);
glNewList(theList, GL_COMPILE);
{
draw();
}
glEndList();
}
void display()
{
glPushMatrix();
glCallList(theList);
glPopMatrix();
}