我有一小段使用着色器的 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 *