Skip to content

GlSnapshotCapture

final class GlSnapshotCapture
Package: dev.joid.base.opengl.snapshot · Module: base-opengl · Source: GlSnapshotCapture.java
Backends: LWJGL 2 LWJGL 3

Reads the back buffer of an OpenGL context into a snapshot image.

It ships in the dev and demo jars of the backends; the published joid-base-opengl jar does not hold it.

ReturnsSignatureSummary
SnapshotImagecapture(GlRenderBridge bridge, int width, int height) staticReturns the pixels of the back buffer of the default framebuffer, at that size in pixels, top row first.

SnapshotImage capture(GlRenderBridge bridge, int width, int height) static

Returns the pixels of the back buffer of the default framebuffer, at that size in pixels, top row first.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page