X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=bf5b5ac8bb19100d175ebeec28e14de96c41b9eb;hb=9e31ffd2f4fe1e5093876e56a0da3db3f66acdfb;hp=d602a71b7d73fedca2fdd69b71f5857ccf87cce8;hpb=027fcf9e66356b06563140740f8d1c7bc05c9987;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index d602a71..bf5b5ac 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -85,7 +85,10 @@ SFG_State fgState = { { -1, -1, GL_FALSE }, /* Position */ GL_FALSE, /* JoysticksInitialised */ GL_FALSE, /* InputDevsInitialised */ 0, /* AuxiliaryBufferNumber */ - 0 /* SampleNumber */ + 0, /* SampleNumber */ + 1, /* MajorVersion */ + 0, /* MajorVersion */ + 0 /* ContextFlags */ }; @@ -418,6 +421,10 @@ void fgDeinitialize( void ) fgState.JoysticksInitialised = GL_FALSE; fgState.InputDevsInitialised = GL_FALSE; + fgState.MajorVersion = 1; + fgState.MinorVersion = 0; + fgState.ContextFlags = 0; + fgState.Initialised = GL_FALSE; fgState.Position.X = -1; @@ -1076,4 +1083,20 @@ void FGAPIENTRY glutInitDisplayString( const char* displayMode ) fgState.DisplayMode = glut_state_flag; } +/* -- SETTING OPENGL 3.0 CONTEXT CREATION PARAMETERS ---------------------- */ + +void FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion ) +{ + /* We will make use of these valuse when creating a new OpenGL context... */ + fgState.MajorVersion = majorVersion; + fgState.MinorVersion = minorVersion; +} + + +void FGAPIENTRY glutInitContextFlags( int flags ) +{ + /* We will make use of this value when creating a new OpenGL context... */ + fgState.ContextFlags = flags; +} + /*** END OF FILE ***/