picogl.shaders.shader_uniform
Classes
Generic enumeration. |
|
Module Contents
- class picogl.shaders.shader_uniform.UniformKind[source]
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- class picogl.shaders.shader_uniform.ShaderUniform[source]
-
- uniform_type: UniformKind | None = None[source]
- static infer_type(v: Any) UniformKind[source]
- upload(gl_module=None) None[source]
Upload the current value to the bound GL program using PyOpenGL-like calls. If location < 0 (GL returns -1 when not found/used), this is a no-op.
gl_module: optional OpenGL.GL-like module. If None, will try to import PyOpenGL (from OpenGL import GL as GL) at call time.