NASA World Wind

gov.nasa.worldwind.util.webview
Class WebViewTexture

java.lang.Object
  extended by gov.nasa.worldwind.render.BasicWWTexture
      extended by gov.nasa.worldwind.util.webview.WebViewTexture
All Implemented Interfaces:
WWTexture
Direct Known Subclasses:
MacWebView.MacWebViewTexture, WindowsWebView.WindowsWebViewTexture

public class WebViewTexture
extends BasicWWTexture


Field Summary
protected  boolean flipVertically
           
protected  Dimension frameSize
           
 
Fields inherited from class gov.nasa.worldwind.render.BasicWWTexture
height, texCoords, textureInitializationFailed, width
 
Constructor Summary
WebViewTexture(Dimension frameSize, boolean useMipMaps, boolean flipVertically)
           
 
Method Summary
 boolean bind(DrawContext dc)
          Makes this texture the current texture for rendering.
protected  Texture initializeTexture(DrawContext dc, Object imageSource)
           
protected  void updateIfNeeded(DrawContext dc)
           
 
Methods inherited from class gov.nasa.worldwind.render.BasicWWTexture
applyInternalTransform, getHeight, getImageSource, getTexCoords, getTexture, getTextureFromCache, getWidth, initialize, isTextureCurrent, isTextureInitializationFailed, isUseAnisotropy, isUseMipMaps, setUseAnisotropy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flipVertically

protected boolean flipVertically

frameSize

protected Dimension frameSize
Constructor Detail

WebViewTexture

public WebViewTexture(Dimension frameSize,
                      boolean useMipMaps,
                      boolean flipVertically)
Method Detail

bind

public boolean bind(DrawContext dc)
Description copied from interface: WWTexture
Makes this texture the current texture for rendering.

If the implementing instance's internal texture has not been created from its image source, the implementing class determines when the texture is retrieved and available.

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 BasicWWTexture
Parameters:
dc - the current draw context.
Returns:
true if the texture was bound, otherwise false.

initializeTexture

protected Texture initializeTexture(DrawContext dc,
                                    Object imageSource)
Overrides:
initializeTexture in class BasicWWTexture

updateIfNeeded

protected void updateIfNeeded(DrawContext dc)

NASA World Wind