vispy.gloo package#
Subpackages#
- vispy.gloo.gl package
- Subpackages
- Submodules
- Module contents
MainProxy
check_error()
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()
- vispy.gloo.tests package
- Submodules
- vispy.gloo.tests.test_buffer module
- vispy.gloo.tests.test_context module
- vispy.gloo.tests.test_framebuffer module
- vispy.gloo.tests.test_glir module
- vispy.gloo.tests.test_globject module
- vispy.gloo.tests.test_program module
- vispy.gloo.tests.test_texture module
Texture2DTest
TextureAtlasTest
TextureTest
test_texture_1D()
test_texture_1D_formats()
test_texture_1D_opengl_formats()
test_texture_2D_formats()
test_texture_2D_internalformats()
test_texture_2D_opengl_formats()
test_texture_3D()
test_texture_3D_formats()
test_texture_3D_internalformats()
test_texture_3D_opengl_formats()
test_texture_set_data_different_dtype()
- vispy.gloo.tests.test_use_gloo module
- vispy.gloo.tests.test_util module
- vispy.gloo.tests.test_wrappers module
- Module contents
- Submodules
Submodules#
- vispy.gloo.buffer module
- vispy.gloo.context module
- vispy.gloo.framebuffer module
- vispy.gloo.glir module
- GL Intermediate Representation Desktop Implementation
BaseGlirParser
GlirBuffer
GlirFragmentShader
GlirFrameBuffer
GlirGeometryShader
GlirIndexBuffer
GlirObject
GlirParser
GlirProgram
GlirProgram.ATYPEINFO
GlirProgram.ATYPEMAP
GlirProgram.UTYPEMAP
GlirProgram.activate()
GlirProgram.attach()
GlirProgram.create()
GlirProgram.deactivate()
GlirProgram.delete()
GlirProgram.draw()
GlirProgram.link_program()
GlirProgram.set_attribute()
GlirProgram.set_shaders()
GlirProgram.set_texture()
GlirProgram.set_uniform()
GlirQueue
GlirRenderBuffer
GlirShader
GlirTexture
GlirTexture1D
GlirTexture2D
GlirTexture3D
GlirTextureCube
GlirVertexBuffer
GlirVertexShader
as_enum()
as_es2_command()
convert_shader()
glTexImage1D()
glTexImage3D()
glTexSubImage1D()
glTexSubImage3D()
glir_logger()
- vispy.gloo.globject module
- vispy.gloo.preprocessor module
- vispy.gloo.program module
- vispy.gloo.texture module
- vispy.gloo.util module
- vispy.gloo.wrappers module
GL_PRESETS
GlooFunctions
clear()
finish()
flush()
get_gl_configuration()
get_state_presets()
read_pixels()
set_blend_color()
set_blend_equation()
set_blend_func()
set_clear_color()
set_clear_depth()
set_clear_stencil()
set_color_mask()
set_cull_face()
set_depth_func()
set_depth_mask()
set_depth_range()
set_front_face()
set_hint()
set_line_width()
set_polygon_offset()
set_sample_coverage()
set_scissor()
set_state()
set_stencil_func()
set_stencil_mask()
set_stencil_op()
set_viewport()
Module contents#
Object oriented interface to OpenGL.
This module implements classes for the things that are “objects” in OpenGL, such as textures, FBO’s, VBO’s and shaders. Further, some convenience classes are implemented (like the collection class).
This set of classes provides a friendly (Pythonic) interface to OpenGL, and is designed to provide OpenGL’s full functionality.
All classes inherit from GLObject, which provide a basic interface, enabling, activating and deleting the object. Central to each visualization is the Program. Other objects, such as Texture2D and VertexBuffer should be set as uniforms and attributes of the Program object.
Example:
# Init
program = gloo.Program(vertex_source, fragment_source)
program['a_position'] = gloo.VertexBuffer(my_positions_array)
program['s_texture'] = gloo.Texture2D(my_image)
...
# Draw event handler
program['u_color'] = 0.0, 1.0, 0.0
program.draw(gl.GL_TRIANGLES)
Note
With vispy.gloo we strive to offer a Python interface that provides the full functionality of OpenGL. However, this layer is a work in progress and there are still a few known limitations. Most notably:
TextureCubeMap is not yet implemented
FBOs can only do 2D textures (not 3D textures or cube maps)
No support for compressed textures.