0
我有一個小的pyopengl使用着色器的代碼片。我收到以下「信息」日誌消息,但不知道它們的含義和文檔很差 - 或者我無法找到它。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 *
如何將其設置爲使用核心或NVIDIA ARB版本的開關? – Sardathrion 2012-07-16 08:25:09
@Sardathrion類似'從OpenGL.GL.ARB.shader_objects導入*'查看http://pyopengl.sourceforge.net/ctypes/using.html – StuGrey 2012-07-16 08:29:30
使用上面的導入行,我仍然可以獲取這些信息消息。任何想法爲什麼選擇核心的而不是ARB的? – Sardathrion 2012-07-16 08:42:26