GemOpenGLRenderer

Constructors

Link copied to clipboard
constructor(texture: SurfaceTexture, worker: GemOpenGLRenderer.Worker, context: Context)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Worker

Functions

Link copied to clipboard
fun captureScreenshot(width: Int, height: Int, callback: (Bitmap?) -> Unit)

Captures a screenshot asynchronously

Link copied to clipboard
fun captureScreenshotAfterNextFrame(width: Int, height: Int, callback: (Bitmap?) -> Unit)

Captures a screenshot after the next frame is rendered This ensures the screenshot contains the most up-to-date content

Link copied to clipboard
fun captureScreenshotAsync(width: Int, height: Int): Future<Bitmap?>

Captures a screenshot synchronously using Future

Link copied to clipboard
open override fun doFrame(frameTimeNanos: Long)
Link copied to clipboard

Gets the current target frame rate

Link copied to clipboard

Gets the current surface dimensions

Link copied to clipboard
fun onDispose()
Link copied to clipboard
Link copied to clipboard
fun setFrameRate(fps: Int)

Sets the target frame rate for rendering