Package icyllis.arc3d.core
Class DisplayListRecorder
java.lang.Object
icyllis.arc3d.core.DisplayListRecorder
- All Implemented Interfaces:
AutoCloseable
This class is intended to be used as:
- Get an
SurfaceCharacterizationrepresenting the intended gpu-backed destinationSurface - Create a
DisplayListRecorder - Get the canvas and render into it
- Snap off and hold on to an
DisplayList - Once your app actually needs the pixels, call Surface::draw(DeferredDisplayList*)
This class never accesses the GPU but performs all the cpu work it can. It is thread-safe (i.e., one can break a scene into tiles and perform their cpu-side work in parallel ahead of time).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DisplayListRecorder
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-