Create Core context with GLUT/FreeGLUT?

后端 未结 1 1823
暖寄归人
暖寄归人 2020-12-22 00:24

I\'m working on a project that utilizes freeglut and GLEW. In order to use the vertex and fragment shaders in my program, the minimum OpenGL versio

相关标签:
1条回答
  • 2020-12-22 01:04

    Use glutInitContextVersion() and glutInitContextProfile() select the context version and context profile you want:

    ...
    glutInit( ... );
    glutInitContextVersion( 3, 3 );
    glutInitContextProfile( GLUT_CORE_PROFILE );
    glutInitDisplayMode( ... );
    glutCreateWindow( ... );
    ...
    

    Documentation? What documentation?

    0 讨论(0)
提交回复
热议问题