(self)
Clear the scene.
Clear the scene.
Clear the scene .
def clear(self):
        """Clear the scene."""
        # clear the buffer (and depth buffer is 3D is activated)
        if self.scene.get('renderer_options', {}).get('activate3D', None):
            gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
        else:
            gl.glClear(gl.GL_COLOR_BUFFER_BIT)
def clear ( self ) : # clear the buffer (and depth buffer is 3D is activated) if self . scene . get ( 'renderer_options' , { } ) . get ( 'activate3D' , None ) : gl . glClear ( gl . GL_COLOR_BUFFER_BIT | gl . GL_DEPTH_BUFFER_BIT ) else : gl . glClear ( gl . GL_COLOR_BUFFER_BIT )