:orphan: Gloo ==== More example scripts are available in the VisPy repository's `example scripts directory `_. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_animate_images_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_animate_images.py` .. raw:: html
Show an Image
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_animate_images_slice_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_animate_images_slice.py` .. raw:: html
Animate an Image
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_animate_shape_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_animate_shape.py` .. raw:: html
Animate a Shape
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_colored_cube_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_colored_cube.py` .. raw:: html
Show a rotating colored cube
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_colored_cube_instanced_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_colored_cube_instanced.py` .. raw:: html
Draw many colored cubes using instanced rendering
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_colored_quad_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_colored_quad.py` .. raw:: html
Show color quad Image
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_display_lines_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_display_lines.py` .. raw:: html
Draw a bunch of lines
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_display_points_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_display_points.py` .. raw:: html
Draw 2D points
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_display_shape_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_display_shape.py` .. raw:: html
Draw a Quad
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_gpuimage_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_gpuimage.py` .. raw:: html
Animate a 2D function
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_hello_fbo_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_hello_fbo.py` .. raw:: html
Use FrameBuffers
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_lighted_cube_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_lighted_cube.py` .. raw:: html
Show a rotating cube with lighting
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_multi_texture_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_multi_texture.py` .. raw:: html
Use multiple textures
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_outlined_cube_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_outlined_cube.py` .. raw:: html
Show a rotating cube with an outline
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_post_processing_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_post_processing.py` .. raw:: html
Show post-processing using a FrameBuffer
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_rotate_cube_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_rotate_cube.py` .. raw:: html
Draw 3D rotating Cube
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_rotating_quad_thumb.gif :alt: :ref:`sphx_glr_gallery_gloo_rotating_quad.py` .. raw:: html
Rotating Quad
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_spatial_filters_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_spatial_filters.py` .. raw:: html
Spatial Filtering
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_start_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_start.py` .. raw:: html
Simplest Possible Script
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_start_shaders_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_start_shaders.py` .. raw:: html
Simplest Shader Program
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_texture_precision_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_texture_precision.py` .. raw:: html
Example using texture internalformat for higher precision
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_textured_cube_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_textured_cube.py` .. raw:: html
Show a rotating textured cube
.. raw:: html
.. only:: html .. image:: /gallery/gloo/images/thumb/sphx_glr_textured_quad_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_textured_quad.py` .. raw:: html
Show a textured quad
.. raw:: html
.. toctree:: :hidden: /gallery/gloo/animate_images /gallery/gloo/animate_images_slice /gallery/gloo/animate_shape /gallery/gloo/colored_cube /gallery/gloo/colored_cube_instanced /gallery/gloo/colored_quad /gallery/gloo/display_lines /gallery/gloo/display_points /gallery/gloo/display_shape /gallery/gloo/gpuimage /gallery/gloo/hello_fbo /gallery/gloo/lighted_cube /gallery/gloo/multi_texture /gallery/gloo/outlined_cube /gallery/gloo/post_processing /gallery/gloo/rotate_cube /gallery/gloo/rotating_quad /gallery/gloo/spatial_filters /gallery/gloo/start /gallery/gloo/start_shaders /gallery/gloo/texture_precision /gallery/gloo/textured_cube /gallery/gloo/textured_quad The low-level GL module ======================= Vispy has a low-level `gl` module which wraps `GL` calls almost to a 1-to-1 ratio. While this is intended mostly for internal use, it is possible to use this to construct programs. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_cube_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_gl_cube.py` .. raw:: html
Drawing a rotated 3D cube
.. raw:: html
.. only:: html .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_fireworks_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_gl_fireworks.py` .. raw:: html
Example demonstrating simulation of fireworks using point sprites
.. raw:: html
.. only:: html .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_quad_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_gl_quad.py` .. raw:: html
Drawing a simple quad
.. raw:: html
.. only:: html .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_quad_instanced_thumb.png :alt: :ref:`sphx_glr_gallery_gloo_gl_quad_instanced.py` .. raw:: html
Displaying quads using Instanced rendering
.. raw:: html
.. toctree:: :hidden: :includehidden: /gallery/gloo/gl/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: gloo_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: gloo_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_