madgui.survey.gl_util module

Classes

Object3D(program, transform, color, …[, mode])

Functions

compile_shader(type, source)

Compile a OpenGL shader, and return its id.

create_shader_program(shaders)

load_shader(type, name)

set_uniform_matrix(program, name, matrix)

set_uniform_vector(program, name, vector)

setup_element_buffer(indices)

setup_vertex_buffer(loc, data)

Set program attribute from vertex buffer.

class madgui.survey.gl_util.Object3D(program, transform, color, vertices, normals, triangles, mode=GL_TRIANGLES)[source]

Bases: object

Methods

delete()

draw()

opaque()

Return true if the object is opaque.

position()

Return the local coordinate system’s origin point in world coordinates.

delete()[source]
draw()[source]
opaque()[source]

Return true if the object is opaque.

position()[source]

Return the local coordinate system’s origin point in world coordinates. The meaning of this coordinate depends on the shape and transform used, but is usually at the center/start of the object.

madgui.survey.gl_util.compile_shader(type, source)[source]

Compile a OpenGL shader, and return its id.

madgui.survey.gl_util.create_shader_program(shaders)[source]
madgui.survey.gl_util.load_shader(type, name)[source]
madgui.survey.gl_util.set_uniform_matrix(program, name, matrix)[source]
madgui.survey.gl_util.set_uniform_vector(program, name, vector)[source]
madgui.survey.gl_util.setup_element_buffer(indices)[source]
madgui.survey.gl_util.setup_vertex_buffer(loc, data)[source]

Set program attribute from vertex buffer.