Module gl1

Class FrameBufferObject

java.lang.Object
de.grogra.glsl.utility.FrameBufferObject

public class FrameBufferObject extends Object
  • Constructor Details

    • FrameBufferObject

      public FrameBufferObject()
  • Method Details

    • getAttachment

      public FBOAttachment getAttachment(int i)
    • bind

      public void bind(OpenGLState glState)
    • delete

      public void delete(OpenGLState glState, boolean javaonly)
    • create

      public void create(OpenGLState glState)
    • attachDrawBuffer

      public void attachDrawBuffer(OpenGLState glState, FBOAttachment att, int where)
    • attachDepthOnly

      public void attachDepthOnly(OpenGLState glState, FBOAttachment att)
    • attachStencilOnly

      public void attachStencilOnly(OpenGLState glState, FBOAttachment att)
    • attachDepthStencil

      public void attachDepthStencil(OpenGLState glState, FBOAttachment att)
    • drawBuffer

      public void drawBuffer(OpenGLState glState, int which)
      Sets this FBO as active and sets Attachment which as current drawBuffer
      Parameters:
      glState -
      which -
    • drawBuffers

      public void drawBuffers(OpenGLState glState, int upTo, int offset)
      Sets this FBO as active and sets Attachments 0 up to upTo as current drawBuffers
      Parameters:
      glState -
      upTo -
      offset -
      See Also:
    • drawBuffers

      public void drawBuffers(OpenGLState glState, int upTo)
    • bindAttachmentAsTexture

      public void bindAttachmentAsTexture(OpenGLState glState, int which, int where)
      Binds an Attachments as Texture to Unit where
      Parameters:
      glState -
      which - No of Attachment that should be bound
      where - Which Texture Unit to bind to
    • bindAllAttachmentsAsTextures

      public 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.
      Parameters:
      glState -
    • bindAllAttachmentsAsTextures

      public void bindAllAttachmentsAsTextures(OpenGLState glState, int upTo)
    • bindAllAttachmentsAsTextures

      public void bindAllAttachmentsAsTextures(OpenGLState glState)
    • resizeAttachments

      public void resizeAttachments(OpenGLState glState)
      Only resizes color attachments
      Parameters:
      glState -
    • deleteAttachments

      public void deleteAttachments(OpenGLState glState, boolean javaonly)
    • isComplete

      public boolean isComplete(OpenGLState glState)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • estimateSizeInByteForColor

      public int estimateSizeInByteForColor()