新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gdk::GLContext

class Gdk::GLContext

Rendering Context - OpenGL rendering context object

Class Methods

Gdk::GLContext.new(gldrawable, share_list, direct, render_type)
Creates a new OpenGL rendering context.
Gdk::GLContext.current
Returns the current Gdk::GLContext.
  • Returns: the current Gdk::GLContext or nil if there is no current context.

Instance Methods

gl_drawable
Gets the Gdk::GLDrawable to which the context is bound.
gl_config
Gets the Gdk::GLConfig with which the context is configured.
share_list
Gets the Gdk::GLContext with which the context shares the display lists and texture objects.
direct?
Returns whether the context is a direct rendering context.
render_type
Gets the render_type of the context.
destroy
Destroys the OpenGL resources associated with the context.
copy(src, mask)
Copy state from src rendering context to the context. mask contains the bitwise-OR of the same symbolic names that are passed to the GL.PushAttrib() function. You can use GL::ALL_ATTRIB_BITS to copy all the rendering state information.
  • src: the source Gdk::GLContext.
  • Returns: false if it fails, true otherwise.
更新日時:2005/11/17 02:43:41
キーワード:
参照:[Gtk::Widget] [Ruby/GtkGLExt] [Gdk::GLDrawable] [Gdk::GLContext]