我有一个使用着色器的小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 *
答案 0 :(得分:1)
如果两者都可用,PyOpenGL可以在着色器功能的核心GLSL版本和它们的NVIDIA ARB等效版本之间进行选择。您的信息日志告诉您,您的程序在选择时会选择核心版本。