|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.DynamicScope
com.threerings.opengl.GlApp
public abstract class GlApp
A base class for OpenGL-based applications.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
GlApp()
|
|
| Method Summary | |
|---|---|
abstract Root |
createRoot()
Creates a user interface root appropriate for this application. |
BufferedImage |
createSnapshot()
Creates and returns a snapshot image of the current frame. |
void |
enqueue()
Enqueues this object for rendering. |
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. |
boolean |
getCompatibilityMode()
Checks whether compatibility mode is enabled. |
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. |
boolean |
getRenderEffects()
Checks whether render effects are enabled. |
Renderer |
getRenderer()
Returns a reference to the renderer. |
String |
getRenderScheme()
Returns the name of the configured render scheme. |
com.threerings.resource.ResourceManager |
getResourceManager()
Returns a reference to the resource manager. |
abstract RunQueue |
getRunQueue()
Returns a reference to the application's run queue. |
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. |
MutableFloat |
getStreamGain()
Returns a reference to the stream gain. |
void |
setCameraHandler(CameraHandler camhand)
Sets the camera handler reference. |
void |
setCompatibilityMode(boolean enabled)
Enables or disables compatibility mode, which disables certain features for maximum compatibility. |
void |
setRenderEffects(boolean enabled)
Enables or disables render effects. |
void |
setRenderer(Renderer renderer)
Sets the renderer reference. |
void |
setRenderScheme(String scheme)
Sets the render scheme. |
abstract void |
shutdown()
Shuts down the application. |
abstract void |
startup()
Starts up the application. |
String |
xlate(String bundle,
String msg)
Convenience method for translation. |
| Methods inherited from class com.threerings.expr.DynamicScope |
|---|
addListener, dispose, endCompoundUpdate, get, getParentScope, getScopeName, put, remove, removeListener, scopeUpdated, setParentScope, startCompoundUpdate, wasUpdated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.util.GlContext |
|---|
makeCurrent |
| Constructor Detail |
|---|
public GlApp()
| Method Detail |
|---|
public abstract RunQueue getRunQueue()
public void setRenderScheme(String scheme)
public String getRenderScheme()
public void setCompatibilityMode(boolean enabled)
public boolean getCompatibilityMode()
public void setRenderEffects(boolean enabled)
public boolean getRenderEffects()
public MutableFloat getStreamGain()
public abstract Root createRoot()
public abstract void startup()
public abstract void shutdown()
public String xlate(String bundle,
String msg)
public BufferedImage createSnapshot()
public GlApp getApp()
GlContext
getApp in interface GlContextpublic DynamicScope getScope()
GlContext
getScope in interface AlContextgetScope in interface GlContextpublic com.threerings.resource.ResourceManager getResourceManager()
GlContext
getResourceManager in interface EditorContextgetResourceManager in interface AlContextgetResourceManager in interface GlContextpublic ConfigManager getConfigManager()
GlContext
getConfigManager in interface EditorContextgetConfigManager in interface AlContextgetConfigManager in interface GlContextpublic com.threerings.openal.SoundManager getSoundManager()
AlContext
getSoundManager in interface AlContextpublic com.threerings.openal.ClipProvider getClipProvider()
AlContext
getClipProvider in interface AlContextpublic void setRenderer(Renderer renderer)
GlContext
setRenderer in interface GlContextpublic Renderer getRenderer()
GlContext
getRenderer in interface GlContextpublic Compositor getCompositor()
GlContext
getCompositor in interface GlContextpublic void setCameraHandler(CameraHandler camhand)
GlContext
setCameraHandler in interface GlContextpublic CameraHandler getCameraHandler()
GlContext
getCameraHandler in interface GlContextpublic com.threerings.util.MessageManager getMessageManager()
GlContext
getMessageManager in interface EditorContextgetMessageManager in interface GlContextpublic com.threerings.media.image.ColorPository getColorPository()
GlContext
getColorPository in interface EditorContextgetColorPository in interface GlContextpublic ImageCache getImageCache()
GlContext
getImageCache in interface GlContextpublic ShaderCache getShaderCache()
GlContext
getShaderCache in interface GlContextpublic void enqueue()
Enqueueable
enqueue in interface Enqueueable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||