0

我有一小段使用着色器的 pyopengl 代码。我收到以下“信息”日志消息,但不知道它们的含义并且文档很差——或者我找不到它。

任何人都可以澄清这些是什么意思?

INFO     [   MainThread::OpenGL.extensions]  OpenGL Version: 3.3.0 NVIDIA 295.59
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glCreateShader from glCreateShader, glCreateShaderObjectARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glShaderSource from glShaderSource, glShaderSourceARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glCompileShader from glCompileShader, glCompileShaderARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glGetShaderiv from glGetShaderiv, glGetObjectParameterivARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glCreateProgram from glCreateProgram, glCreateProgramObjectARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glAttachShader from glAttachShader, glAttachObjectARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glLinkProgram from glLinkProgram, glLinkProgramARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glValidateProgram from glValidateProgram, glValidateProgramARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glGetProgramiv from glGetProgramiv, glGetObjectParameterivARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glDeleteShader from glDeleteShader, glDeleteObjectARB
INFO     [   MainThread::OpenGL.extensions]  Chose alternate: glUseProgram from glUseProgram, glUseProgramObjectARB

导入行是:

from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from OpenGL.GL.ARB.shader_objects import *
from OpenGL.GL.ARB.fragment_shader import *
from OpenGL.GL.ARB.vertex_shader import *
4

1 回答 1

1

如果两者都可用,PyOpenGL 可以在着色器函数的核心 GLSL 版本和它们的 NVIDIA ARB 等效版本之间进行选择。您的信息日志告诉您,您的程序在选择时选择了核心版本。

于 2012-07-16T08:18:09.410 回答