Constructor and Description |
---|
SurfaceTextureRenderer(int facing) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupEGLContext()
Clean up the current GL context.
|
void |
configureSurfaces(Collection<Pair<Surface,Size>> surfaces)
Set a collection of output
Surface s that can be drawn to. |
void |
drawIntoSurfaces(CaptureCollector targetCollector)
Draw the current buffer in the
SurfaceTexture returned from
getSurfaceTexture() into the set of target Surface s
in the next request from the given CaptureCollector , or drop
the frame if none is available. |
void |
flush()
Drop all current GL operations on the floor.
|
SurfaceTexture |
getSurfaceTexture()
Return the surface texture to draw to - this is the texture use to when producing output
surface buffers.
|
public SurfaceTexture getSurfaceTexture()
SurfaceTexture
.public void configureSurfaces(Collection<Pair<Surface,Size>> surfaces)
Surface
s that can be drawn to.surfaces
- a Collection
of surfaces.public void drawIntoSurfaces(CaptureCollector targetCollector)
SurfaceTexture
returned from
getSurfaceTexture()
into the set of target Surface
s
in the next request from the given CaptureCollector
, or drop
the frame if none is available.
Any Surface
s targeted must be a subset of the Surface
s
set in the last configureSurfaces(java.util.Collection)
call.
targetCollector
- the surfaces to draw to.public void cleanupEGLContext()
public void flush()