Interface ILspRenderTarget
- All Known Implementing Classes:
TLspTextureRenderTarget
public interface ILspRenderTarget
An abstraction of a framebuffer into which rendering output can be directed.
A render target can be the visible viewport of an
ILspView
or some offscreen buffer used for intermediate storage.
Since multiple render targets can be used in a nested way, the view keeps a stack
on which clients can push a render target for use by calling
push
instead
of calling bind
on the render target directly.
Calling pop
subsequently unbinds
the last pushed render target and rebinds the previously bound render target.- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(ILcdGLDrawable aGLDrawable) Binds the render target for use.void
destroy
(ILcdGLDrawable aGLDrawable) Destroys the render target.void
init
(ILcdGLDrawable aGLDrawable) Initializes the render target.void
unbind
(ILcdGLDrawable aGLDrawable) Unbinds the render target.
-
Method Details
-
init
Initializes the render target.- Parameters:
aGLDrawable
- the drawable for which the render target will be used
-
destroy
Destroys the render target.- Parameters:
aGLDrawable
- the drawable for which the render target will be used
-
bind
Binds the render target for use. This means that subsequent paints will be directed to this render target. This method should preferably not be used directly, since binding a render target automatically unbinds another possibly bound render target. Use therender target stack
's push mechanism instead.- Parameters:
aGLDrawable
- the drawable for which the render target will be used
-
unbind
Unbinds the render target. This means that subsequent paints will be directed to the main view. This method should preferably not be used directly, since unbinding a render target automatically binds the main view (the 0 frame buffer) as a render target, instead of the previously bound render target. Use therender target stack
's pop mechanism instead.- Parameters:
aGLDrawable
- the drawable for which the render target will be used
-