|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
org.lwjgl.opengl.AWTGLCanvas
com.threerings.opengl.AWTCanvas
public class AWTCanvas
A canvas that extends AWTGLCanvas.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Runnable |
_updater
The runnable that updates the frame. |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AWTCanvas(PixelFormat pformat)
Creates a canvas with the supplied pixel format. |
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
Drawable |
getDrawable()
Returns the canvas drawable. |
protected void |
initGL()
|
void |
makeCurrent()
Makes the canvas context current. |
protected void |
paintGL()
|
void |
removeNotify()
|
protected void |
renderView()
Override to render the contents of the canvas. |
void |
shutdown()
Shuts down the canvas. |
protected void |
startUpdating()
Starts calling updateFrame() regularly. |
protected void |
stopUpdating()
Stops calling updateFrame(). |
void |
swapBuffers()
|
protected void |
updateFrame()
Updates and, if the canvas is showing, renders the scene and swaps the buffers. |
protected void |
updateView()
Override to perform any updates that are required even if not rendering. |
| Methods inherited from class org.lwjgl.opengl.AWTGLCanvas |
|---|
addNotify, componentHidden, componentMoved, componentResized, componentShown, createSharedContext, destroy, exceptionOccurred, getContext, hierarchyChanged, isCurrent, paint, releaseContext, setBounds, setCLSharingProperties, setLocation, setLocation, setSize, setSize, setSwapInterval, setVSyncEnabled, update |
| Methods inherited from class java.awt.Canvas |
|---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.GlCanvas |
|---|
setVSyncEnabled |
| Field Detail |
|---|
protected Runnable _updater
| Constructor Detail |
|---|
public AWTCanvas(PixelFormat pformat)
throws LWJGLException
LWJGLException| Method Detail |
|---|
public Drawable getDrawable()
GlCanvas
getDrawable in interface GlCanvaspublic void shutdown()
GlCanvas
shutdown in interface GlCanvaspublic void makeCurrent()
GlCanvas
makeCurrent in interface GlCanvasmakeCurrent in class AWTGLCanvaspublic void swapBuffers()
swapBuffers in class AWTGLCanvaspublic void removeNotify()
removeNotify in class AWTGLCanvasprotected void initGL()
initGL in class AWTGLCanvasprotected void paintGL()
paintGL in class AWTGLCanvasprotected void didInit()
protected void startUpdating()
updateFrame() regularly.
protected void stopUpdating()
updateFrame().
protected void updateFrame()
protected void updateView()
protected void renderView()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||