picogl.backend.modern.core.context

Attributes

win

Classes

GObject

GLContext

Tu01Win

GLWindow

Module Contents

class picogl.backend.modern.core.context.GObject[source]
class picogl.backend.modern.core.context.GLContext[source]

Bases: GObject

MVP_ID = None[source]
vertexbuffer = None[source]
colorbuffer = None[source]
Projection = None[source]
View = None[source]
Model = None[source]
MVP = None[source]
initialize(shader, vertex_data, color_data)[source]

Initialize the buffers and shader-related resources.

calculate_mvp(width=1920, height=1080)[source]

Calculate the Model-View-Projection matrix.

class picogl.backend.modern.core.context.Tu01Win[source]

Bases: examples.utils.test_window.GLWindow

GLWindow

context[source]
shader = None[source]
initializeGL()[source]

Set up OpenGL state. Must be implemented by subclass.

init_context()[source]
calc_MVP(width=1920, height=1080)[source]
resizeGL(Width, Height)[source]

Handle window resize. Must be implemented by subclass.

paintGL()[source]

Render the scene. Must be implemented by subclass.

picogl.backend.modern.core.context.win[source]