Sha256: 9d3bf8cd8db0e98d141d5e81adaa8a306e3254eb5ed7c2a157161e99d90f0c7c

Contents?: true

Size: 1.33 KB

Versions: 39

Compression:

Stored size: 1.33 KB

Contents

module Fox
  #
  # 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.
  #
  class FXGLContext < FXId
  
    # The visual [FXGLVisual]
    attr_reader :visual

    # 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.
    def initialize(app, visual, other=nil) # :yields: theGLContext
    end
  
    # Return +true+ if it is sharing display lists.
    def shared?; end
    
    # Make this OpenGL context current prior to performing OpenGL commands.
    def begin(drawable); end
    
    # Make this OpenGL context non-current.
    def end(); end
    
    # Swap front and back buffer
    def swapBuffers(); end
    
    # Copy part of backbuffer to front buffer [Mesa]
    def swapSubBuffers(x, y, w, h); end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXGLContext.rb
fxruby-1.6.22.pre2 rdoc-sources/FXGLContext.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXGLContext.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXGLContext.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXGLContext.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXGLContext.rb
fxruby-1.6.20 rdoc-sources/FXGLContext.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXGLContext.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXGLContext.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXGLContext.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXGLContext.rb
fxruby-1.6.11 rdoc-sources/FXGLContext.rb
fxruby-1.6.10 rdoc-sources/FXGLContext.rb
fxruby-1.6.12 rdoc-sources/FXGLContext.rb
fxruby-1.6.13 rdoc-sources/FXGLContext.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FXGLContext.rb
fxruby-1.6.14 rdoc-sources/FXGLContext.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FXGLContext.rb
fxruby-1.6.15 rdoc-sources/FXGLContext.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FXGLContext.rb