vispy.gloo.gl.tests.test_functionality module#

Test to verify the functionality of the OpenGL backends. This test sets up a real visualization with shaders and all. This tests setting source code, setting texture and buffer data, and we touch many other functions of the API too. The end result is an image with four colored quads. The result is tested for pixel color.

The visualization#

We create a visualization where the screen is divided in 4 quadrants, and each quadrant is drawn a different color (black, red, green, blue). The drawing is done for 50% using attribute data, and 50% using a texture. The end result should be fully saturated colors.

Remember: the bottom left is (-1, -1) and the first quadrant.

vispy.gloo.gl.tests.test_functionality.teardown_module()#
vispy.gloo.gl.tests.test_functionality.test_functionality_desktop()#

Test desktop GL backend for full functionality.

vispy.gloo.gl.tests.test_functionality.test_functionality_es2()#

Test es2 GL backend for full functionality.

vispy.gloo.gl.tests.test_functionality.test_functionality_proxy()#

Test GL proxy class for full functionality.

vispy.gloo.gl.tests.test_functionality.test_functionality_pyopengl()#

Test pyopengl GL backend for full functionality.