com.jme3.system
インタフェース JmeContext

既知の実装クラスの一覧:
NullContext

public interface JmeContext

Represents a rendering context within the engine.


入れ子のクラスの概要
static class JmeContext.Type
          The type of context.
 
メソッドの概要
 void create(boolean waitFor)
          Creates the context and makes it active.
 void destroy(boolean waitFor)
          Destroys the context completely, making it inactive.
 JoyInput getJoyInput()
           
 KeyInput getKeyInput()
           
 MouseInput getMouseInput()
           
 Renderer getRenderer()
           
 AppSettings getSettings()
           
 Timer getTimer()
           
 TouchInput getTouchInput()
           
 JmeContext.Type getType()
           
 boolean isCreated()
           
 boolean isRenderable()
           
 void restart()
          Destroys and then re-creates the context.
 void setAutoFlushFrames(boolean enabled)
           
 void setSettings(AppSettings settings)
           
 void setSystemListener(SystemListener listener)
          Sets the listener that will receive events relating to context creation, update, and destroy.
 void setTitle(java.lang.String title)
          Sets the title of the display (if available).
 

メソッドの詳細

getType

JmeContext.Type getType()
戻り値:
The type of the context.

setSettings

void setSettings(AppSettings settings)
パラメータ:
settings - the display settings to use for the created context. If the context has already been created, then restart() must be called for the changes to be applied.

setSystemListener

void setSystemListener(SystemListener listener)
Sets the listener that will receive events relating to context creation, update, and destroy.


getSettings

AppSettings getSettings()
戻り値:
The current display settings. Note that they might be different from the ones set with setDisplaySettings() if the context was restarted or the settings changed internally.

getRenderer

Renderer getRenderer()
戻り値:
The renderer for this context, or null if not created yet.

getMouseInput

MouseInput getMouseInput()
戻り値:
Mouse input implementation. May be null if not available.

getKeyInput

KeyInput getKeyInput()
戻り値:
Keyboard input implementation. May be null if not available.

getJoyInput

JoyInput getJoyInput()
戻り値:
Joystick input implementation. May be null if not available.

getTouchInput

TouchInput getTouchInput()
戻り値:
Touch device input implementation. May be null if not available.

getTimer

Timer getTimer()
戻り値:
The timer for this context, or null if not created yet.

setTitle

void setTitle(java.lang.String title)
Sets the title of the display (if available). This does nothing for fullscreen, headless, or canvas contexts.

パラメータ:
title - The new title of the display.

isCreated

boolean isCreated()
戻り値:
True if the context has been created but not yet destroyed.

isRenderable

boolean isRenderable()
戻り値:
True if the context contains a valid render surface, if any of the rendering methods in Renderer are called while this is false, then the result is undefined.

setAutoFlushFrames

void setAutoFlushFrames(boolean enabled)
パラメータ:
enabled - If enabled, the context will automatically flush frames to the video card (swap buffers) after an update cycle.

create

void create(boolean waitFor)
Creates the context and makes it active.

パラメータ:
waitFor - If true, will wait until context has initialized.

restart

void restart()
Destroys and then re-creates the context. This should be called after the display settings have been changed.


destroy

void destroy(boolean waitFor)
Destroys the context completely, making it inactive.

パラメータ:
waitFor - If true, will wait until the context is destroyed fully.