diff options
author | Daniel Borca <[email protected]> | 2005-01-14 08:50:08 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2005-01-14 08:50:08 +0000 |
commit | 404273ad09f0f7bb079386929767e2151a355024 (patch) | |
tree | d9bb8bc6432a7e9edfbf70f8b76c3f7c2230b168 /src/glut/dos/glutint.h | |
parent | 0c685896736da5e17cb995b49fc3acce32081bad (diff) |
changed coding style. made `glutTimerFunc' less accurate, but far more reliable.
Diffstat (limited to 'src/glut/dos/glutint.h')
-rw-r--r-- | src/glut/dos/glutint.h | 82 |
1 files changed, 42 insertions, 40 deletions
diff --git a/src/glut/dos/glutint.h b/src/glut/dos/glutint.h index 12750041fe1..eab8cd741aa 100644 --- a/src/glut/dos/glutint.h +++ b/src/glut/dos/glutint.h @@ -21,7 +21,7 @@ /* * DOS/DJGPP glut driver v1.6 for Mesa * - * Copyright (C) 2002 - Borca Daniel + * Copyright (C) 2002 - Daniel Borca * Email : [email protected] * Web : http://www.geocities.com/dborca */ @@ -35,7 +35,6 @@ #include "GL/dmesa.h" - /* GLUT function types */ typedef void (GLUTCALLBACK *GLUTdisplayCB) (void); typedef void (GLUTCALLBACK *GLUTreshapeCB) (int, int); @@ -62,41 +61,41 @@ typedef void (GLUTCALLBACK *GLUTtabletButtonCB) (int, int, int, int); typedef void (GLUTCALLBACK *GLUTjoystickCB) (unsigned int, int, int, int); typedef struct GLUTwindow { - int num; /* window id */ - - DMesaContext context; - DMesaBuffer buffer; - - int show_mouse; - GLboolean redisplay; - - /* GLUT settable or visible window state. */ - int xpos; - int ypos; - int width; /* window width in pixels */ - int height; /* window height in pixels */ - - /* Per-window callbacks. */ - GLUTdisplayCB display; /* redraw */ - GLUTreshapeCB reshape; /* resize (width,height) */ - GLUTmouseCB mouse; /* mouse (button,state,x,y) */ - GLUTmotionCB motion; /* motion (x,y) */ - GLUTpassiveCB passive; /* passive motion (x,y) */ - GLUTentryCB entry; /* window entry/exit (state) */ - GLUTkeyboardCB keyboard; /* keyboard (ASCII,x,y) */ - GLUTkeyboardCB keyboardUp; /* keyboard up (ASCII,x,y) */ - GLUTwindowStatusCB windowStatus; /* window status */ - GLUTvisibilityCB visibility; /* visibility */ - GLUTspecialCB special; /* special key */ - GLUTspecialCB specialUp; /* special up key */ - GLUTbuttonBoxCB buttonBox; /* button box */ - GLUTdialsCB dials; /* dials */ - GLUTspaceMotionCB spaceMotion; /* Spaceball motion */ - GLUTspaceRotateCB spaceRotate; /* Spaceball rotate */ - GLUTspaceButtonCB spaceButton; /* Spaceball button */ - GLUTtabletMotionCB tabletMotion; /* tablet motion */ - GLUTtabletButtonCB tabletButton; /* tablet button */ - GLUTjoystickCB joystick; /* joystick */ + int num; /* window id */ + + DMesaContext context; + DMesaBuffer buffer; + + int show_mouse; + GLboolean redisplay; + + /* GLUT settable or visible window state. */ + int xpos; + int ypos; + int width; /* window width in pixels */ + int height; /* window height in pixels */ + + /* Per-window callbacks. */ + GLUTdisplayCB display; /* redraw */ + GLUTreshapeCB reshape; /* resize (width,height) */ + GLUTmouseCB mouse; /* mouse (button,state,x,y) */ + GLUTmotionCB motion; /* motion (x,y) */ + GLUTpassiveCB passive; /* passive motion (x,y) */ + GLUTentryCB entry; /* window entry/exit (state) */ + GLUTkeyboardCB keyboard; /* keyboard (ASCII,x,y) */ + GLUTkeyboardCB keyboardUp; /* keyboard up (ASCII,x,y) */ + GLUTwindowStatusCB windowStatus; /* window status */ + GLUTvisibilityCB visibility; /* visibility */ + GLUTspecialCB special; /* special key */ + GLUTspecialCB specialUp; /* special up key */ + GLUTbuttonBoxCB buttonBox; /* button box */ + GLUTdialsCB dials; /* dials */ + GLUTspaceMotionCB spaceMotion; /* Spaceball motion */ + GLUTspaceRotateCB spaceRotate; /* Spaceball rotate */ + GLUTspaceButtonCB spaceButton; /* Spaceball button */ + GLUTtabletMotionCB tabletMotion; /* tablet motion */ + GLUTtabletButtonCB tabletButton; /* tablet button */ + GLUTjoystickCB joystick; /* joystick */ } GLUTwindow; extern GLUTidleCB g_idle_func; @@ -138,16 +137,19 @@ extern void *__glutFont(void *font); #endif - /* hmmm... */ #include "pc_hw/pc_hw.h" +typedef struct { + void (*func) (int); /* function to call */ + int value; /* value to pass to callback */ + int time; /* end time */ +} GLUTSShotCB; +extern GLUTSShotCB g_sscb[]; #define MAX_WINDOWS 2 - #define MAX_SSHOT_CB 8 - #define RESERVED_COLORS 0 #endif /* __glutint_h__ */ |