Jump to content
    

OpenGL версия

Здравствуйте!

 

Подскажите пожалуйста, как в windows в командной узнать версию OpenGL ? 

Share this post


Link to post
Share on other sites

нажать справа на кнопочку Releases, скачать уже собранный ехе файл и запустить.

 

либо скачать glfw, сделать с его помощью контекст и позвать glGetString

#include <windows.h>
#include <GL/gl.h>
#include <stdio.h>
#include <stdlib.h>

#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>

int main(void){
    if (!glfwInit()) exit(EXIT_FAILURE);
    GLFWwindow* window = glfwCreateWindow(640, 480, "Simple example", NULL, NULL);
    glfwMakeContextCurrent(window);
    printf("%s", glGetString(GL_VERSION));
    glfwDestroyWindow(window);
    glfwTerminate();
    exit(EXIT_SUCCESS);
}

 

Share this post


Link to post
Share on other sites

спасибо, запустил wglinfo64.exe, он открыл командную строку, что-то вывел и вскоре закрылся

С помощью десятка попыток останова и чтения вывода, получил следующую информацию:

[WGL] OpenGL (core profile) version string: 4.6.0 NVIDIA 391.35
[WGL] OpenGL (software) version string: 1.1.0
[WGL] OpenGL version string: 4.6.0 NVIDIA 391.35

 

В связи с этим вопрос, что из вышеперечисленного является версией OpenGL ?

 

Спасибо!

 

Share this post


Link to post
Share on other sites

капитан очевидность подсказывает что 4.6.0

391.35 - версия нвидиавских драйверов

а ещё opengl 1.1 виндовс со времён 9x умеет софтварно рендерить даже без видео карты

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...