de.lessvoid.nifty.examples.resolution
Class ResolutionControlLWJGL

java.lang.Object
  extended by de.lessvoid.nifty.examples.resolution.ResolutionControlLWJGL
All Implemented Interfaces:
ResolutionControl<org.lwjgl.opengl.DisplayMode>

public class ResolutionControlLWJGL
extends Object
implements ResolutionControl<org.lwjgl.opengl.DisplayMode>

Created by IntelliJ IDEA. User: Martin Karing Date: 31.03.12 Time: 13:29 To change this template use File | Settings | File Templates.


Constructor Summary
ResolutionControlLWJGL()
           
 
Method Summary
 org.lwjgl.opengl.DisplayMode getCurrentResolution()
          Get the resolution that applies currently.
 Collection<org.lwjgl.opengl.DisplayMode> getResolutions()
          Get a list of resolutions that can be applied.
 void setResolution(org.lwjgl.opengl.DisplayMode newResolution)
          Set a resolution that should be used from now on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolutionControlLWJGL

public ResolutionControlLWJGL()
Method Detail

getResolutions

public Collection<org.lwjgl.opengl.DisplayMode> getResolutions()
Description copied from interface: ResolutionControl
Get a list of resolutions that can be applied.

Specified by:
getResolutions in interface ResolutionControl<org.lwjgl.opengl.DisplayMode>
Returns:
the list of valid resolutions

setResolution

public void setResolution(org.lwjgl.opengl.DisplayMode newResolution)
Description copied from interface: ResolutionControl
Set a resolution that should be used from now on.

Specified by:
setResolution in interface ResolutionControl<org.lwjgl.opengl.DisplayMode>
Parameters:
newResolution - the new resolution

getCurrentResolution

public org.lwjgl.opengl.DisplayMode getCurrentResolution()
Description copied from interface: ResolutionControl
Get the resolution that applies currently.

Specified by:
getCurrentResolution in interface ResolutionControl<org.lwjgl.opengl.DisplayMode>
Returns:
the current resolution


Copyright © 2012. All Rights Reserved.