Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 860 Bytes

shaderprogram.rst

File metadata and controls

31 lines (24 loc) · 860 Bytes

ShaderProgram

.. py:module:: demosys.opengl
.. py:currentmodule:: demosys.opengl

Methods

.. automethod:: ShaderProgram.uniform(name, value=None)
.. automethod:: ShaderProgram.prepare(reload=False)

Source Methods

.. automethod:: ShaderProgram.set_source(source:str)
.. automethod:: ShaderProgram.set_vertex_source(source:str)
.. automethod:: ShaderProgram.set_geometry_source(source:str)
.. automethod:: ShaderProgram.set_fragment_source(source:str)
.. automethod:: ShaderProgram.release()

Attributes

.. autoattribute:: ShaderProgram.subroutines
.. autoattribute:: ShaderProgram.geometry_input
.. autoattribute:: ShaderProgram.geometry_output
.. autoattribute:: ShaderProgram.geometry_vertices
.. autoattribute:: ShaderProgram.mglo
.. autoattribute:: ShaderProgram.glo
.. autoattribute:: ShaderProgram.ctx