|
j3d.org OpenGL SWT Bindings | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCanvas
org.j3d.opengl.swt.GLCanvas
A widget that represents a surface that OpenGL draws into.
The canvas automatically creates a GLDrawable object to correspond to this canvas, and an accompanying GLContext instance. The GLContext instance, by default is not synchronized.
Constructor Summary | |
GLCanvas(Composite parent,
int style)
Create a new isntance of this widget using the default GL capabilities. |
|
GLCanvas(Composite parent,
int style,
GLCapabilities capabilities,
GLCapabilitiesChooser chooser,
GLContext sharedWith)
Create a new instance of this widget. |
|
GLCanvas(Composite parent,
int style,
GLContext shareWith)
Create a new isntance of this widget |
Method Summary | |
GLContext |
getGLContext()
Get the GLContext instance that was created for this canvas instance. |
GLDrawable |
getGLDrawable()
Get the GLContext instance that was created for this canvas instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GLCanvas(Composite parent, int style)
parent
- The parent component this widget exists instyle
- SWT style bitspublic GLCanvas(Composite parent, int style, GLContext shareWith)
parent
- The parent component this widget exists instyle
- SWT style bitspublic GLCanvas(Composite parent, int style, GLCapabilities capabilities, GLCapabilitiesChooser chooser, GLContext sharedWith)
parent
- The parent component this widget exists instyle
- SWT style bitscapabilities
- A selection of the requested capabilitieschooser
- A chooser to help decide between requested and available
screen and device capabilitiessharedWith
- The GL context to share resources with. May be nullMethod Detail |
public GLContext getGLContext()
public GLDrawable getGLDrawable()
|
j3d.org OpenGL SWT Bindings | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |