Shader: abstract compilation and usage
Shader: abstract compilation and usage
-
exception pymt.graphx.shader.ShaderException
Bases: exceptions.Exception
Exception launched by shader in error case
-
class pymt.graphx.shader.Shader(vertex_source=None, fragment_source=None)
Bases: object
Create a vertex or fragment shader
| Parameters : |
- vertex_source : string, default to None
Source code for vertex shader
- fragment_source : string, default to None
Source code for fragment shader
|
-
get_program_log(shader)
Return the program log
-
get_shader_log(shader)
Return the shader log
-
stop()
Stop using the shader
-
use()
Use the shader