gov.nasa.worldwind.render
Class FBOTexture
java.lang.Object
gov.nasa.worldwind.render.FramebufferTexture
gov.nasa.worldwind.render.FBOTexture
- All Implemented Interfaces:
- WWTexture
public class FBOTexture
- extends FramebufferTexture
| Methods inherited from class gov.nasa.worldwind.render.FramebufferTexture |
applyInternalTransform, computeGeographicToCartesianTransform, drawQuad, drawQuad, generateTexture, getCorners, getHeight, getImageSource, getSector, getTessellationDensity, getTexCoords, getWidth, isTextureInitializationFailed, transformToQuadCoordinates |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FBOTexture
public FBOTexture(DrawContext dc,
WWTexture imageSource,
Sector sector,
java.util.List<LatLon> corners)
bind
public boolean bind(DrawContext dc)
- Description copied from interface:
WWTexture
- Makes the texture the current texture for rendering. If the texture has not been created from its image source,
creates the texture from its source. If a texture cannot be created from its image source it cannot be
bound. This method returns an indication of whether the texture was bound or was not bound due to a failure
during creation.
- Specified by:
bind in interface WWTexture- Overrides:
bind in class FramebufferTexture
- Parameters:
dc - the current draw context.
- Returns:
- true if the texture was bound, otherwise false.
initialize
protected void initialize(DrawContext dc)
- Overrides:
initialize in class FramebufferTexture
initializeTexture
protected com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)
- Overrides:
initializeTexture in class FramebufferTexture
isTextureCurrent
public boolean isTextureCurrent(DrawContext dc)
- Description copied from interface:
WWTexture
- Indicates whether the texture is currently available for use without regenerating it from its image source.
- Specified by:
isTextureCurrent in interface WWTexture- Overrides:
isTextureCurrent in class FramebufferTexture
- Parameters:
dc - the current draw context
- Returns:
- true if the texture is available and consistent with its image source, otherwise false.