public abstract class LwjglContextVR extends java.lang.Object implements JmeContext
JmeContext.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
created |
protected java.lang.Object |
createdLock |
protected GlfwJoystickInput |
joyInput |
protected GlfwKeyInputVR |
keyInput |
protected SystemListener |
listener |
protected GlfwMouseInputVR |
mouseInput |
protected java.util.concurrent.atomic.AtomicBoolean |
renderable |
protected Renderer |
renderer |
protected AppSettings |
settings |
protected static java.lang.String |
THREAD_NAME |
protected Timer |
timer |
Constructor and Description |
---|
LwjglContextVR() |
Modifier and Type | Method and Description |
---|---|
void |
create()
Create the context.
|
void |
destroy()
Destroy the context.
|
protected int |
determineMaxSamples() |
protected int |
getNumSamplesToUse() |
Renderer |
getRenderer() |
AppSettings |
getSettings() |
Timer |
getTimer() |
protected void |
initContextFirstTime() |
void |
internalCreate()
Context internal create.
|
void |
internalDestroy()
Context internal destroy.
|
boolean |
isCreated() |
boolean |
isRenderable() |
boolean |
isRetinaDisplay()
Check if the display is a retina display.
|
protected void |
loadNatives() |
protected void |
printContextInitInfo() |
void |
setSettings(AppSettings settings) |
void |
setSystemListener(SystemListener listener)
Sets the listener that will receive events relating to context
creation, update, and destroy.
|
protected void |
waitFor(boolean createdVal) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, destroy, getJoyInput, getKeyInput, getMouseInput, getOpenCLContext, getTouchInput, getType, restart, setAutoFlushFrames, setTitle
protected static final java.lang.String THREAD_NAME
protected java.util.concurrent.atomic.AtomicBoolean created
protected java.util.concurrent.atomic.AtomicBoolean renderable
protected final java.lang.Object createdLock
protected AppSettings settings
protected Renderer renderer
protected GlfwKeyInputVR keyInput
protected GlfwMouseInputVR mouseInput
protected GlfwJoystickInput joyInput
protected Timer timer
protected SystemListener listener
public void setSystemListener(SystemListener listener)
JmeContext
setSystemListener
in interface JmeContext
listener
- the desired listenerprotected void printContextInitInfo()
protected int determineMaxSamples()
protected void loadNatives()
public boolean isRetinaDisplay()
true
if the display is a retina display and false
otherwise.protected int getNumSamplesToUse()
protected void initContextFirstTime()
public void internalDestroy()
public void internalCreate()
public void create()
public void destroy()
protected void waitFor(boolean createdVal)
createdVal
- public boolean isCreated()
isCreated
in interface JmeContext
public boolean isRenderable()
isRenderable
in interface JmeContext
Renderer
are called
while this is false
, then the result is undefined.public void setSettings(AppSettings settings)
setSettings
in interface JmeContext
settings
- the display settings to use for the created context. If
the context has already been created, then restart()
must be called
for the changes to be applied.public AppSettings getSettings()
getSettings
in interface JmeContext
public Renderer getRenderer()
getRenderer
in interface JmeContext
public Timer getTimer()
getTimer
in interface JmeContext