X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=768f89e7bcec755e285f744b32e8486acbe37296;hb=fd77927b8883b81cc4a7bcb79f216e524043407d;hp=d602a71b7d73fedca2fdd69b71f5857ccf87cce8;hpb=027fcf9e66356b06563140740f8d1c7bc05c9987;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index d602a71..768f89e 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -84,8 +84,11 @@ SFG_State fgState = { { -1, -1, GL_FALSE }, /* Position */ NULL, /* ProgramName */ GL_FALSE, /* JoysticksInitialised */ GL_FALSE, /* InputDevsInitialised */ - 0, /* AuxiliaryBufferNumber */ - 0 /* SampleNumber */ + 1, /* AuxiliaryBufferNumber */ + 4, /* 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 ***/