java.lang.Object
de.grogra.glsl.utility.FrameBufferObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachDepthOnly(OpenGLState glState, FBOAttachment att) voidattachDepthStencil(OpenGLState glState, FBOAttachment att) voidattachDrawBuffer(OpenGLState glState, FBOAttachment att, int where) voidattachStencilOnly(OpenGLState glState, FBOAttachment att) voidbind(OpenGLState glState) voidbindAllAttachmentsAsTextures(OpenGLState glState) voidbindAllAttachmentsAsTextures(OpenGLState glState, int upTo) voidbindAllAttachmentsAsTextures(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.voidbindAttachmentAsTexture(OpenGLState glState, int which, int where) Binds an Attachments as Texture to Unitwherevoidcreate(OpenGLState glState) voiddelete(OpenGLState glState, boolean javaonly) voiddeleteAttachments(OpenGLState glState, boolean javaonly) voiddrawBuffer(OpenGLState glState, int which) Sets this FBO as active and sets Attachmentwhich as current drawBuffervoiddrawBuffers(OpenGLState glState, int upTo) voiddrawBuffers(OpenGLState glState, int upTo, int offset) Sets this FBO as active and sets Attachments 0 up toupTo as current drawBuffersintgetAttachment(int i) booleanisComplete(OpenGLState glState) voidresizeAttachments(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()
-