void cube(void){
glEnableClientState(GL_VERTEX_ARRAY);
//Anlegen eines Arrays mit den Punktkooridanten
static GLfloat vertices[] = {0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0,1,0};
glVertexPointer(3, GL_FLOAT, 0, vertices);
//Nummerierung der Punkte des Wuerfels
static GLubyte frontIndices[] = {0, 1, 2, 3};
static GLubyte rightIndices[] = {3, 2, 4, 5};
static GLubyte bottomIndices[] = {0, 3, 5, 6};
static GLubyte backIndices[] = {6, 5, 4, 7};
static GLubyte leftIndices[] = {0, 6, 7, 1};
static GLubyte topIndices[] = {1, 2, 4, 7};
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, frontIndices);
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, rightIndices);
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, bottomIndices);
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, backIndices);
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, leftIndices);
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, topIndices);
// glDrawElements (GL_QUADS, 24, GL_UNSIGNED_BYTE, vertices);
}