| Constructor and Description |
|---|
GLCanvas(Composite parent,
int style,
GLData data)
Create a GLCanvas widget using the attributes described in the GLData
object provided.
|
| Modifier and Type | Method and Description |
|---|---|
GLData |
getGLData()
Returns a GLData object describing the created context.
|
boolean |
isCurrent()
Returns a boolean indicating whether the receiver's OpenGL context
is the current context.
|
void |
setCurrent()
Sets the OpenGL context associated with this GLCanvas to be the
current GL context.
|
void |
swapBuffers()
Swaps the front and back color buffers.
|
drawBackground, getCaret, scroll, setCaret, setFontchanged, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getVerticalBaraddControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toStringpublic GLCanvas(Composite parent, int style, GLData data)
parent - a composite widgetstyle - the bitwise OR'ing of widget stylesdata - the requested attributes of the GLCanvasIllegalArgumentException - public GLData getGLData()
SWTException - public boolean isCurrent()
SWTException - public void setCurrent()
SWTException - public void swapBuffers()
SWTException - Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.