|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.Framebuffer
public class Framebuffer
An OpenGL frame buffer object.
| Constructor Summary | |
|---|---|
Framebuffer(Renderer renderer)
Creates a frame buffer object for the specified renderer. |
|
| Method Summary | |
|---|---|
int |
checkStatus()
Checks the status of the frame buffer. |
void |
delete()
Deletes this frame buffer, rendering it unusable. |
Object |
getColorAttachment()
Returns a reference to the color target of this frame buffer (either a Texture or
a Renderbuffer, or null). |
Object |
getDepthAttachment()
Returns a reference to the depth target of this frame buffer (either a Texture or
a Renderbuffer, or null). |
int |
getId()
Returns this frame buffer's OpenGL identifier. |
Object |
getStencilAttachment()
Returns a reference to the stencil target of this frame buffer (either a Texture or
a Renderbuffer, or null). |
boolean |
isComplete()
Checks whether the frame buffer is "complete." |
void |
setColorAttachment(Renderbuffer renderbuffer)
Attaches a render buffer to the color target of this frame buffer. |
void |
setColorAttachment(Texture texture)
Attaches a texture to the color target of this frame buffer. |
void |
setColorAttachment(Texture texture,
int level,
int param)
Attaches a texture to the color target of this frame buffer. |
void |
setDepthAttachment(Renderbuffer renderbuffer)
Attaches a render buffer to the depth target of this frame buffer. |
void |
setDepthAttachment(Texture texture)
Attaches a texture to the depth target of this frame buffer. |
void |
setDepthAttachment(Texture texture,
int level,
int param)
Attaches a texture to the depth target of this frame buffer. |
void |
setStencilAttachment(Renderbuffer renderbuffer)
Attaches a render buffer to the stencil target of this frame buffer. |
void |
setStencilAttachment(Texture texture)
Attaches a texture to the stencil target of this frame buffer. |
void |
setStencilAttachment(Texture texture,
int level,
int param)
Attaches a texture to the stencil target of this frame buffer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Framebuffer(Renderer renderer)
| Method Detail |
|---|
public final int getId()
public void setColorAttachment(Texture texture)
public void setColorAttachment(Texture texture,
int level,
int param)
level - the mipmap level.param - for depth textures, the z offset; for cube map textures, the face index.public void setColorAttachment(Renderbuffer renderbuffer)
public Object getColorAttachment()
Texture or
a Renderbuffer, or null).
public void setDepthAttachment(Texture texture)
public void setDepthAttachment(Texture texture,
int level,
int param)
level - the mipmap level.param - for depth textures, the z offset; for cube map textures, the face index.public void setDepthAttachment(Renderbuffer renderbuffer)
public Object getDepthAttachment()
Texture or
a Renderbuffer, or null).
public void setStencilAttachment(Texture texture)
public void setStencilAttachment(Texture texture,
int level,
int param)
level - the mipmap level.param - for depth textures, the z offset; for cube map textures, the face index.public void setStencilAttachment(Renderbuffer renderbuffer)
public Object getStencilAttachment()
Texture or
a Renderbuffer, or null).
public boolean isComplete()
public int checkStatus()
public void delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||