|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JmeContext
Represents a rendering context within the engine.
Nested Class Summary | |
---|---|
static class |
JmeContext.Type
The type of context. |
Method Summary | |
---|---|
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). |
Method Detail |
---|
JmeContext.Type getType()
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.void setSystemListener(SystemListener listener)
AppSettings getSettings()
Renderer getRenderer()
MouseInput getMouseInput()
KeyInput getKeyInput()
JoyInput getJoyInput()
TouchInput getTouchInput()
Timer getTimer()
void setTitle(java.lang.String title)
title
- The new title of the display.boolean isCreated()
boolean isRenderable()
Renderer
are called
while this is false
, then the result is undefined.void setAutoFlushFrames(boolean enabled)
enabled
- If enabled, the context will automatically flush
frames to the video card (swap buffers) after an update cycle.void create(boolean waitFor)
waitFor
- If true, will wait until context has initialized.void restart()
void destroy(boolean waitFor)
waitFor
- If true, will wait until the context is destroyed fully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |