Class: Fox::FXGLCanvas
- Defined in:
- rdoc-sources/FXGLCanvas.rb
Overview
FXGLCanvas is an area drawn by another object.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from FXWindow
#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y
Attributes inherited from FXDrawable
Attributes inherited from FXId
Instance Method Summary collapse
-
#context ⇒ Object
Return an integer handle to the underlying OpenGL context.
-
#current? ⇒ Boolean
Return
true
if this canvas’ context is the current context. -
#initialize(parent, vis, sharegroup, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXGLCanvas
constructor
Construct an OpenGL-capable canvas that shares its display list with another GL canvas.
-
#makeCurrent ⇒ Object
Make OpenGL context current prior to performing OpenGL commands.
-
#makeNonCurrent ⇒ Object
Make OpenGL context non-current.
-
#shared? ⇒ Boolean
Return
true
if sharing display lists. -
#swapBuffers ⇒ Object
Swap front and back buffer.
Methods inherited from FXWindow
#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, #after?, after?, #before?, before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #visible=, #width, #width=
Methods included from Responder2
Methods inherited from FXDrawable
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(parent, vis, sharegroup, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXGLCanvas
Construct an OpenGL-capable canvas that shares its display list with another GL canvas. This canvas becomes a member of a display list share group. All members of the display list share group have to have the same visual.
9 10 |
# File 'rdoc-sources/FXGLCanvas.rb', line 9 def initialize(parent, vis, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theGLCanvas end |
Instance Method Details
#context ⇒ Object
Return an integer handle to the underlying OpenGL context. On Unix/Linux systems, this is the GLX rendering context returned by a call to glXCreateContext(). On Microsoft Windows systems, it is the value returns by wglCreateContext().
30 |
# File 'rdoc-sources/FXGLCanvas.rb', line 30 def context; end |
#current? ⇒ Boolean
Return true
if this canvas’ context is the current context.
39 |
# File 'rdoc-sources/FXGLCanvas.rb', line 39 def current? ; end |
#makeCurrent ⇒ Object
Make OpenGL context current prior to performing OpenGL commands
33 |
# File 'rdoc-sources/FXGLCanvas.rb', line 33 def makeCurrent(); end |
#makeNonCurrent ⇒ Object
Make OpenGL context non-current
36 |
# File 'rdoc-sources/FXGLCanvas.rb', line 36 def makeNonCurrent(); end |
#shared? ⇒ Boolean
Return true
if sharing display lists.
22 |
# File 'rdoc-sources/FXGLCanvas.rb', line 22 def shared? ; end |
#swapBuffers ⇒ Object
Swap front and back buffer
42 |
# File 'rdoc-sources/FXGLCanvas.rb', line 42 def swapBuffers(); end |