This module provides a (functional) API to OpenGL ES 2.0.
There are multiple backend implementations of this API, available as submodules of this module. One can use one of the backends directly, or call gl.use_gl() to select one. The backend system allow running visualizations using Angle, WebGL, or other forms of remote rendering. This is in part possible by the widespread availability of OpenGL ES 2.0.
All functions that this API provides accept and return Python arguments (no ctypes is required); strings are real strings and you can pass data as numpy arrays. In general the input arguments are not checked (for performance reasons). Each function results in exactly one OpenGL API call, except when using the pyopengl backend.
The functions do not have docstrings, but most IDE’s should provide you with the function signature. For more documentation see http://www.khronos.org/opengles/sdk/docs/man/
vispy.gloo.gl.
MainProxy
Bases: vispy.gloo.gl._proxy.BaseGLProxy
vispy.gloo.gl._proxy.BaseGLProxy
Main proxy for the GL ES 2.0 API.
The functions in this namespace always call into the correct GL backend. Therefore these function objects can be safely stored for reuse. However, for efficienty it would probably be better to store the function name and then do func = getattr(gloo.gl, funcname).
func = getattr(gloo.gl, funcname)
check_error
Check this from time to time to detect GL errors.
Shown in the exception to help the developer determine when this check was done.
glActiveTexture
glAttachShader
glBindAttribLocation
glBindBuffer
glBindFramebuffer
glBindRenderbuffer
glBindTexture
glBlendColor
glBlendEquation
glBlendEquationSeparate
glBlendFunc
glBlendFuncSeparate
glBufferData
glBufferSubData
glCheckFramebufferStatus
glClear
glClearColor
glClearDepth
glClearStencil
glColorMask
glCompileShader
glCompressedTexImage2D
glCompressedTexSubImage2D
glCopyTexImage2D
glCopyTexSubImage2D
glCreateBuffer
glCreateFramebuffer
glCreateProgram
glCreateRenderbuffer
glCreateShader
glCreateTexture
glCullFace
glDeleteBuffer
glDeleteFramebuffer
glDeleteProgram
glDeleteRenderbuffer
glDeleteShader
glDeleteTexture
glDepthFunc
glDepthMask
glDepthRange
glDetachShader
glDisable
glDisableVertexAttribArray
glDrawArrays
glDrawElements
glEnable
glEnableVertexAttribArray
glFinish
glFlush
glFramebufferRenderbuffer
glFramebufferTexture2D
glFrontFace
glGenerateMipmap
glGetActiveAttrib
glGetActiveUniform
glGetAttachedShaders
glGetAttribLocation
glGetBufferParameter
glGetFramebufferAttachmentParameter
glGetParameter
glGetProgramInfoLog
glGetProgramParameter
glGetRenderbufferParameter
glGetShaderInfoLog
glGetShaderParameter
glGetShaderPrecisionFormat
glGetShaderSource
glGetTexParameter
glGetUniform
glGetUniformLocation
glGetVertexAttrib
glGetVertexAttribOffset
glHint
glIsBuffer
glIsEnabled
glIsFramebuffer
glIsProgram
glIsRenderbuffer
glIsShader
glIsTexture
glLineWidth
glLinkProgram
glPixelStorei
glPolygonOffset
glReadPixels
glRenderbufferStorage
glSampleCoverage
glScissor
glShaderSource
glStencilFunc
glStencilFuncSeparate
glStencilMask
glStencilMaskSeparate
glStencilOp
glStencilOpSeparate
glTexImage2D
glTexParameterf
glTexParameteri
glTexSubImage2D
glUniform1f
glUniform1fv
glUniform1i
glUniform1iv
glUniform2f
glUniform2fv
glUniform2i
glUniform2iv
glUniform3f
glUniform3fv
glUniform3i
glUniform3iv
glUniform4f
glUniform4fv
glUniform4i
glUniform4iv
glUniformMatrix2fv
glUniformMatrix3fv
glUniformMatrix4fv
glUseProgram
glValidateProgram
glVertexAttrib1f
glVertexAttrib2f
glVertexAttrib3f
glVertexAttrib4f
glVertexAttribPointer
glViewport
make_debug_wrapper
use_gl
Let Vispy use the target OpenGL ES 2.0 implementation
Also see vispy.use().
vispy.use()
The target GL backend to use.
functions on your system (requires PyOpenGL)