public final class Resolution extends Object
width
and height
: represent the screen sizeratio
, which is computed by using the width
and height
, allows to know the
screen ratio.rate
: represents the screen refresh rate (in frames per seconds)This class is Thread-Safe.
Constructor and Description |
---|
Resolution(int width,
int height,
int rate)
Create a resolution.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Get the resolution height.
|
int |
getRate()
Get the display rate.
|
int |
getWidth()
Get the resolution width.
|
public Resolution(int width, int height, int rate)
width
- The resolution width (in pixel) (strictly positive).height
- The resolution height (in pixel) (strictly positive).rate
- The refresh rate (usually 50 or 60) (positive).LionEngineException
- If arguments are invalid.Copyright © 2016 Byron 3D Games Studio. All rights reserved.