};
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;
static void init(void)
{
- glClearColor(0.0, 0.0, 0.0, 0.0);
+ glClearColor(0.0, 0.0, 0.0, 1.0);
glShadeModel(GL_SMOOTH);
setupPointers();
}
int main(int argc, char** argv)
{
+ parseArgs(argc, argv);
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(350, 350);
- glutInitWindowPosition(100, 100);
win = glutCreateWindow(argv[0]);
init();
glutDisplayFunc(display);