Package gov.nasa.worldwindx.examples
Class ConfiguringGLRuntimeCapabilities.MyGLAutoDrawable
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.WorldWindowImpl
-
- gov.nasa.worldwind.WorldWindowGLAutoDrawable
-
- gov.nasa.worldwindx.examples.ConfiguringGLRuntimeCapabilities.MyGLAutoDrawable
-
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener,AVList,MessageListener,WorldWindow,WorldWindowGLDrawable,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
- Enclosing class:
- ConfiguringGLRuntimeCapabilities
public static class ConfiguringGLRuntimeCapabilities.MyGLAutoDrawable extends WorldWindowGLAutoDrawable
Subclass ofWorldWindowGLAutoDrawablewhich overrides the methodWorldWindowGLAutoDrawable.init(com.jogamp.opengl.GLAutoDrawable)to configure the OpenGL features used by the WorldWind SDK.
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.WorldWindowGLAutoDrawable
DEFAULT_VIEW_STOP_TIME, enableGpuCacheReinitialization, lastViewID, viewRefreshTask, viewStopTime
-
Fields inherited from class gov.nasa.worldwind.WorldWindowImpl
gpuResourceCache
-
-
Constructor Summary
Constructors Constructor Description MyGLAutoDrawable()Constructs a new MyGLAutoDrawable, but otherwise does nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureGLRuntimeCaps()Configures the OpenGL runtime features used by the WorldWind SDK.voidinit(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)Overridden to configure the OpenGL features used by the WorldWind SDK.protected booleanisEnableFramebufferObjects()Returns true if the WorldWind SDK should enable use of OpenGL framebuffer objects (if available), and false otherwise.-
Methods inherited from class gov.nasa.worldwind.WorldWindowGLAutoDrawable
checkForViewChange, display, dispose, doDisplay, doShutdown, doSwapBuffers, endInitialization, getContext, getRequiredOglExtensions, getRequiredOglFunctions, getViewStopTime, initDrawable, initGpuResourceCache, initializeCreditsController, isEnableGpuCacheReinitialization, isGLContextCompatible, onMessage, propertyChange, redraw, redrawNow, reinitialize, reshape, scheduleViewStopTask, setEnableGpuCacheReinitialization, setViewStopTime, shutdown
-
Methods inherited from class gov.nasa.worldwind.WorldWindowImpl
addPositionListener, addRenderingExceptionListener, addRenderingListener, addSelectListener, callPositionListeners, callRenderingExceptionListeners, callRenderingListeners, callSelectListeners, configureIdentityPixelScale, createGpuResourceCache, getCurrentBoxSelection, getCurrentPosition, getCurrentSelection, getGpuResourceCache, getInputHandler, getModel, getObjectsAtCurrentPosition, getObjectsInSelectionBox, getPerFrameStatistics, getSceneController, getView, removePositionListener, removeRenderingExceptionListener, removeRenderingListener, removeSelectListener, setGpuResourceCache, setInputHandler, setModel, setModelAndView, setPerFrameStatisticsKeys, setSceneController, setView
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from interface gov.nasa.worldwind.WorldWindow
addPositionListener, addRenderingExceptionListener, addRenderingListener, addSelectListener, getCurrentPosition, getGpuResourceCache, getInputHandler, getModel, getObjectsAtCurrentPosition, getObjectsInSelectionBox, getPerFrameStatistics, getSceneController, getView, removePositionListener, removeRenderingExceptionListener, removeRenderingListener, removeSelectListener, setInputHandler, setModel, setModelAndView, setPerFrameStatisticsKeys, setSceneController, setView
-
-
-
-
Method Detail
-
init
public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
Overridden to configure the OpenGL features used by the WorldWind SDK. SeeGLEventListener.init(GLAutoDrawable).- Specified by:
initin interfacecom.jogamp.opengl.GLEventListener- Overrides:
initin classWorldWindowGLAutoDrawable- Parameters:
glAutoDrawable- the drawable
-
configureGLRuntimeCaps
protected void configureGLRuntimeCaps()
Configures the OpenGL runtime features used by the WorldWind SDK.
-
isEnableFramebufferObjects
protected boolean isEnableFramebufferObjects()
Returns true if the WorldWind SDK should enable use of OpenGL framebuffer objects (if available), and false otherwise.- Returns:
- true ot enable use of GL framebuffer objects; false otherwise.
-
-