com.jme3.system.lwjgl
Class LwjglDisplay

java.lang.Object
  extended by com.jme3.system.lwjgl.LwjglContext
      extended by com.jme3.system.lwjgl.LwjglAbstractDisplay
          extended by com.jme3.system.lwjgl.LwjglDisplay
All Implemented Interfaces:
JmeContext, java.lang.Runnable

public class LwjglDisplay
extends LwjglAbstractDisplay


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jme3.system.JmeContext
JmeContext.Type
 
Field Summary
 
Fields inherited from class com.jme3.system.lwjgl.LwjglAbstractDisplay
autoFlush, frameRate, needClose, wasActive
 
Fields inherited from class com.jme3.system.lwjgl.LwjglContext
created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, timer
 
Constructor Summary
LwjglDisplay()
           
 
Method Summary
 void create(boolean waitFor)
          Creates the context and makes it active.
protected  void createContext(AppSettings settings)
          Apply the settings, changing resolution, etc.
protected  void destroyContext()
          Destroy the context.
protected  org.lwjgl.opengl.DisplayMode getFullscreenDisplayMode(int width, int height, int bpp, int freq)
           
 JmeContext.Type getType()
           
 void restart()
          Restart if its a windowed or full-screen display.
 void runLoop()
          execute one iteration of the render loop in the OpenGL thread
 void setTitle(java.lang.String title)
          Set the title if its a windowed display
 
Methods inherited from class com.jme3.system.lwjgl.LwjglAbstractDisplay
checkGLError, deinitInThread, destroy, getJoyInput, getKeyInput, getMouseInput, getTouchInput, initInThread, run, setAutoFlushFrames
 
Methods inherited from class com.jme3.system.lwjgl.LwjglContext
create, createContextAttribs, destroy, getRenderer, getSettings, getTimer, initContextFirstTime, internalCreate, internalDestroy, isCreated, isRenderable, printContextInitInfo, setSettings, setSystemListener, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LwjglDisplay

public LwjglDisplay()
Method Detail

getFullscreenDisplayMode

protected org.lwjgl.opengl.DisplayMode getFullscreenDisplayMode(int width,
                                                                int height,
                                                                int bpp,
                                                                int freq)

createContext

protected void createContext(AppSettings settings)
                      throws org.lwjgl.LWJGLException
Description copied from class: LwjglAbstractDisplay
Apply the settings, changing resolution, etc.

Specified by:
createContext in class LwjglAbstractDisplay
Throws:
org.lwjgl.LWJGLException

destroyContext

protected void destroyContext()
Description copied from class: LwjglAbstractDisplay
Destroy the context.

Specified by:
destroyContext in class LwjglAbstractDisplay

create

public void create(boolean waitFor)
Description copied from interface: JmeContext
Creates the context and makes it active.

Parameters:
waitFor - If true, will wait until context has initialized.

runLoop

public void runLoop()
Description copied from class: LwjglAbstractDisplay
execute one iteration of the render loop in the OpenGL thread

Overrides:
runLoop in class LwjglAbstractDisplay

restart

public void restart()
Description copied from class: LwjglAbstractDisplay
Restart if its a windowed or full-screen display.

Specified by:
restart in interface JmeContext
Specified by:
restart in class LwjglAbstractDisplay

getType

public JmeContext.Type getType()
Specified by:
getType in interface JmeContext
Specified by:
getType in class LwjglAbstractDisplay
Returns:
Type.Display or Type.Canvas

setTitle

public void setTitle(java.lang.String title)
Description copied from class: LwjglAbstractDisplay
Set the title if its a windowed display

Specified by:
setTitle in interface JmeContext
Specified by:
setTitle in class LwjglAbstractDisplay
Parameters:
title - The new title of the display.