picogl.backend.modern.core.context ================================== .. py:module:: picogl.backend.modern.core.context Attributes ---------- .. autoapisummary:: picogl.backend.modern.core.context.win Classes ------- .. autoapisummary:: picogl.backend.modern.core.context.GObject picogl.backend.modern.core.context.GLContext picogl.backend.modern.core.context.Tu01Win Module Contents --------------- .. py:class:: GObject .. py:class:: GLContext Bases: :py:obj:`GObject` .. py:attribute:: MVP_ID :value: None .. py:attribute:: vertexbuffer :value: None .. py:attribute:: colorbuffer :value: None .. py:attribute:: Projection :value: None .. py:attribute:: View :value: None .. py:attribute:: Model :value: None .. py:attribute:: MVP :value: None .. py:method:: initialize(shader, vertex_data, color_data) Initialize the buffers and shader-related resources. .. py:method:: calculate_mvp(width=1920, height=1080) Calculate the Model-View-Projection matrix. .. py:class:: Tu01Win Bases: :py:obj:`examples.utils.test_window.GLWindow` GLWindow .. py:attribute:: context .. py:attribute:: shader :value: None .. py:method:: initializeGL() Set up OpenGL state. Must be implemented by subclass. .. py:method:: init_context() .. py:method:: calc_MVP(width=1920, height=1080) .. py:method:: resizeGL(Width, Height) Handle window resize. Must be implemented by subclass. .. py:method:: paintGL() Render the scene. Must be implemented by subclass. .. py:data:: win