Package gov.nasa.worldwind.render
Class Framebuffer
- java.lang.Object
-
- gov.nasa.worldwind.render.Framebuffer
-
- All Implemented Interfaces:
RenderResource
public class Framebuffer extends java.lang.Object implements RenderResource
-
-
Constructor Summary
Constructors Constructor Description Framebuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
attachTexture(DrawContext dc, Texture texture, int attachment)
boolean
bindFramebuffer(DrawContext dc)
Texture
getAttachedTexture(int attachment)
boolean
isFramebufferComplete(DrawContext dc)
void
release(DrawContext dc)
Frees any resources associated with this instance.
-
-
-
Method Detail
-
release
public void release(DrawContext dc)
Description copied from interface:RenderResource
Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.- Specified by:
release
in interfaceRenderResource
- Parameters:
dc
- the current draw context
-
bindFramebuffer
public boolean bindFramebuffer(DrawContext dc)
-
attachTexture
public boolean attachTexture(DrawContext dc, Texture texture, int attachment)
-
getAttachedTexture
public Texture getAttachedTexture(int attachment)
-
isFramebufferComplete
public boolean isFramebufferComplete(DrawContext dc)
-
-