Package com.brightcove.player.video360
Class GlRenderTarget
- java.lang.Object
-
- com.brightcove.player.video360.GlRenderTarget
-
@RequiresApi(api=17) public class GlRenderTarget extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GlRenderTarget()
Constructs a new Open GL render target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createRenderSurface(java.lang.Object surfaceTexture)
boolean
hasValidContext()
Checks if the current Open GL context is valid.boolean
hasValidSurface()
Checks if the current Open GL surface is valid.void
initialize()
void
makeCurrent()
void
release()
Releases the Open GL resource used by this render target.void
swapBuffers()
-
-
-
Constructor Detail
-
GlRenderTarget
public GlRenderTarget()
Constructs a new Open GL render target.- Throws:
OpenGLException
- if the render target could not be created.
-
-
Method Detail
-
hasValidContext
public boolean hasValidContext()
Checks if the current Open GL context is valid.- Returns:
-
hasValidSurface
public boolean hasValidSurface()
Checks if the current Open GL surface is valid.- Returns:
-
initialize
public void initialize()
-
release
public void release()
Releases the Open GL resource used by this render target.
-
createRenderSurface
public void createRenderSurface(java.lang.Object surfaceTexture)
-
swapBuffers
public void swapBuffers()
-
makeCurrent
public void makeCurrent()
-
-