|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jme3.app.Application env3d.EnvBasic env3d.Env
public class Env
Field Summary |
---|
Fields inherited from class env3d.EnvBasic |
---|
audioMap, flyCam, guiFont, guiNode, init, internalObjects, objectsMap, roomObject, rootNode, statusNode, statusText, tpf |
Fields inherited from class com.jme3.app.Application |
---|
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, mouseInput, paused, pauseOnFocus, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort |
Constructor Summary | |
---|---|
Env()
|
|
Env(boolean defaultControl)
|
Method Summary | |
---|---|
void |
advanceOneFrame()
Render the current screen. |
void |
advanceOneFrame(int targetFrameRate)
Render the current screen |
int |
getKey()
Return the last key that was released (down and then up). |
int |
getKeyDown()
Returns the last key that was held down. |
boolean |
getKeyDown(int keycode)
Test to see if a key is pressed downed. |
int |
getMouseButtonClicked()
Returns the last mouse button that was clicked |
boolean |
getMouseButtonDown(int button)
Checks to see if a particular mouse button is being held down. |
int |
getMouseDX()
Get the difference along the x-axis in mouse movement since the last call |
int |
getMouseDY()
Get the difference along the y-axis in mouse movement since the last call |
int |
getMouseX()
Get the X mouse coordinate |
int |
getMouseY()
Get the Y mouse coordinate |
boolean |
isFullScreen()
Are we in full screen mode |
boolean |
isMouseGrabbed()
Get the status of mouse grab |
void |
setFullscreen(boolean fs)
Allow switching to fullscreen. |
void |
setMouseGrab(boolean grab)
Have the Env window gain control of the mouse pointer (hide it). |
void |
setResolution(int width,
int height,
int bpp)
|
void |
start(com.jme3.system.JmeContext.Type contextType)
|
Methods inherited from class env3d.EnvBasic |
---|
addObject, destroy, disableLighting, enableLighting, exit, getCameraPitch, getCameraX, getCameraY, getCameraYaw, getCameraZ, getNiftyGUI, getObject, getObjects, getObjects, getPick, getPickList, getPickRay, getRootNode, getVolume, initialize, isDefaultControl, isLightingEnabled, removeObject, setCameraPitch, setCameraXYZ, setCameraYaw, setDefaultControl, setDisplayStr, setDisplayStr, setDisplayStr, setRoom, setShowStatus, setVolume, soundLoad, soundLoop, soundPlay, soundPlay, soundStop, update |
Methods inherited from class com.jme3.app.Application |
---|
createCanvas, destroyInput, enqueue, gainFocus, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAssetManager, setPauseOnLostFocus, setSettings, setTimer, start, startCanvas, startCanvas, stop, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Env()
public Env(boolean defaultControl)
Method Detail |
---|
public int getKey()
public int getKeyDown()
getKeyDown(int)
public boolean getKeyDown(int keycode)
keycode
-
public int getMouseX()
public int getMouseY()
public int getMouseDX()
public int getMouseDY()
public void setMouseGrab(boolean grab)
grab
- true to hide mouse pointer, false to release it
to the OS.public boolean isMouseGrabbed()
public boolean getMouseButtonDown(int button)
button
-
public int getMouseButtonClicked()
public void setFullscreen(boolean fs)
fs
- true to switch to fullscreen. False to switch to window mode.public void setResolution(int width, int height, int bpp)
public boolean isFullScreen()
public void advanceOneFrame()
advanceOneFrame(int)
public void advanceOneFrame(int targetFrameRate)
targetFrameRate
- the maximum frame ratepublic void start(com.jme3.system.JmeContext.Type contextType)
start
in class EnvBasic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |