|
|||||||||
| 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.
| Field Summary | |
|---|---|
protected Object |
_colorAttachment
The texture or render buffer attached to the color target. |
protected int |
_colorLevel
The mipmap level and parameter of the texture attached to the color target. |
protected int |
_colorParam
The mipmap level and parameter of the texture attached to the color target. |
protected Object |
_depthAttachment
The texture or render buffer attached to the depth target. |
protected int |
_depthLevel
The mipmap level and parameter of the texture attached to the depth target. |
protected int |
_depthParam
The mipmap level and parameter of the texture attached to the depth target. |
protected int |
_id
The OpenGL identifier for the frame buffer. |
protected Renderer |
_renderer
The renderer responsible for this frame buffer. |
protected Object |
_stencilAttachment
The texture or render buffer attached to the stencil target. |
protected int |
_stencilLevel
The mipmap level and parameter of the texture attached to the stencil target. |
protected int |
_stencilParam
The mipmap level and parameter of the texture attached to the stencil target. |
| 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. |
protected void |
finalize()
|
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." |
protected void |
setAttachment(int attachment,
Renderbuffer renderbuffer)
Attaches a render buffer to this frame buffer at the specified attachment point. |
protected void |
setAttachment(int attachment,
Texture texture,
int level,
int param)
Attaches a texture to this frame buffer at the specified attachment point. |
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 |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Renderer _renderer
protected int _id
protected Object _colorAttachment
protected int _colorLevel
protected int _colorParam
protected Object _depthAttachment
protected int _depthLevel
protected int _depthParam
protected Object _stencilAttachment
protected int _stencilLevel
protected int _stencilParam
| 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()
protected void setAttachment(int attachment,
Texture texture,
int level,
int param)
level - the mipmap level.param - depending on the texture type, either the 3D texture z offset or the
cube map face index.
protected void setAttachment(int attachment,
Renderbuffer renderbuffer)
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||