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.