Class FrameBufferImpl
java.lang.Object
cz.fidentis.analyst.glsl.buffers.impl.AbstractBuffer
cz.fidentis.analyst.glsl.buffers.impl.FrameBufferImpl
- All Implemented Interfaces:
FrameBuffer
,GlslBuffer
Frame buffer used for the
GL_FRAMEBUFFER
OpenGL target.-
Constructor Summary
ConstructorsConstructorDescriptionFrameBufferImpl
(BufferDef bufferDef, com.jogamp.opengl.GLContext glContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocate
(ImageBuffer textureBuffer) Allocates and binds the buffer (links it to theGL_FRAMEBUFFER
OpenGL target).void
bind()
Binds this buffer to the OpenGL context (binding points of GPU rendering pipeline), so it become visible for shaders.Methods inherited from class cz.fidentis.analyst.glsl.buffers.impl.AbstractBuffer
getBindingIndex, getBufferName, getGlName, getGlTarget, glContext, setGlName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.glsl.buffers.GlslBuffer
getBindingIndex, getBufferName, getGlName, getGlTarget, glContext
-
Constructor Details
-
FrameBufferImpl
Constructor.- Parameters:
bufferDef
- Buffer nameglContext
- OpenGL context
-
-
Method Details
-
allocate
Description copied from interface:FrameBuffer
Allocates and binds the buffer (links it to theGL_FRAMEBUFFER
OpenGL target).- Specified by:
allocate
in interfaceFrameBuffer
- Parameters:
textureBuffer
- Existing texture buffer whose image is to be attached
-
bind
public void bind()Description copied from interface:GlslBuffer
Binds this buffer to the OpenGL context (binding points of GPU rendering pipeline), so it become visible for shaders. Buffers can be bound to their binding points even unallocated. Do not use this method directly. As every buffer should be included in aGlslBufferGroup
, useGlslBufferGroup.bindBuffer(cz.fidentis.analyst.glsl.buffers.BufferDef)
to bind buffers individually orGlslBufferGroup.bindSsboBuffers()
to allocate all SSBO buffers at once.- Specified by:
bind
in interfaceGlslBuffer
-