Added GLUT_AUX and GLUT_MULTISAMPLE as possible parameters for

glutGet, making things more symmetric with glutSetOption.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@801 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2009-03-16 17:30:37 +00:00
parent 35201d3df8
commit 26495e19b9
3 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2009-03-16 Sven Panne <sven.panne@aedion.de> 2009-03-16 Sven Panne <sven.panne@aedion.de>
* src/freeglut_state.c: Added GLUT_AUX and GLUT_MULTISAMPLE as possible
parameters for glutGet, making things more symmetric with
glutSetOption.
* src/freeglutdll.def: Added missing API entries. * src/freeglutdll.def: Added missing API entries.
2009-03-10 John F. Fay <john.fay.ctr@eglin.af.mil> 2009-03-10 John F. Fay <john.fay.ctr@eglin.af.mil>

View File

@ -37,7 +37,7 @@ Mar ??, 2009:
* Added new API entry to de-initialize freeglut: * Added new API entry to de-initialize freeglut:
glutExit( void ); void glutExit( void );
* Added more special keys: GLUT_KEY_NUM_LOCK, GLUT_KEY_BEGIN GLUT_KEY_DELETE * Added more special keys: GLUT_KEY_NUM_LOCK, GLUT_KEY_BEGIN GLUT_KEY_DELETE
@ -45,9 +45,11 @@ Mar ??, 2009:
constants GLUT_CAPTIONLESS and GLUT_BORDERLESS for glutInitDisplayMode constants GLUT_CAPTIONLESS and GLUT_BORDERLESS for glutInitDisplayMode
(currently works for Windows only). (currently works for Windows only).
* Added support for multisampling: glutSetOption() accepts GLUT_MULTISAMPLE * Added support for multisampling: The number of samples per pixel to use
now. The possible number of samples per pixels can be queried via the new when GLUT_MULTISAMPLE is specified in glutInitDisplayMode() can be set via
API entry glutSetOption() with parameter GLUT_MULTISAMPLE now. glutGetOption() with
the same token retrieves that value. The possible number of samples per
pixels can be queried via the new API entry
int *glutGetModeValues( GLenum mode, int *size ); int *glutGetModeValues( GLenum mode, int *size );

View File

@ -537,11 +537,15 @@ int FGAPIENTRY glutGet( GLenum eWhat )
case GLUT_DIRECT_RENDERING: case GLUT_DIRECT_RENDERING:
return fgState.DirectContext; return fgState.DirectContext;
break;
case GLUT_FULL_SCREEN: case GLUT_FULL_SCREEN:
return fghCheckFullScreen(); return fghCheckFullScreen();
break;
case GLUT_AUX:
return fgState.AuxiliaryBufferNumber;
case GLUT_MULTISAMPLE:
return fgState.SampleNumber;
default: default:
fgWarning( "glutGet(): missing enum handle %d", eWhat ); fgWarning( "glutGet(): missing enum handle %d", eWhat );