Viewport: doc for height and width
This commit is contained in:
parent
a3cdace8d2
commit
a0c7a70e00
@ -80,6 +80,9 @@ public class Viewport {
|
|||||||
protected final float[] mu = new float[4];
|
protected final float[] mu = new float[4];
|
||||||
protected final float[] mViewCoords = new float[8];
|
protected final float[] mViewCoords = new float[8];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Height and width in pixels
|
||||||
|
*/
|
||||||
protected float mHeight, mWidth;
|
protected float mHeight, mWidth;
|
||||||
|
|
||||||
public static final float VIEW_DISTANCE = 3.0f;
|
public static final float VIEW_DISTANCE = 3.0f;
|
||||||
|
@ -128,10 +128,16 @@ public class GLViewport extends Viewport {
|
|||||||
getMapExtents(plane, 0);
|
getMapExtents(plane, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return width in pixels
|
||||||
|
*/
|
||||||
public float getWidth() {
|
public float getWidth() {
|
||||||
return mWidth;
|
return mWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return height in pixels
|
||||||
|
*/
|
||||||
public float getHeight() {
|
public float getHeight() {
|
||||||
return mHeight;
|
return mHeight;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user