com.threerings.opengl.util
Interface GlContext

All Superinterfaces:
AlContext, EditorContext
All Known Subinterfaces:
TudeyContext
All Known Implementing Classes:
GlApp, GlCanvasApp, GlCanvasTool, GlContextWrapper, GlDisplayApp, InterfaceTester, ModelTool, ModelViewer, ParticleEditor, SceneEditor, TudeyTool

public interface GlContext
extends AlContext, EditorContext

Provides access to the various components of the OpenGL rendering system. Not to be confused with LWJGL's GLContext.


Method Summary
 GlApp getApp()
          Returns a reference to the application object.
 CameraHandler getCameraHandler()
          Returns a reference to the camera handler.
 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.
 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 interface com.threerings.openal.util.AlContext
getClipProvider, getSoundManager
 

Method Detail

getApp

GlApp getApp()
Returns a reference to the application object.


getScope

DynamicScope getScope()
Returns a reference to the scope.

Specified by:
getScope in interface AlContext

makeCurrent

void makeCurrent()
Makes the OpenGL context current.


setRenderer

void setRenderer(Renderer renderer)
Sets the renderer reference.


getRenderer

Renderer getRenderer()
Returns a reference to the renderer.


getCompositor

Compositor getCompositor()
Returns a reference to the compositor.


setCameraHandler

void setCameraHandler(CameraHandler camhand)
Sets the camera handler reference.


getCameraHandler

CameraHandler getCameraHandler()
Returns a reference to the camera handler.


getResourceManager

com.threerings.resource.ResourceManager getResourceManager()
Returns a reference to the resource manager.

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

getMessageManager

com.threerings.util.MessageManager getMessageManager()
Returns a reference to the message manager.

Specified by:
getMessageManager in interface EditorContext

getConfigManager

ConfigManager getConfigManager()
Returns a reference to the configuration manager.

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

getColorPository

com.threerings.media.image.ColorPository getColorPository()
Returns a reference to the color pository.

Specified by:
getColorPository in interface EditorContext

getImageCache

ImageCache getImageCache()
Returns a reference to the image cache.


getShaderCache

ShaderCache getShaderCache()
Returns a reference to the shader cache.



Copyright © 2011. All Rights Reserved.