oad.java.net/media/jogl/doc/userguide/">"JOGL User's Guide". All that's typically necessary is to invoke the following methods of the indicated Swing classes: {@link javax.swing.ToolTipManager#setLightWeightPopupEnabled(boolean)}, {@link javax.swing.JPopupMenu#setLightWeightPopupEnabled(boolean)} and {@link javax.swing.JPopupMenu#setLightWeightPopupEnabled(boolean)}. These methods should be invoked within a
static
block within an application's main class.
This class is capable of supporting stereo devices. To cause a stereo device to be selected and used, specify the Java VM property "gov.nasa.worldwind.stereo.mode=device" prior to creating an instance of this class. A stereo capable {@link SceneController} such as {@link gov.nasa.worldwind.StereoSceneController} must also be specified inthe World Wind {@link Configuration}. The default configuration specifies a stereo-capable controller. To prevent stereo from being used by subsequently opened {@code WorldWindowGLCanvas}es, set the property to a an empty string, "".
Under certain conditions, JOGL replaces the
GLContext
associated with instances of this class. This then necessitates that all resources such as textures that have been stored on the graphic devices must be regenerated for the new context. World Wind does this automatically by clearing the associated {@link GpuResourceCache}. Objects subsequently rendered automatically re-create those resources. If an application creates its own graphics resources, including textures, vertex buffer objects and display lists, it must store them in the
GpuResourceCache
associated with the current {@link gov.nasa.worldwind.render.DrawContext} so that they are automatically cleared, andbe prepared to re-create them if they do not exist in the
DrawContext
's current
GpuResourceCache
when needed. Examples of doing this can be found by searching for usages of the method {@link GpuResourceCache#get(Object)} and {@link GpuResourceCache#getTexture(Object)}.
@author Tom Gaskins
@version $Id: WorldWindowGLCanvas.java 1399 2013-06-03 23:26:22Z tgaskins $