Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def gtkgl::apputils::GLArea::__expose_event (   self,
  widget,
  event 
) [private]
'expose_event' signal handler.
This function invokes glscene.display().

Definition at line 260 of file apputils.py.

                                           :
        """'expose_event' signal handler.
        This function invokes glscene.display().
        """
        glcontext = widget.get_gl_context()
        gldrawable = widget.get_gl_drawable()
        if not gldrawable.gl_begin(glcontext): return
        # Call glscene.display()
        self.glscene.display(widget.allocation.width,
                             widget.allocation.height)
        # Swap buffers
        if gldrawable.is_double_buffered():
            gldrawable.swap_buffers()
        else:
            glFlush()
        gldrawable.gl_end()
        return True


Generated by  Doxygen 1.6.0   Back to index