【发布时间】:2018-08-04 02:03:51
【问题描述】:
【问题讨论】:
【问题讨论】:
您可以使用 OpenGL Api 的glGetString(GL_VERSION) 方法来获取您需要的信息。
这是一个示例用法;
#include <stdio.h>
#include <GL/gl.h>
#include <GL/freeglut.h>
int main(int argc, char **argv)
{
glutInit(&argc, argv); // creates opengl context
glutInitContextVersion(4, 4); // this is the version that works for me
glutCreateWindow("Test");
const GLubyte *vendor = glGetString( GL_VENDOR ); // returns the Vendor of Card
const GLubyte *version = glGetString( GL_VERSION ); // returns the version of the Card
}
您可以阅读更多关于它的信息here。
【讨论】: