Package com.brightcove.player.video360
Class GlRenderTarget
java.lang.Object
com.brightcove.player.video360.GlRenderTarget
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createRenderSurface
(Object surfaceTexture) boolean
Checks if the current Open GL context is valid.boolean
Checks if the current Open GL surface is valid.void
void
void
release()
Releases the Open GL resource used by this render target.void
-
Constructor Details
-
GlRenderTarget
public GlRenderTarget()Constructs a new Open GL render target.- Throws:
OpenGLException
- if the render target could not be created.
-
-
Method Details
-
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
-
swapBuffers
public void swapBuffers() -
makeCurrent
public void makeCurrent()
-