@staticmethod
def create_default_context():
    """Create a default offscreen rendering context.

        @todo: This is window system dependent; create an appropriate context
        dynamically.
        @todo: When no context exists, create a raw offscreen context instead of a
        hidden GLUT window so that rendering is possible without an X connection.
        """
    try:
        from glitter.contexts.glx import GLXContext
        return GLXContext()
    except ImportError:
        from glitter.contexts.glut import GlutWindow
        return GlutWindow(shape=(1, 1), hide=True)
