summaryrefslogtreecommitdiffstats
path: root/src/glut/fbdev/state.c
diff options
context:
space:
mode:
authorSean D'Epagnier <[email protected]>2006-08-10 10:21:17 +0000
committerSean D'Epagnier <[email protected]>2006-08-10 10:21:17 +0000
commit7196cddb3a404292858101f9cd1a5061e422d2c1 (patch)
treeaa3f79e21b08d9f114c7b1984e6c86c114081cfe /src/glut/fbdev/state.c
parent54e15d65858c1d1eeea7291059766686cf2e1671 (diff)
Added initial multisampling support to glfbdev driver.
Fully implemented glutGameMode, and added vidresize stubs to make Added support for glutReshapeDisplay to change video mode but not lose current mesa context. implementation glut 5 complient. Fixed many minor bugs Updated docs
Diffstat (limited to 'src/glut/fbdev/state.c')
-rw-r--r--src/glut/fbdev/state.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/glut/fbdev/state.c b/src/glut/fbdev/state.c
index dadd2ad7200..bca675c52c4 100644
--- a/src/glut/fbdev/state.c
+++ b/src/glut/fbdev/state.c
@@ -37,6 +37,7 @@
int AccumSize = 16; /* per channel size of accumulation buffer */
int DepthSize = DEFAULT_SOFTWARE_DEPTH_BITS;
int StencilSize = STENCIL_BITS;
+int NumSamples = 4;
int glutGet(GLenum state)
{
@@ -89,7 +90,7 @@ int glutGet(GLenum state)
return 256;
return 0;
case GLUT_WINDOW_NUM_SAMPLES:
- return 0;
+ return NumSamples;
case GLUT_WINDOW_STEREO:
return 0;
case GLUT_WINDOW_CURSOR:
@@ -174,16 +175,6 @@ int glutDeviceGet(GLenum info)
return -1;
}
-int glutVideoResizeGet(GLenum param)
-{
- switch(param) {
- case GLUT_VIDEO_RESIZE_POSSIBLE:
- return 0;
-
- }
- return -1;
-}
-
int glutGetModifiers(void){
return KeyboardModifiers;
}