Represents a viewport for a render target. A viewport is an area on the frame that is used for
rendering. The rest of the available area on the target will not be touched.
public class Viewport
Field Summary
| Modifier and Type | Field and Description |
|---|---|
protected | heightHolds viewport height. |
protected | widthHolds viewport width. |
Constructor Summary
| Modifier and Type | Constructor and Description |
|---|---|
public | Viewport(int width, int height) Creates a new viewport with given width and height. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public int | getHeight() Gets the frame height for this viewport. |
public int | getWidth() Gets the frame width in this viewport. |
Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait