3.3.2.5. PrimitiveVertexArray

class PyDviGui.DviGlViewer.PrimitiveVertexArray.GlPointVertexArray(items=None)[source]

Bases: PyOpenGLng.HighLevelApi.VertexArrayObject.GlVertexArrayObject

Base class to draw primitives as points.

bind_to_shader(shader_program_interface_attribute)[source]

Bind the vertex array to the shader program interface attribute.

draw()[source]

Draw the vertex array as points.

set(items)[source]

Set the vertex array from a numpy array.

class PyDviGui.DviGlViewer.PrimitiveVertexArray.RuleVertexArray(items=None)[source]

Bases: PyOpenGLng.HighLevelApi.VertexArrayObject.GlVertexArrayObject

_logger = <logging.Logger object at 0x86e8f90>
bind_to_shader(shader_program_interface)[source]
draw()[source]
set(positions, dimensions, colours)[source]

Set the vertex array from a numpy array.

Previous topic

3.3.2.4. MainWindow

Next topic

3.3.2.6. ShaderProgramesV4

This Page