com.threerings.opengl.util
Class GlContextWrapper

java.lang.Object
  extended by com.threerings.opengl.util.GlContextWrapper
All Implemented Interfaces:
EditorContext, AlContext, GlContext

public abstract class GlContextWrapper
extends Object
implements GlContext

Wraps another GlContext, allowing subclasses to override methods selectively.


Constructor Summary
GlContextWrapper(GlContext wrapped)
          Creates a new wrapper to wrap the specified context.
 
Method Summary
 GlApp getApp()
          Returns a reference to the application object.
 CameraHandler getCameraHandler()
          Returns a reference to the camera handler.
 com.threerings.openal.ClipProvider getClipProvider()
          Returns a reference to the clip provider.
 com.threerings.media.image.ColorPository getColorPository()
          Returns a reference to the color pository.
 Compositor getCompositor()
          Returns a reference to the compositor.
 ConfigManager getConfigManager()
          Returns a reference to the configuration manager.
 ImageCache getImageCache()
          Returns a reference to the image cache.
 com.threerings.util.MessageManager getMessageManager()
          Returns a reference to the message manager.
 Renderer getRenderer()
          Returns a reference to the renderer.
 com.threerings.resource.ResourceManager getResourceManager()
          Returns a reference to the resource manager.
 DynamicScope getScope()
          Returns a reference to the scope.
 ShaderCache getShaderCache()
          Returns a reference to the shader cache.
 com.threerings.openal.SoundManager getSoundManager()
          Returns a reference to the sound manager.
 void makeCurrent()
          Makes the OpenGL context current.
 void setCameraHandler(CameraHandler camhand)
          Sets the camera handler reference.
 void setRenderer(Renderer renderer)
          Sets the renderer reference.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlContextWrapper

public GlContextWrapper(GlContext wrapped)
Creates a new wrapper to wrap the specified context.

Method Detail

getApp

public GlApp getApp()
Description copied from interface: GlContext
Returns a reference to the application object.

Specified by:
getApp in interface GlContext

getScope

public DynamicScope getScope()
Description copied from interface: GlContext
Returns a reference to the scope.

Specified by:
getScope in interface AlContext
Specified by:
getScope in interface GlContext

getConfigManager

public ConfigManager getConfigManager()
Description copied from interface: GlContext
Returns a reference to the configuration manager.

Specified by:
getConfigManager in interface EditorContext
Specified by:
getConfigManager in interface AlContext
Specified by:
getConfigManager in interface GlContext

getSoundManager

public com.threerings.openal.SoundManager getSoundManager()
Description copied from interface: AlContext
Returns a reference to the sound manager.

Specified by:
getSoundManager in interface AlContext

getClipProvider

public com.threerings.openal.ClipProvider getClipProvider()
Description copied from interface: AlContext
Returns a reference to the clip provider.

Specified by:
getClipProvider in interface AlContext

makeCurrent

public void makeCurrent()
Description copied from interface: GlContext
Makes the OpenGL context current.

Specified by:
makeCurrent in interface GlContext

setRenderer

public void setRenderer(Renderer renderer)
Description copied from interface: GlContext
Sets the renderer reference.

Specified by:
setRenderer in interface GlContext

getRenderer

public Renderer getRenderer()
Description copied from interface: GlContext
Returns a reference to the renderer.

Specified by:
getRenderer in interface GlContext

getCompositor

public Compositor getCompositor()
Description copied from interface: GlContext
Returns a reference to the compositor.

Specified by:
getCompositor in interface GlContext

setCameraHandler

public void setCameraHandler(CameraHandler camhand)
Description copied from interface: GlContext
Sets the camera handler reference.

Specified by:
setCameraHandler in interface GlContext

getCameraHandler

public CameraHandler getCameraHandler()
Description copied from interface: GlContext
Returns a reference to the camera handler.

Specified by:
getCameraHandler in interface GlContext

getResourceManager

public com.threerings.resource.ResourceManager getResourceManager()
Description copied from interface: GlContext
Returns a reference to the resource manager.

Specified by:
getResourceManager in interface EditorContext
Specified by:
getResourceManager in interface AlContext
Specified by:
getResourceManager in interface GlContext

getMessageManager

public com.threerings.util.MessageManager getMessageManager()
Description copied from interface: GlContext
Returns a reference to the message manager.

Specified by:
getMessageManager in interface EditorContext
Specified by:
getMessageManager in interface GlContext

getColorPository

public com.threerings.media.image.ColorPository getColorPository()
Description copied from interface: GlContext
Returns a reference to the color pository.

Specified by:
getColorPository in interface EditorContext
Specified by:
getColorPository in interface GlContext

getImageCache

public ImageCache getImageCache()
Description copied from interface: GlContext
Returns a reference to the image cache.

Specified by:
getImageCache in interface GlContext

getShaderCache

public ShaderCache getShaderCache()
Description copied from interface: GlContext
Returns a reference to the shader cache.

Specified by:
getShaderCache in interface GlContext


Copyright © 2011. All Rights Reserved.