Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
SupportResolutions () | |
boolean | loadSupportFile (final String _file) |
Vector2 | getBestResolution (final Ratio _ratio, final Vector2 _default) |
SupportResolutions allows a developer to inform the Engine what resolutions & aspect-ratios they have decided to support.
If a screen resolution is used that is not directly supported, then it will use the best resolution availble. If the screen uses an aspect-ratio, not supported then it will return the _default resolution. Ie. the resolution passed in.
Vector2 com.linxonline.mallet.renderer.SupportResolutions.getBestResolution | ( | final Ratio | _ratio, |
final Vector2 | _default | ||
) |
boolean com.linxonline.mallet.renderer.SupportResolutions.loadSupportFile | ( | final String | _file | ) |