annotate src/freeglut-test.c @ 3806:4db51bcd2fa6

update octave.bmp for antialising artifacts * installer-files/octave.bmp: updated image
author John Donoghue <john.donoghue@ieee.org>
date Wed, 18 Feb 2015 18:31:06 -0500
parents 14b3f5ea78ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
1 /*
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
2 * This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2351
diff changeset
3 * See index.html for further information.
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
4 */
1993
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
5
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
6 #include <GL/glut.h>
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
7
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
8 #include <stdio.h>
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
9
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
10 int main(int argc, char *argv[])
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
11 {
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
12 glutInit(&argc, argv);
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
13 glutInitWindowSize(640,480);
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
14 glutInitWindowPosition(10,10);
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
15 glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
2358
14b3f5ea78ae Cleanup coding style via "make cleanup-style"
Volker Grabsch <vog@notjusthosting.com>
parents: 2353
diff changeset
16
1993
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
17 glutCreateWindow("FreeGLUT Shapes");
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
18
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
19 glutMainLoop();
2358
14b3f5ea78ae Cleanup coding style via "make cleanup-style"
Volker Grabsch <vog@notjusthosting.com>
parents: 2353
diff changeset
20
1993
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
21 return(0);
91aa4270e0e9 package freeglut: fix static build and add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
22 }