Back to Filament

Viewport

docs/android/dokka/filament-android/com.google.android.filament/-viewport/index.md

1.75.01.5 KB
Original Source

//filament-android/com.google.android.filament/Viewport

Viewport

open class Viewport

Specifies a rectangular region within a render target in terms of pixel coordinates.

The rectangle spans from (left,bottom) to (left+width-1, top+height-1), inclusive. Width and height must be non-negative.

See also

View

Constructors

Viewport[main]
constructor(left: Int, bottom: Int, width: Int, height: Int)

Properties

NameSummary
bottom[main]
open var bottom: Int
height[main]
open var height: Int
left[main]
open var left: Int
width[main]
open var width: Int