Package panamagl.canvas
Interface GLCanvas
public interface GLCanvas
A canvas able to perform OpenGL calls through the
GLEventListener interface.- Author:
- Martin Pernollet
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplay()Trigger display.Return the GL context.getFlip()getGL()Return the GL instance allowing to invoke OpenGL.Return the event listener handling init, drawing and resize requests.intReturn the performance information about this panel.Image<?> intgetWidth()booleanReturn true if the panel has initialized GL ressource and is ready for display.booleanReturn true if a frame rendering has started and not yet finished.booleanReturn true if the component is visible on screen (depend on windowing toolkit implementation, e.g.voidrepaint()voidsetFlip(GLCanvas.Flip flip) voidsetGLEventListener(GLEventListener listener) Set the event listener handling init, drawing and resize requests.voidsetOffscreenRenderer(OffscreenRenderer offscreen) voidsetScreenshot(Image<?> image)
-
Method Details
-
display
void display()Trigger display. The component is responsible for routing the request to the appropriate threads. -
isRendering
boolean isRendering()Return true if a frame rendering has started and not yet finished. -
getGLEventListener
GLEventListener getGLEventListener()Return the event listener handling init, drawing and resize requests. -
setGLEventListener
Set the event listener handling init, drawing and resize requests. -
isInitialized
boolean isInitialized()Return true if the panel has initialized GL ressource and is ready for display. -
isVisible
boolean isVisible()Return true if the component is visible on screen (depend on windowing toolkit implementation, e.g.Component.isVisible()). -
getContext
GLContext getContext()Return the GL context. -
getGL
GL getGL()Return the GL instance allowing to invoke OpenGL. -
getMonitoring
RenderCounter getMonitoring()Return the performance information about this panel. -
getWidth
int getWidth() -
getHeight
int getHeight() -
repaint
void repaint() -
setScreenshot
-
getScreenshot
Image<?> getScreenshot() -
getOffscreenRenderer
OffscreenRenderer getOffscreenRenderer() -
setOffscreenRenderer
-
setFlip
-
getFlip
GLCanvas.Flip getFlip()
-