Package com.luciad.view.opengl.binding
Interface ILcdGLRunnable
public interface ILcdGLRunnable
Runnable that can be scheduled on an
ILcdGLDrawable
to be executed
when the drawable's OpenGL context is current. This interface can be used to
schedule OpenGL calls outside of the drawable's regular painting loop (e.g. to
destroy texture objects or perform similar non-rendering tasks).- Since:
- 2013.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(ILcdGLDrawable aGLDrawable) This method is called byILcdGLDrawable.invokeAndWait(ILcdGLRunnable)
orILcdGLDrawable.invokeLater(ILcdGLRunnable)
.
-
Method Details
-
run
This method is called byILcdGLDrawable.invokeAndWait(ILcdGLRunnable)
orILcdGLDrawable.invokeLater(ILcdGLRunnable)
. The OpenGL context is always current when this method is invoked. The return value of this method indicates whether the contents of the framebuffer are still valid after the runnable has been executed. If this method returns false, the drawable will perform an additional repaint to restore the framebuffer.- Parameters:
aGLDrawable
- the drawable which is invoking the runnable- Returns:
- true if an additional repaint is needeed to restore the framebuffer after executing the runnable
-