diff options
author | Brian Paul <[email protected]> | 2001-09-10 19:21:13 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-09-10 19:21:13 +0000 |
commit | 306933046cdc70e20af7facea8bc8a975812787e (patch) | |
tree | 05c360b1c210159a76c602f1279c8d30db53325b /progs/windml/uglaccum.c | |
parent | 30230a9cd171128c34c55bd751242dbe07dc3a89 (diff) |
WindML updates (Stephane Raimbault)
Diffstat (limited to 'progs/windml/uglaccum.c')
-rw-r--r-- | progs/windml/uglaccum.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/progs/windml/uglaccum.c b/progs/windml/uglaccum.c index 4748618d624..fd7cb3125c1 100644 --- a/progs/windml/uglaccum.c +++ b/progs/windml/uglaccum.c @@ -185,15 +185,15 @@ UGL_LOCAL int getEvent(void) return(retVal); } -void windMLAccum (void); +void windMLAccum (UGL_BOOL windMLMode); void uglaccum (void) { taskSpawn("tAccum", 210, VX_FP_TASK, 100000, - (FUNCPTR)windMLAccum, 0,1,2,3,4,5,6,7,8,9); + (FUNCPTR)windMLAccum,UGL_FALSE,1,2,3,4,5,6,7,8,9); } -void windMLAccum(void) +void windMLAccum (UGL_BOOL windMLMode) { UGL_INPUT_DEVICE_ID keyboardDevId; GLsizei width, height; @@ -205,12 +205,21 @@ void windMLAccum(void) uglDriverFind (UGL_EVENT_SERVICE_TYPE, 0, (UGL_UINT32 *)&eventServiceId); qId = uglEventQCreate (eventServiceId, 100); + + if (windMLMode) + umc = uglMesaCreateNewContextExt(UGL_MESA_DOUBLE + | UGL_MESA_WINDML_EXCLUSIVE, + 16, + 0, + 8,8,8,0, + NULL); + else + umc = uglMesaCreateNewContextExt(UGL_MESA_DOUBLE, + 16, + 0, + 8,8,8,0, + NULL); - umc = uglMesaCreateNewContextExt(GL_TRUE, - 16, - 0, - 8,8,8,0, - NULL); if (umc == NULL) { uglDeinitialize(); @@ -228,8 +237,9 @@ void windMLAccum(void) initGL(width, height); - while (!getEvent()) - drawGL(); + drawGL(); + + while (!getEvent()); uglEventQDestroy (eventServiceId, qId); |