summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_fcb.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-07-14 17:28:52 +0100
committerJosé Fonseca <[email protected]>2011-07-14 17:35:05 +0100
commit9a7f84d6b28e180ef79349b36de9a5d58a1e2dc9 (patch)
tree31d2acf247f5a0738ed7656f86125fa065ce0a36 /src/glut/glx/glut_fcb.c
parentff2efdf5997d20b41f7a82b77118366e6fbd23bc (diff)
Squashed commit of the following:
commit 1856230d9fa61710cce3e152b8d88b1269611a73 Author: José Fonseca <[email protected]> Date: Tue Jul 12 23:41:27 2011 +0100 make: Use better var names on packaging. commit d1ae72d0bd14e820ecfe9f8f27b316f9566ceb0c Author: José Fonseca <[email protected]> Date: Tue Jul 12 23:38:21 2011 +0100 make: Apply several of Dan Nicholson's suggestions. commit f27cf8743ac9cbf4c0ad66aff0cd3f97efde97e4 Author: José Fonseca <[email protected]> Date: Sat Jul 9 14:18:20 2011 +0100 make: Put back the tar.bz2 creation rule. Removed by accident. commit 34983337f9d7db984e9f0117808274106d262110 Author: José Fonseca <[email protected]> Date: Sat Jul 9 11:59:29 2011 +0100 make: Determine tarballs contents via git ls-files. The wildcards were a mess: - lots of files for non Linux platforms missing - several files listed and archived twice Using git-ls-files ensures things are not loss when making the tarballs. commit 34a28ccbf459ed5710aafba5e7149e8291cb808c Author: José Fonseca <[email protected]> Date: Sat Jul 9 11:07:14 2011 +0100 glut: Remove GLUT source. Most distros ship freeglut, and most people don't care one vs the other, and it hasn't been really maintained. So it is better to have Mesa GLUT be revisioned and built separately from Mesa. commit 5c26a2c3c0c7e95ef853e19d12d75c4f80137e7d Author: José Fonseca <[email protected]> Date: Sat Jul 9 10:31:02 2011 +0100 Ignore the tarballs. commit 26edecac589819f0d0efe2165ab748dbc4e53394 Author: José Fonseca <[email protected]> Date: Sat Jul 9 10:30:24 2011 +0100 make: Create the Mesa-xxx-devel symlink automatically. Also actually remote the intermediate uncompressed tarballs.
Diffstat (limited to 'src/glut/glx/glut_fcb.c')
-rw-r--r--src/glut/glx/glut_fcb.c164
1 files changed, 0 insertions, 164 deletions
diff --git a/src/glut/glx/glut_fcb.c b/src/glut/glx/glut_fcb.c
deleted file mode 100644
index c8a3422b360..00000000000
--- a/src/glut/glx/glut_fcb.c
+++ /dev/null
@@ -1,164 +0,0 @@
-
-/* Copyright (c) Mark J. Kilgard, 1998. */
-
-/* This program is freely distributable without licensing fees
- and is provided without guarantee or warrantee expressed or
- implied. This program is -not- in the public domain. */
-
-/* I appreciate the guidance from William Mitchell
- ([email protected]) in developing this friend interface
- for use by the f90gl package. See ../../README.fortran */
-
-#include "glutint.h"
-
-/* FCB stands for Fortran CallBack. */
-
-/* There is only one idleFunc, menuStateFunc, and menuStatusFunc, so they
- can be saved in the wrappers for Fortran rather than the C structures. */
-
-/* Set a Fortran callback function. */
-
-void APIENTRY
-__glutSetFCB(int which, GLUTproc func)
-{
-#ifdef SUPPORT_FORTRAN
- switch (which) {
- case GLUT_FCB_DISPLAY:
- __glutCurrentWindow->fdisplay = (GLUTdisplayFCB) func;
- break;
- case GLUT_FCB_RESHAPE:
- __glutCurrentWindow->freshape = (GLUTreshapeFCB) func;
- break;
- case GLUT_FCB_MOUSE:
- __glutCurrentWindow->fmouse = (GLUTmouseFCB) func;
- break;
- case GLUT_FCB_MOTION:
- __glutCurrentWindow->fmotion = (GLUTmotionFCB) func;
- break;
- case GLUT_FCB_PASSIVE:
- __glutCurrentWindow->fpassive = (GLUTpassiveFCB) func;
- break;
- case GLUT_FCB_ENTRY:
- __glutCurrentWindow->fentry = (GLUTentryFCB) func;
- break;
- case GLUT_FCB_KEYBOARD:
- __glutCurrentWindow->fkeyboard = (GLUTkeyboardFCB) func;
- break;
- case GLUT_FCB_KEYBOARD_UP:
- __glutCurrentWindow->fkeyboardUp = (GLUTkeyboardFCB) func;
- break;
- case GLUT_FCB_WINDOW_STATUS:
- __glutCurrentWindow->fwindowStatus = (GLUTwindowStatusFCB) func;
- break;
- case GLUT_FCB_VISIBILITY:
- __glutCurrentWindow->fvisibility = (GLUTvisibilityFCB) func;
- break;
- case GLUT_FCB_SPECIAL:
- __glutCurrentWindow->fspecial = (GLUTspecialFCB) func;
- break;
- case GLUT_FCB_SPECIAL_UP:
- __glutCurrentWindow->fspecialUp = (GLUTspecialFCB) func;
- break;
- case GLUT_FCB_BUTTON_BOX:
- __glutCurrentWindow->fbuttonBox = (GLUTbuttonBoxFCB) func;
- break;
- case GLUT_FCB_DIALS:
- __glutCurrentWindow->fdials = (GLUTdialsFCB) func;
- break;
- case GLUT_FCB_SPACE_MOTION:
- __glutCurrentWindow->fspaceMotion = (GLUTspaceMotionFCB) func;
- break;
- case GLUT_FCB_SPACE_ROTATE:
- __glutCurrentWindow->fspaceRotate = (GLUTspaceRotateFCB) func;
- break;
- case GLUT_FCB_SPACE_BUTTON:
- __glutCurrentWindow->fspaceButton = (GLUTspaceButtonFCB) func;
- break;
- case GLUT_FCB_TABLET_MOTION:
- __glutCurrentWindow->ftabletMotion = (GLUTtabletMotionFCB) func;
- break;
- case GLUT_FCB_TABLET_BUTTON:
- __glutCurrentWindow->ftabletButton = (GLUTtabletButtonFCB) func;
- break;
-#ifdef _WIN32
- case GLUT_FCB_JOYSTICK:
- __glutCurrentWindow->fjoystick = (GLUTjoystickFCB) func;
- break;
-#endif
- case GLUT_FCB_OVERLAY_DISPLAY:
- __glutCurrentWindow->overlay->fdisplay = (GLUTdisplayFCB) func;
- break;
- case GLUT_FCB_SELECT:
- __glutCurrentMenu->fselect = (GLUTselectFCB) func;
- break;
- case GLUT_FCB_TIMER:
- __glutNewTimer->ffunc = (GLUTtimerFCB) func;
- break;
- }
-#endif
-}
-
-/* Get a Fortran callback function. */
-
-GLUTproc APIENTRY
-__glutGetFCB(int which)
-{
-#ifdef SUPPORT_FORTRAN
- switch (which) {
- case GLUT_FCB_DISPLAY:
- return __glutCurrentWindow->fdisplay;
- case GLUT_FCB_RESHAPE:
- return __glutCurrentWindow->freshape;
- case GLUT_FCB_MOUSE:
- return __glutCurrentWindow->fmouse;
- case GLUT_FCB_MOTION:
- return __glutCurrentWindow->fmotion;
- case GLUT_FCB_PASSIVE:
- return __glutCurrentWindow->fpassive;
- case GLUT_FCB_ENTRY:
- return __glutCurrentWindow->fentry;
- case GLUT_FCB_KEYBOARD:
- return __glutCurrentWindow->fkeyboard;
- case GLUT_FCB_KEYBOARD_UP:
- return __glutCurrentWindow->fkeyboardUp;
- case GLUT_FCB_WINDOW_STATUS:
- return __glutCurrentWindow->fwindowStatus;
- case GLUT_FCB_VISIBILITY:
- return __glutCurrentWindow->fvisibility;
- case GLUT_FCB_SPECIAL:
- return __glutCurrentWindow->fspecial;
- case GLUT_FCB_SPECIAL_UP:
- return __glutCurrentWindow->fspecialUp;
- case GLUT_FCB_BUTTON_BOX:
- return __glutCurrentWindow->fbuttonBox;
- case GLUT_FCB_DIALS:
- return __glutCurrentWindow->fdials;
- case GLUT_FCB_SPACE_MOTION:
- return __glutCurrentWindow->fspaceMotion;
- case GLUT_FCB_SPACE_ROTATE:
- return __glutCurrentWindow->fspaceRotate;
- case GLUT_FCB_SPACE_BUTTON:
- return __glutCurrentWindow->fspaceButton;
- case GLUT_FCB_TABLET_MOTION:
- return __glutCurrentWindow->ftabletMotion;
- case GLUT_FCB_TABLET_BUTTON:
- return __glutCurrentWindow->ftabletButton;
- case GLUT_FCB_JOYSTICK:
-#ifdef _WIN32
- return __glutCurrentWindow->fjoystick;
-#else
- return NULL;
-#endif
- case GLUT_FCB_OVERLAY_DISPLAY:
- return __glutCurrentWindow->overlay->fdisplay;
- case GLUT_FCB_SELECT:
- return __glutCurrentMenu->fselect;
- case GLUT_FCB_TIMER:
- return __glutTimerList ? __glutTimerList->ffunc : NULL;
- default:
- return NULL;
- }
-#else
- return NULL;
-#endif
-}