4.1.3.10. RandomTexture
This modules provides tools to manage random texture.
-
class PyOpenGLng.HighLevelApi.RandomTexture.GlRandomTexture(size, texture_unit)[source]
Bases: object
This class defines a 1D random texture.
-
_create_texture()[source]
Create the texture.
-
_set(width)[source]
-
bind()[source]
Bind the texture.
-
texture_unit_number[source]
-
unbind()[source]
Unbind the texture.
-
class PyOpenGLng.HighLevelApi.RandomTexture.GlRandomTextureShaderProgram(program_name, random_texture)[source]
Bases: PyOpenGLng.HighLevelApi.Shader.GlShaderProgram
-
_logger = <logging.Logger object at 0x4909ad0>
-
bind()[source]
Bind the shader.
-
link()[source]
-
unbind()[source]
Unbind the shader.