JME中级手册,Applcation

Application Class

The com.jme3.app.Application class represents an instance of a real-time 3D rendering jME3 application. A com.jme3.app.Application provides all the tools that are commonly used in jME3 applications.

Class field or method Purpose
context The application context contains renderer, AppSettings, timer, etc. The context object is not usually directly accessed by users.
应用程序上下文,包含render,AppSettings,timer等,通常不是被用户直接访问。

getRenderManager() 
getRenderer();
Low-level and high-level rendering interface.
高级和低级渲染接口。
getStateManager() The Application state manager is used to activate physics.用作激活物理状态。
viewPort The view object for the default camera.相机的默认视角。
guiViewPort The view object for the orthogonal GUI view. Used internally for HUDs.正视角的GUI对象
settings 
setSettings()
The AppSettings let you specify the display width and height (by default 640x480), color bit depth, z-buffer bits, anti-aliasing samples, and update frequency, video and audio renderer, asset manager.(AppSettings提供显示分辨率,颜色等)
timer Internal update loop timer. Users have access to the tpf float variable in the simpleUpdate() loop to time actions.(内部循环计数器,通过simpleUpdate()方法循环动作,tpf浮点数时间单位)
cam The default camera with perspective projection, 45° field of view, near plane = 1 wu, far plane = 1000 wu.(默认透视投影相机,45度视角)
assetManager 
getAssetManager()
An object that manages paths for loading models, textures, materials, sounds, etc. By default the AssetManager paths are relative to your projects root directory.
(管理物体的加载模型、纹理、材质、声音等。默认是项目路径的根目录)
getAudioRenderer() 
getListener()
The audio system.(音频)
keyInput 
mouseInput 
joyInput
Default input contexts for keyboard, mouse, and joystick(默认键盘输入、鼠标、游戏控制)
getInputManager() Use the inputManager to configure your custom inputs.(使用输入管理配置自定义输入)
inputEnabled Set this boolean whether the system should listen for user inputs (or instead just play a non-interactive scene).
(设置是否接受系统输入监听,不接受只是非交互的场景模式)
setPauseOnLostFocus() Set this boolean whether the game should pause when ever the window loses focus.(当然窗口失去焦点时,是否暂停游戏)
paused Set this boolean during runtime to pause/unpause a game.(暂停或取消暂停)
start() 
start(jMEContextType)
Call this method to start a jME3 game. By default this opens a new jME3 window, initializes the scene, and starts the event loop. Can optionally accept com.​jme3.​system.​JmeContext.Type.* as argument to run headless or embedded. (See below.)(启动游戏,jMEContextType参数是设置启动默认用的)
restart() Reloads the AppSettings into the current application context. (AppSettings重新设置到当前的上下文应用中)
stop() Stops the running jME3 game and closes the jME3 window.(停止并关闭窗口)

你可能感兴趣的:(APP)