Package io.tlf.jme.jfx.injfx
Class JmeOffscreenSurfaceContext
- java.lang.Object
-
- io.tlf.jme.jfx.injfx.JmeOffscreenSurfaceContext
-
- All Implemented Interfaces:
com.jme3.system.JmeContext
public class JmeOffscreenSurfaceContext extends java.lang.Object implements com.jme3.system.JmeContextThe implementation of theJmeContextfor integrating to JavaFX.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.jme3.system.JmeContextbackgroundContextThe background context.protected JfxKeyInputkeyInputThe key input.protected JfxMouseInputmouseInputThe mouse input.protected com.jme3.system.AppSettingssettingsThe settings.
-
Constructor Summary
Constructors Constructor Description JmeOffscreenSurfaceContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(boolean waitFor)protected com.jme3.system.JmeContextcreateBackgroundContext()Creates a new background jme context.protected com.jme3.system.AppSettingscreateSettings()Creates a new app settings.voiddestroy(boolean waitFor)protected com.jme3.system.JmeContextgetBackgroundContext()Gets the current background context.intgetHeight()Gets the current height.com.jme3.input.JoyInputgetJoyInput()JfxKeyInputgetKeyInput()JfxMouseInputgetMouseInput()com.jme3.opencl.ContextgetOpenCLContext()com.jme3.renderer.RenderergetRenderer()com.jme3.system.AppSettingsgetSettings()com.jme3.system.TimergetTimer()com.jme3.input.TouchInputgetTouchInput()com.jme3.system.JmeContext.TypegetType()intgetWidth()Gets the current width.booleanisCreated()booleanisRenderable()voidrestart()voidsetAutoFlushFrames(boolean enabled)voidsetHeight(int height)Sets the current height.voidsetSettings(com.jme3.system.AppSettings settings)voidsetSystemListener(com.jme3.system.SystemListener listener)voidsetTitle(java.lang.String title)voidsetWidth(int width)Sets the current width.
-
-
-
Field Detail
-
settings
protected final com.jme3.system.AppSettings settings
The settings.
-
keyInput
protected final JfxKeyInput keyInput
The key input.
-
mouseInput
protected final JfxMouseInput mouseInput
The mouse input.
-
backgroundContext
protected com.jme3.system.JmeContext backgroundContext
The background context.
-
-
Method Detail
-
getHeight
public int getHeight()
Gets the current height.- Returns:
- the current height.
-
setHeight
public void setHeight(int height)
Sets the current height.- Parameters:
height- the current height.
-
getWidth
public int getWidth()
Gets the current width.- Returns:
- the current width.
-
setWidth
public void setWidth(int width)
Sets the current width.- Parameters:
width- the current width.
-
createSettings
protected com.jme3.system.AppSettings createSettings()
Creates a new app settings.- Returns:
- the new app settings.
-
createBackgroundContext
protected com.jme3.system.JmeContext createBackgroundContext()
Creates a new background jme context.- Returns:
- the new background jme context.
-
getBackgroundContext
protected com.jme3.system.JmeContext getBackgroundContext()
Gets the current background context.- Returns:
- the current background context.
-
getType
public com.jme3.system.JmeContext.Type getType()
- Specified by:
getTypein interfacecom.jme3.system.JmeContext
-
setSettings
public void setSettings(com.jme3.system.AppSettings settings)
- Specified by:
setSettingsin interfacecom.jme3.system.JmeContext
-
setSystemListener
public void setSystemListener(com.jme3.system.SystemListener listener)
- Specified by:
setSystemListenerin interfacecom.jme3.system.JmeContext
-
getSettings
public com.jme3.system.AppSettings getSettings()
- Specified by:
getSettingsin interfacecom.jme3.system.JmeContext
-
getRenderer
public com.jme3.renderer.Renderer getRenderer()
- Specified by:
getRendererin interfacecom.jme3.system.JmeContext
-
getOpenCLContext
public com.jme3.opencl.Context getOpenCLContext()
- Specified by:
getOpenCLContextin interfacecom.jme3.system.JmeContext
-
getMouseInput
public JfxMouseInput getMouseInput()
- Specified by:
getMouseInputin interfacecom.jme3.system.JmeContext
-
getKeyInput
public JfxKeyInput getKeyInput()
- Specified by:
getKeyInputin interfacecom.jme3.system.JmeContext
-
getJoyInput
public com.jme3.input.JoyInput getJoyInput()
- Specified by:
getJoyInputin interfacecom.jme3.system.JmeContext
-
getTouchInput
public com.jme3.input.TouchInput getTouchInput()
- Specified by:
getTouchInputin interfacecom.jme3.system.JmeContext
-
getTimer
public com.jme3.system.Timer getTimer()
- Specified by:
getTimerin interfacecom.jme3.system.JmeContext
-
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitlein interfacecom.jme3.system.JmeContext
-
isCreated
public boolean isCreated()
- Specified by:
isCreatedin interfacecom.jme3.system.JmeContext
-
isRenderable
public boolean isRenderable()
- Specified by:
isRenderablein interfacecom.jme3.system.JmeContext
-
setAutoFlushFrames
public void setAutoFlushFrames(boolean enabled)
- Specified by:
setAutoFlushFramesin interfacecom.jme3.system.JmeContext
-
create
public void create(boolean waitFor)
- Specified by:
createin interfacecom.jme3.system.JmeContext
-
restart
public void restart()
- Specified by:
restartin interfacecom.jme3.system.JmeContext
-
destroy
public void destroy(boolean waitFor)
- Specified by:
destroyin interfacecom.jme3.system.JmeContext
-
-