jjdh API

jjdh.opengl.core
Class FramebufferObject

java.lang.Object
  extended by jjdh.opengl.core.FramebufferObject

public class FramebufferObject
extends Object


Field Summary
private  javax.media.opengl.GL gl
           
private  int[] id
           
private  int[] previousId
           
 
Constructor Summary
FramebufferObject(javax.media.opengl.GL gl)
           
 
Method Summary
 void attachRenderBuffer(int attachmentType, int bufferId)
           
 void attachTexture(int attachmentType, com.sun.opengl.util.texture.Texture texture)
           
 void attachTexture(int attachmentType, com.sun.opengl.util.texture.Texture texture, int mipMapLevel, int zLevel)
           
 void bind()
           
 void bindChecked()
           
 com.sun.opengl.util.texture.Texture createAndAttach2DTexture(int attachmentType, int pixelFormat, int width, int height)
           
 void deleteFBO()
           
private  void generateId()
           
 int getKindOfAttachment(int attachmentType)
           
 boolean isComplete()
           
 void unattach(int attachmentType)
           
 void unbind()
           
 void unbindRestore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int[] id

previousId

private int[] previousId

gl

private javax.media.opengl.GL gl
Constructor Detail

FramebufferObject

public FramebufferObject(javax.media.opengl.GL gl)
Method Detail

unbindRestore

public void unbindRestore()

bindChecked

public void bindChecked()

generateId

private void generateId()

deleteFBO

public void deleteFBO()

bind

public void bind()

unbind

public void unbind()

attachTexture

public void attachTexture(int attachmentType,
                          com.sun.opengl.util.texture.Texture texture,
                          int mipMapLevel,
                          int zLevel)

attachTexture

public void attachTexture(int attachmentType,
                          com.sun.opengl.util.texture.Texture texture)

createAndAttach2DTexture

public com.sun.opengl.util.texture.Texture createAndAttach2DTexture(int attachmentType,
                                                                    int pixelFormat,
                                                                    int width,
                                                                    int height)

attachRenderBuffer

public void attachRenderBuffer(int attachmentType,
                               int bufferId)

unattach

public void unattach(int attachmentType)

getKindOfAttachment

public int getKindOfAttachment(int attachmentType)

isComplete

public boolean isComplete()

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.