java.lang.Object
de.grogra.glsl.utility.FrameBufferObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachDepthOnly
(OpenGLState glState, FBOAttachment att) void
attachDepthStencil
(OpenGLState glState, FBOAttachment att) void
attachDrawBuffer
(OpenGLState glState, FBOAttachment att, int where) void
attachStencilOnly
(OpenGLState glState, FBOAttachment att) void
bind
(OpenGLState glState) void
bindAllAttachmentsAsTextures
(OpenGLState glState) void
bindAllAttachmentsAsTextures
(OpenGLState glState, int upTo) void
bindAllAttachmentsAsTextures
(OpenGLState glState, int upTo, int offset) Binds all 4 DrawBuffer-Attachments as Textures to Units 0 to 3 only works if at least 4 Textures are attached.void
bindAttachmentAsTexture
(OpenGLState glState, int which, int where) Binds an Attachments as Texture to Unitwhere
void
create
(OpenGLState glState) void
delete
(OpenGLState glState, boolean javaonly) void
deleteAttachments
(OpenGLState glState, boolean javaonly) void
drawBuffer
(OpenGLState glState, int which) Sets this FBO as active and sets Attachmentwhich as current drawBuffer
void
drawBuffers
(OpenGLState glState, int upTo) void
drawBuffers
(OpenGLState glState, int upTo, int offset) Sets this FBO as active and sets Attachments 0 up toupTo as current drawBuffers
int
getAttachment
(int i) boolean
isComplete
(OpenGLState glState) void
resizeAttachments
(OpenGLState glState) Only resizes color attachmentstoString()
-
Constructor Details
-
FrameBufferObject
public FrameBufferObject()
-
-
Method Details
-
getAttachment
-
bind
-
delete
-
create
-
attachDrawBuffer
-
attachDepthOnly
-
attachStencilOnly
-
attachDepthStencil
-
drawBuffer
Sets this FBO as active and sets Attachmentwhich as current drawBuffer
- Parameters:
glState
-which
-
-
drawBuffers
Sets this FBO as active and sets Attachments 0 up toupTo as current drawBuffers
- Parameters:
glState
-upTo
-offset
-- See Also:
-
drawBuffers
-
bindAttachmentAsTexture
Binds an Attachments as Texture to Unitwhere
- Parameters:
glState
-which
- No of Attachment that should be boundwhere
- Which Texture Unit to bind to
-
bindAllAttachmentsAsTextures
Binds all 4 DrawBuffer-Attachments as Textures to Units 0 to 3 only works if at least 4 Textures are attached.- Parameters:
glState
-
-
bindAllAttachmentsAsTextures
-
bindAllAttachmentsAsTextures
-
resizeAttachments
Only resizes color attachments- Parameters:
glState
-
-
deleteAttachments
-
isComplete
-
toString
-
estimateSizeInByteForColor
public int estimateSizeInByteForColor()
-