For those of you who are lazy (like me), here you can copy the rob mayoff version of answer;)
static const GLfloat cube_strip[] = { -1.f, 1.f, 1.f, // Front-top-left 1.f, 1.f, 1.f, // Front-top-right -1.f, -1.f, 1.f, // Front-bottom-left 1.f, -1.f, 1.f, // Front-bottom-right 1.f, -1.f, -1.f, // Back-bottom-right 1.f, 1.f, 1.f, // Front-top-right 1.f, 1.f, -1.f, // Back-top-right -1.f, 1.f, 1.f, // Front-top-left -1.f, 1.f, -1.f, // Back-top-left -1.f, -1.f, 1.f, // Front-bottom-left -1.f, -1.f, -1.f, // Back-bottom-left 1.f, -1.f, -1.f, // Back-bottom-right -1.f, 1.f, -1.f, // Back-top-left 1.f, 1.f, -1.f // Back-top-right };
scx
source share