Search in sources :

Example 1 with PingPongBuffer

use of gaiasky.util.gdx.contrib.postprocess.utils.PingPongBuffer in project gaiasky by langurmonkey.

the class PostProcessor method newPingPongBuffer.

/**
 * Creates and returns a managed PingPongBuffer buffer, just create and forget. If rebind() is called on context loss, managed
 * PingPongBuffers will be rebound for you.
 * <p>
 * This is a drop-in replacement for the same-signature PingPongBuffer's constructor.
 */
public static PingPongBuffer newPingPongBuffer(int width, int height, Format frameBufferFormat, boolean hasDepth, boolean hasVelocity, boolean hasNormal, boolean hasReflectionMask, boolean preventFloatBuffer) {
    PingPongBuffer buffer = new PingPongBuffer(width, height, frameBufferFormat, hasDepth, hasVelocity, hasNormal, hasReflectionMask, preventFloatBuffer);
    buffers.add(buffer);
    return buffer;
}
Also used : PingPongBuffer(gaiasky.util.gdx.contrib.postprocess.utils.PingPongBuffer)

Aggregations

PingPongBuffer (gaiasky.util.gdx.contrib.postprocess.utils.PingPongBuffer)1