Mercurial > mxe-octave
annotate src/freeglut-test.c @ 5534:372ea4c0afb2
Move of-ocs PKG_XXXX to inst dir and add break patch
* src/of-ocs-3-break-fixes.patch,
src/of-ocs-4-pkgadd-fixes.patch: new files
* dist-files.mk: add ref to files
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 13 Sep 2020 08:15:14 -0400 |
parents | 14b3f5ea78ae |
children |
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 } |