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, waitcreate, destroy, getJoyInput, getKeyInput, getMouseInput, getOpenCLContext, getTouchInput, getType, restart, setAutoFlushFrames, setTitleprotected 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)
JmeContextsetSystemListener in interface JmeContextlistener - 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 JmeContextpublic boolean isRenderable()
isRenderable in interface JmeContextRenderer are called
while this is false, then the result is undefined.public void setSettings(AppSettings settings)
setSettings in interface JmeContextsettings - 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 JmeContextpublic Renderer getRenderer()
getRenderer in interface JmeContextpublic Timer getTimer()
getTimer in interface JmeContext