addi II 1 May 15, 2023 Posted May 15, 2023 · Report post Здравствуйте! Подскажите пожалуйста, как в windows в командной узнать версию OpenGL ? Quote Share this post Link to post Share on other sites More sharing options...
_pv 107 May 15, 2023 Posted May 15, 2023 · Report post https://github.com/gkv311/wglinfo Quote Share this post Link to post Share on other sites More sharing options...
addi II 1 May 16, 2023 Posted May 16, 2023 · Report post Спасибо, а как ее использовать?? Quote Share this post Link to post Share on other sites More sharing options...
_pv 107 May 16, 2023 Posted May 16, 2023 · Report post нажать справа на кнопочку 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); } Quote Share this post Link to post Share on other sites More sharing options...
addi II 1 May 16, 2023 Posted May 16, 2023 · Report post спасибо, запустил 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 ? Спасибо! Quote Share this post Link to post Share on other sites More sharing options...
_pv 107 May 16, 2023 Posted May 16, 2023 · Report post капитан очевидность подсказывает что 4.6.0 391.35 - версия нвидиавских драйверов а ещё opengl 1.1 виндовс со времён 9x умеет софтварно рендерить даже без видео карты Quote Share this post Link to post Share on other sites More sharing options...
addi II 1 May 16, 2023 Posted May 16, 2023 · Report post спасибо!👍 Quote Share this post Link to post Share on other sites More sharing options...