NASA World Wind

gov.nasa.worldwind.render
Class FBOTexture

java.lang.Object
  extended by gov.nasa.worldwind.render.FramebufferTexture
      extended by gov.nasa.worldwind.render.FBOTexture
All Implemented Interfaces:
WWTexture

public class FBOTexture
extends FramebufferTexture


Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.FramebufferTexture
corners, DEFAULT_TESSELLATION_DENSITY, height, sector, sourceTexture, tessellationDensity, textureCoords, width
 
Constructor Summary
FBOTexture(DrawContext dc, WWTexture imageSource, Sector sector, java.util.List<LatLon> corners)
           
 
Method Summary
 boolean bind(DrawContext dc)
          Makes the texture the current texture for rendering.
protected  void initialize(DrawContext dc)
           
protected  com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)
           
 boolean isTextureCurrent(DrawContext dc)
          Indicates whether the texture is currently available for use without regenerating it from its image source.
 
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
 

Constructor Detail

FBOTexture

public FBOTexture(DrawContext dc,
                  WWTexture imageSource,
                  Sector sector,
                  java.util.List<LatLon> corners)
Method Detail

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.

NASA World Wind