de.lessvoid.nifty.examples.resolution
Interface ResolutionControl<T>

All Known Implementing Classes:
ResolutionControlLWJGL

public interface ResolutionControl<T>

The resolution change example needs a control to actually read and alter the used resolutions. This interface needs to be implemented by the implementing renderers to provide the access to the different functions.

Author:
Martin Karing <nitram@illarion.org>

Method Summary
 T getCurrentResolution()
          Get the resolution that applies currently.
 Collection<T> getResolutions()
          Get a list of resolutions that can be applied.
 void setResolution(T newResolution)
          Set a resolution that should be used from now on.
 

Method Detail

getResolutions

Collection<T> getResolutions()
Get a list of resolutions that can be applied.

Returns:
the list of valid resolutions

setResolution

void setResolution(T newResolution)
Set a resolution that should be used from now on.

Parameters:
newResolution - the new resolution

getCurrentResolution

T getCurrentResolution()
Get the resolution that applies currently.

Returns:
the current resolution


Copyright © 2012. All Rights Reserved.