Render module

Render

Render multiple objects on GPU(points, image2D, image3D)

Author:Sebastian Reinhard
Organization:Biophysics and Biotechnology, Julius-Maximillians-University of Würzburg
Version:2019.06.26

Shader

Create and compile a program from vertex, fragment and geometry shader

Author:Sebastian Reinhard
Organization:Biophysics and Biotechnology, Julius-Maximillians-University of Würzburg
Version:2019.06.26
class impro.render.shader.shader(filename)

Bases: object

Parameters:filepath – path to vertex fragment and (optional) geometry shaders. should all have the same name
Variables:m_program – reference number to program
attribute_loc(name)
create_shader(shader, type)

Compile OpenGL shaders string and check for shaders errors :param shader: String of shaders :param type: Type of shaders can be: GL_VERTEX_SHADER, GL_FRAGMENT_SHADER, GL_GEOMETRY_SHADER :return: Shader ID

enums

Link program :raises RuntimeError:

load_shader(filename)

Load shaders string from file :param filename: Full path to shaders :return: File as string

set_uniform(name, data)
uniform_loc(name)
validate_program()

Validate program :raises RuntimeError:

Module contents