Class Fox::FXGLContext
In: rdoc-sources/FXGLContext.rb
Parent: FXId

A GL context is an object representing the OpenGL state information. Multiple GL context may share display lists to conserve memory. When drawing multiple windows, it may be advantageous to share not only display lists, but also GL contexts. Since the GL context is created for a certain frame-buffer configuration, sharing of GL contexts is only possible if the windows sharing the GL context all have the same GL visual. However, display lists may be shared between different GL contexts.

Methods

begin   end   new   shared?   swapBuffers   swapSubBuffers  

Attributes

visual  [R]  The visual [FXGLVisual]

Public Class methods

Construct an OpenGL context. If other is a reference to an existing FXGLContext, this context will share display lists with that other context. Otherwise, this context will use its own private display list.

Public Instance methods

Make this OpenGL context current prior to performing OpenGL commands.

Make this OpenGL context non-current.

Return true if it is sharing display lists.

Swap front and back buffer

Copy part of backbuffer to front buffer [Mesa]

[Validate]