|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.app.Application
com.jme3.app.SimpleApplication
public abstract class SimpleApplication
SimpleApplication extends the Application
class to provide default functionality like a first-person camera,
and an accessible root node that is updated and rendered regularly.
Additionally, SimpleApplication will display a statistics view
using the StatsView class. It will display
the current frames-per-second value on-screen in addition to the statistics.
Several keys have special functionality in SimpleApplication:
| Esc | - Close the application |
| C | - Display the camera position and rotation in the console. |
| M | - Display memory usage in the console. |
| フィールドの概要 | |
|---|---|
static java.lang.String |
INPUT_MAPPING_CAMERA_POS
|
static java.lang.String |
INPUT_MAPPING_EXIT
|
static java.lang.String |
INPUT_MAPPING_HIDE_STATS
|
static java.lang.String |
INPUT_MAPPING_MEMORY
|
| コンストラクタの概要 | |
|---|---|
SimpleApplication()
|
|
| メソッドの概要 | |
|---|---|
FlyByCamera |
getFlyByCamera()
Retrieves flyCam |
Node |
getGuiNode()
Retrieves guiNode |
Node |
getRootNode()
Retrieves rootNode |
void |
initialize()
Do not call manually. |
boolean |
isShowSettings()
|
void |
loadFPSText()
Attaches FPS statistics to guiNode and displays it on the screen. |
void |
loadStatsView()
Attaches Statistics View to guiNode and displays it on the screen above FPS statistics line. |
void |
setDisplayFps(boolean show)
|
void |
setDisplayStatView(boolean show)
|
void |
setShowSettings(boolean showSettings)
Toggles settings window to display at start-up |
abstract void |
simpleInitApp()
|
void |
simpleRender(RenderManager rm)
|
void |
simpleUpdate(float tpf)
|
void |
start()
Starts the application in display mode. |
void |
update()
Do not call manually. |
| クラス com.jme3.app.Application から継承されたメソッド |
|---|
createCanvas, destroy, enqueue, gainFocus, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, setAssetManager, setPauseOnLostFocus, setSettings, start, startCanvas, startCanvas, stop, stop |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final java.lang.String INPUT_MAPPING_EXIT
public static final java.lang.String INPUT_MAPPING_CAMERA_POS
public static final java.lang.String INPUT_MAPPING_MEMORY
public static final java.lang.String INPUT_MAPPING_HIDE_STATS
| コンストラクタの詳細 |
|---|
public SimpleApplication()
| メソッドの詳細 |
|---|
public void start()
Application の記述:display mode.
Application 内の startApplication.start(com.jme3.system.JmeContext.Type)public FlyByCamera getFlyByCamera()
public Node getGuiNode()
public Node getRootNode()
public boolean isShowSettings()
public void setShowSettings(boolean showSettings)
showSettings - Sets true/falsepublic void loadFPSText()
public void loadStatsView()
public void initialize()
Application の記述:
Initializes the Application, by creating a display and
default camera. If display settings are not specified, a default
640x480 display is created. Default values are used for the camera;
perspective projection with 45° field of view, with near
and far values 1 and 1000 units respectively.
SystemListener 内の initializeApplication 内の initializepublic void update()
Application の記述:
SystemListener 内の updateApplication 内の updatepublic void setDisplayFps(boolean show)
public void setDisplayStatView(boolean show)
public abstract void simpleInitApp()
public void simpleUpdate(float tpf)
public void simpleRender(RenderManager rm)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||