

.. _sphx_glr_gallery_gloo_gl:

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

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Drawing a rotated 3D cube">

.. only:: html

  .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_cube_thumb.png
    :alt:

  :doc:`/gallery/gloo/gl/cube`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Drawing a rotated 3D cube</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="(adapted from the &quot;OpenGL ES 2.0 Programming Guide&quot;) This example demonstrates a series of explosions that last one second. The visualization during the explosion is highly optimized using a Vertex Buffer Object (VBO). After each explosion, vertex data for the next explosion are calculated, such that each explostion is unique.">

.. only:: html

  .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_fireworks_thumb.png
    :alt:

  :doc:`/gallery/gloo/gl/fireworks`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Example demonstrating simulation of fireworks using point sprites</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Drawing a simple quad">

.. only:: html

  .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_quad_thumb.png
    :alt:

  :doc:`/gallery/gloo/gl/quad`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Drawing a simple quad</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example is a modification of examples/tutorial/gl/quad.py which uses instanced rendering to generate many copies of the same quad.">

.. only:: html

  .. image:: /gallery/gloo/gl/images/thumb/sphx_glr_quad_instanced_thumb.png
    :alt:

  :doc:`/gallery/gloo/gl/quad_instanced`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Displaying quads using Instanced rendering</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/gloo/gl/cube
   /gallery/gloo/gl/fireworks
   /gallery/gloo/gl/quad
   /gallery/gloo/gl/quad_instanced

