What version of OpenGL is installed by default with MinGW?

I recently tried to rely on OpenGL. Trying to understand the API, I use MinGW with OpenGW. Now I have learned (or received a recommendation) that I will no longer use glBeginit glEnd, and since they are outdated, they should start with OpenGL 3.1. Since I did not know that the version used makes such a difference, I did not pay much attention to which version I actually installed on my computer. And, as far as I can see, there is no glVersionsimilar call that I could use to determine this version.

Since I use MinGW, I went to my corresponding include folder and found in c:\MinGW\include\GL\gl.h:

/*
 * Mesa 3-D graphics library
 * Version:  4.0

 [more lines]

 */

 [more lines]


#define GL_VERSION_1_1   1

#if !defined(__WIN32__)
#define GL_VERSION_1_2   1
#define GL_VERSION_1_3   1
#define GL_ARB_imaging   1
#endif

 [more lines]

#define GL_VERSION                              0x1F02

, , , 1,3. ? , ( MinGW), 1.3 ( )?

, - , MinGW OpenGL?

, OpenGL ​​ MinGW?, , MinGW OpenGL, , () .

+3
3

, - , MinGW OpenGL?

MinGW "OpenGL", ( , ) OpenGL.

MinGW (gl.h) (libopengl32.a), opengl32.dll, , Windows OpenGL 1.0 1.1... - , .

:

OpenGL .

Windows, , OpenGL, , ( , , ) - GPU ), OpenGL.

, OpenGL 3/4. gl3w GLEW. OpenGL Windows.

+5

http://learningwebgl.com/blog/?p=11#troubleshooting contains some useful information - WebGL uses OpenGL. You can use http://www.realtech-vr.com/glview/ to confirm your test.

+1
source

Source: https://habr.com/ru/post/1782969/


All Articles