Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualUssyless

Posted 20 February 2013 - 04:50 AM

i have tried calling it both before and after the context exists, though currently it's being called before, wasn't sure when it needed to be initialised since it's included before and DevIL is initialised before also

 

anyway, currently if i run 

 

    GLenum errr= glewInit();    
    GLenum x;
    x=GLEW_OK;
    glutInit(&argc,argv);
glewinit returns a 1, and GLEW_OK returns a 0 so i assume they are different enums
 
ah there we go, after moving it to after the context, it works fine, both enums return 0, so it's GLEW_OK, and glgenbuffers no longer send a access violation
 
i feel stupid now, i swear i did try this, but thanks for asking the right questions
 
 
perhaps a small side-question ( perhaps not ), are there any standard libraries/functions i can use to pop up a window in case of for example, a error or a specific scenario easily? (ideally something along the lines of windows::showSplashScreen() or showSplashScreen("An error!") or something like that, doesnt even need text or anything, just some external indicator that something has happened without breakpoints.)
 
edit: messagebox :P
 
thanks

#2Ussyless

Posted 20 February 2013 - 04:44 AM

i have tried calling it both before and after the context exists, though currently it's being called before, wasn't sure when it needed to be initialised since it's included before and DevIL is initialised before also

 

anyway, currently if i run 

 

    GLenum errr= glewInit();    
    GLenum x;
    x=GLEW_OK;
    glutInit(&argc,argv);
glewinit returns a 1, and GLEW_OK returns a 0 so i assume they are different enums
 
ah there we go, after moving it to after the context, it works fine, both enums return 0, so it's GLEW_OK, and glgenbuffers no longer send a access violation
 
i feel stupid now, i swear i did try this, but thanks for asking the right questions
 
 
perhaps a small side-question ( perhaps not ), are there any standard libraries/functions i can use to pop up a window in case of for example, a error or a specific scenario easily? (ideally something along the lines of windows::showSplashScreen() or showSplashScreen("An error!") or something like that, doesnt even need text or anything, just some external indicator that something has happened without breakpoints.)

#1Ussyless

Posted 20 February 2013 - 04:43 AM

i have tried calling it both before and after the context exists, though currently it's being called before, wasn't sure when it needed to be initialised since it's included before and DevIL is initialised before also

 

anyway, currently if i run 

 

    GLenum errr= glewInit();    
    GLenum x;
    x=GLEW_OK;
    glutInit(&argc,argv);
glewinit returns a 1, and GLEW_OK returns a 0 so i assume they are different enums
 
ah there we go, after moving it to after the context, it works fine, both enums return 0, so it's GLEW_OK, and glgenbuffers no longer send a access violation
 
i feel stupid now, i swear i did try this, but thanks for asking the right questions
 
 
perhaps a small side-question ( perhaps not ), are there any standard libraries/functions i can use to pop up a window in case of for example, a error or a specific scenario easily? (ideally something just like windows::showSplashScreen() or showSplashScreen("An error!"))

PARTNERS