public class GLViewport extends Viewport
| Modifier and Type | Class and Description |
|---|---|
static class |
GLViewport.Position |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
changed |
GLMatrix |
mvp
For temporary use, to setup MVP-Matrix
|
float[] |
plane
Do not modify!
|
MapPosition |
pos |
GLMatrix |
proj
Do not modify!
|
GLMatrix |
view
Do not modify!
|
GLMatrix |
viewproj
Do not modify!
|
MAX_TILT, MAX_ZOOM_LEVEL, mHeight, MIN_TILT, MIN_ZOOM_LEVEL, mMaxBearing, mMaxRoll, mMaxScale, mMaxTilt, mMaxX, mMaxY, mMinBearing, mMinRoll, mMinScale, mMinTilt, mMinX, mMinY, mMovePoint, mPos, mProjMatrix, mProjMatrixInverse, mProjMatrixUnscaled, mRotationMatrix, mTmpMatrix, mu, mUnprojMatrix, mv, mViewCoords, mViewMatrix, mViewProjMatrix, mWidth, VIEW_DISTANCE, VIEW_FAR, VIEW_NEAR, VIEW_SCALE| Constructor and Description |
|---|
GLViewport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changed() |
float |
getHeight() |
float |
getWidth() |
void |
useScreenCoordinates(boolean center,
float scale)
Set MVP so that coordinates are in screen pixel coordinates with 0,0
being center
|
void |
useScreenCoordinates(int width,
int height,
GLViewport.Position position,
float xOffset,
float yOffset,
float scale)
Set MVP so that coordinates are in screen pixel coordinates with 0,0
being center
|
copy, fromScreenPoint, fromScreenPoint, getBBox, getMapExtents, getMapLimit, getMapPosition, getMaxBearing, getMaxRoll, getMaxScale, getMaxTilt, getMaxX, getMaxY, getMaxZoomLevel, getMinBearing, getMinRoll, getMinScale, getMinTilt, getMinX, getMinY, getMinZoomLevel, limitPosition, limitScale, limitTilt, setMapLimit, setMapLimit, setMaxBearing, setMaxRoll, setMaxScale, setMaxTilt, setMaxX, setMaxY, setMaxZoomLevel, setMinBearing, setMinRoll, setMinScale, setMinTilt, setMinX, setMinY, setMinZoomLevel, toScreenPoint, toScreenPoint, toScreenPoint, toScreenPoint, unproject, unprojectScreenpublic final GLMatrix viewproj
public final GLMatrix proj
public final GLMatrix view
public final float[] plane
public final GLMatrix mvp
public final MapPosition pos
protected boolean changed
public void useScreenCoordinates(boolean center,
float scale)
public void useScreenCoordinates(int width,
int height,
GLViewport.Position position,
float xOffset,
float yOffset,
float scale)
public boolean changed()
public float getWidth()
public float getHeight()