Package gaiasky.util.gdx.contrib.utils
Class GaiaSkyFrameBuffer
java.lang.Object
com.badlogic.gdx.graphics.glutils.GLFrameBuffer<com.badlogic.gdx.graphics.Texture>
com.badlogic.gdx.graphics.glutils.FrameBuffer
gaiasky.util.gdx.contrib.utils.GaiaSkyFrameBuffer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public class GaiaSkyFrameBuffer
extends com.badlogic.gdx.graphics.glutils.FrameBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
com.badlogic.gdx.graphics.glutils.GLFrameBuffer.FloatFrameBufferBuilder, com.badlogic.gdx.graphics.glutils.GLFrameBuffer.FrameBufferBuilder, com.badlogic.gdx.graphics.glutils.GLFrameBuffer.FrameBufferCubemapBuilder, com.badlogic.gdx.graphics.glutils.GLFrameBuffer.FrameBufferRenderBufferAttachmentSpec, com.badlogic.gdx.graphics.glutils.GLFrameBuffer.FrameBufferTextureAttachmentSpec, com.badlogic.gdx.graphics.glutils.GLFrameBuffer.GLFrameBufferBuilder<U extends com.badlogic.gdx.graphics.glutils.GLFrameBuffer<? extends com.badlogic.gdx.graphics.GLTexture>>
-
Field Summary
Fields inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
bufferBuilder, buffers, defaultFramebufferHandle, defaultFramebufferHandleInitialized, depthbufferHandle, depthStencilPackedBufferHandle, framebufferHandle, GL_DEPTH24_STENCIL8_OES, hasDepthStencilPackedBuffer, isMRT, stencilbufferHandle, textureAttachments
-
Constructor Summary
ConstructorDescriptionGaiaSkyFrameBuffer
(com.badlogic.gdx.graphics.glutils.GLFrameBuffer.GLFrameBufferBuilder<? extends com.badlogic.gdx.graphics.glutils.GLFrameBuffer<com.badlogic.gdx.graphics.Texture>> bufferBuilder, int... indices) Creates a buffer. -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.Texture
com.badlogic.gdx.graphics.Texture
com.badlogic.gdx.graphics.Texture
com.badlogic.gdx.graphics.Texture
com.badlogic.gdx.graphics.Texture
getTextureAttachment
(int index) com.badlogic.gdx.graphics.Texture
Methods inherited from class com.badlogic.gdx.graphics.glutils.FrameBuffer
attachFrameBufferColorTexture, createTexture, disposeColorTexture, unbind
Methods inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
begin, bind, build, clearAllFrameBuffers, dispose, end, end, getDepthBufferHandle, getDepthStencilPackedBuffer, getFramebufferHandle, getHeight, getManagedStatus, getManagedStatus, getStencilBufferHandle, getTextureAttachments, getWidth, invalidateAllFrameBuffers, setFrameBufferViewport
-
Constructor Details
-
GaiaSkyFrameBuffer
public GaiaSkyFrameBuffer(com.badlogic.gdx.graphics.glutils.GLFrameBuffer.GLFrameBufferBuilder<? extends com.badlogic.gdx.graphics.glutils.GLFrameBuffer<com.badlogic.gdx.graphics.Texture>> bufferBuilder, int... indices) Creates a buffer. Contains the builder and the indices for color, depth, velocity, normal and reflection buffers. If any of the indices is negative, the render target does not exist in this buffer.- Parameters:
bufferBuilder
- The builder.indices
- The indices for color, depth, velocity, normal and reflection buffers.
-
-
Method Details
-
getColorBufferTexture
public com.badlogic.gdx.graphics.Texture getColorBufferTexture()- Overrides:
getColorBufferTexture
in classcom.badlogic.gdx.graphics.glutils.GLFrameBuffer<com.badlogic.gdx.graphics.Texture>
-
getDepthBufferTexture
public com.badlogic.gdx.graphics.Texture getDepthBufferTexture() -
getVelocityBufferTexture
public com.badlogic.gdx.graphics.Texture getVelocityBufferTexture() -
getNormalBufferTexture
public com.badlogic.gdx.graphics.Texture getNormalBufferTexture() -
getReflectionMaskBufferTexture
public com.badlogic.gdx.graphics.Texture getReflectionMaskBufferTexture() -
getTextureAttachment
public com.badlogic.gdx.graphics.Texture getTextureAttachment(int index)
-