|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.glsl.utility.FrameBufferObject
public class FrameBufferObject
Constructor Summary | |
---|---|
FrameBufferObject()
|
Method Summary | |
---|---|
void |
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 Unit where |
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 Attachment which 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 to upTo as current drawBuffers |
int |
estimateSizeInByteForColor()
|
FBOAttachment |
getAttachment(int i)
|
boolean |
isComplete(OpenGLState glState)
|
void |
resizeAttachments(OpenGLState glState)
Only resizes color attachments |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameBufferObject()
Method Detail |
---|
public void attachDepthOnly(OpenGLState glState, FBOAttachment att)
public void attachDepthStencil(OpenGLState glState, FBOAttachment att)
public void attachDrawBuffer(OpenGLState glState, FBOAttachment att, int where)
public void attachStencilOnly(OpenGLState glState, FBOAttachment att)
public void bind(OpenGLState glState)
public void bindAllAttachmentsAsTextures(OpenGLState glState)
public void bindAllAttachmentsAsTextures(OpenGLState glState, int upTo)
public void bindAllAttachmentsAsTextures(OpenGLState glState, int upTo, int offset)
glState
- public void bindAttachmentAsTexture(OpenGLState glState, int which, int where)
where
glState
- which
- No of Attachment that should be boundwhere
- Which Texture Unit to bind topublic void create(OpenGLState glState)
public void delete(OpenGLState glState, boolean javaonly)
public void deleteAttachments(OpenGLState glState, boolean javaonly)
public void drawBuffer(OpenGLState glState, int which)
which as current drawBuffer
- Parameters:
glState
- which
-
public void drawBuffers(OpenGLState glState, int upTo)
public void drawBuffers(OpenGLState glState, int upTo, int offset)
upTo as current drawBuffers
- Parameters:
glState
- upTo
- offset
- - See Also:
drawBuffer(OpenGLState, int)
public int estimateSizeInByteForColor()
public FBOAttachment getAttachment(int i)
public boolean isComplete(OpenGLState glState)
public void resizeAttachments(OpenGLState glState)
glState
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |