};
static enum SetupMethod setupMethod = POINTER;
-static enum DerefMethod derefMethod = DRAWARRAYS;
+static enum DerefMethod derefMethod = DRAWELEMENTS;
static int win;
setupMethod = POINTER;
} else if (strcmp(arg, "interleaved") == 0) {
setupMethod = INTERLEAVED;
- } else if (strcmp(arg, "DRAWARRAYS") == 0) {
+ } else if (strcmp(arg, "drawarrays") == 0) {
derefMethod = DRAWARRAYS;
} else if (strcmp(arg, "arrayelement") == 0) {
derefMethod = ARRAYELEMENT;
int main(int argc, char** argv)
{
+ parseArgs(argc, argv);
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(350, 350);