Class IGLESContext
java.lang.Object
com.jme3.system.ios.IGLESContext
- All Implemented Interfaces:
com.jme3.system.JmeContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jme3.system.JmeContext
com.jme3.system.JmeContext.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final AtomicBooleanprotected intprotected intprotected IosInputHandlerprotected IosJoyInputprotected longprotected com.jme3.system.SystemListenerprotected intprotected intprotected longprotected final AtomicBooleanprotected final AtomicBooleanprotected com.jme3.renderer.opengl.GLRendererprotected com.jme3.system.AppSettingsprotected com.jme3.system.Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voidcreate(boolean waitFor) voiddestroy()voiddestroy(boolean waitFor) com.jme3.system.DisplaysintintReturns the width of the framebuffer.com.jme3.input.JoyInputcom.jme3.input.KeyInputcom.jme3.input.MouseInputintcom.jme3.renderer.Renderercom.jme3.system.AppSettingscom.jme3.system.SystemListenerAccesses the listener that receives events related to this context.com.jme3.system.TimergetTimer()com.jme3.input.TouchInputcom.jme3.system.JmeContext.TypegetType()intReturns the screen X coordinate of the left edge of the content area.intReturns the screen Y coordinate of the top edge of the content area.booleanbooleanvoidresizeFramebuffer(int width, int height) voidrestart()voidrunFrame()Advances one jME frame when driven by the libJGLIOS SDL callback loop.voidsetAutoFlushFrames(boolean enabled) voidsetSettings(com.jme3.system.AppSettings settings) voidsetSystemListener(com.jme3.system.SystemListener listener) voidprotected voidwaitFor(boolean createdVal)
-
Field Details
-
created
-
renderable
-
needClose
-
settings
protected com.jme3.system.AppSettings settings -
autoFlush
protected boolean autoFlush -
framebufferWidth
protected int framebufferWidth -
framebufferHeight
protected int framebufferHeight -
logicalWidth
protected int logicalWidth -
logicalHeight
protected int logicalHeight -
renderer
protected com.jme3.renderer.opengl.GLRenderer renderer -
timer
protected com.jme3.system.Timer timer -
listener
protected com.jme3.system.SystemListener listener -
input
-
joyInput
-
minFrameDurationNanos
protected long minFrameDurationNanos -
lastFrameTimeNanos
protected long lastFrameTimeNanos
-
-
Constructor Details
-
IGLESContext
public IGLESContext()
-
-
Method Details
-
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
-
getSystemListener
public com.jme3.system.SystemListener getSystemListener()Accesses the listener that receives events related to this context.- Specified by:
getSystemListenerin interfacecom.jme3.system.JmeContext- Returns:
- the pre-existing instance
-
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
-
getMouseInput
public com.jme3.input.MouseInput getMouseInput()- Specified by:
getMouseInputin interfacecom.jme3.system.JmeContext
-
getKeyInput
public com.jme3.input.KeyInput 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
- Specified by:
setTitlein interfacecom.jme3.system.JmeContext
-
isCreated
public boolean isCreated()- Specified by:
isCreatedin interfacecom.jme3.system.JmeContext
-
setAutoFlushFrames
public void setAutoFlushFrames(boolean enabled) - Specified by:
setAutoFlushFramesin interfacecom.jme3.system.JmeContext
-
isRenderable
public boolean isRenderable()- Specified by:
isRenderablein interfacecom.jme3.system.JmeContext
-
create
public void create(boolean waitFor) - Specified by:
createin interfacecom.jme3.system.JmeContext
-
runFrame
public void runFrame()Advances one jME frame when driven by the libJGLIOS SDL callback loop. -
resizeFramebuffer
public void resizeFramebuffer(int width, int height) -
create
public void create() -
restart
public void restart()- Specified by:
restartin interfacecom.jme3.system.JmeContext
-
destroy
public void destroy(boolean waitFor) - Specified by:
destroyin interfacecom.jme3.system.JmeContext
-
destroy
public void destroy() -
waitFor
protected void waitFor(boolean createdVal) -
getFramebufferHeight
public int getFramebufferHeight()- Specified by:
getFramebufferHeightin interfacecom.jme3.system.JmeContext
-
getFramebufferWidth
public int getFramebufferWidth()Returns the width of the framebuffer.- Specified by:
getFramebufferWidthin interfacecom.jme3.system.JmeContext- Throws:
UnsupportedOperationException
-
getWindowXPosition
public int getWindowXPosition()Returns the screen X coordinate of the left edge of the content area.- Specified by:
getWindowXPositionin interfacecom.jme3.system.JmeContext- Throws:
UnsupportedOperationException
-
getWindowYPosition
public int getWindowYPosition()Returns the screen Y coordinate of the top edge of the content area.- Specified by:
getWindowYPositionin interfacecom.jme3.system.JmeContext- Throws:
UnsupportedOperationException
-
getDisplays
public com.jme3.system.Displays getDisplays()- Specified by:
getDisplaysin interfacecom.jme3.system.JmeContext
-
getPrimaryDisplay
public int getPrimaryDisplay()- Specified by:
getPrimaryDisplayin interfacecom.jme3.system.JmeContext
-