gov.nasa.worldwind.util.webview
Class WebViewTexture
java.lang.Object
gov.nasa.worldwind.render.BasicWWTexture
gov.nasa.worldwind.util.webview.WebViewTexture
- All Implemented Interfaces:
- WWTexture
- Direct Known Subclasses:
- MacWebView.MacWebViewTexture, WindowsWebView.WindowsWebViewTexture
public class WebViewTexture
- extends BasicWWTexture
| 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 |
flipVertically
protected boolean flipVertically
frameSize
protected Dimension frameSize
WebViewTexture
public WebViewTexture(Dimension frameSize,
boolean useMipMaps,
boolean flipVertically)
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)