Class Viewport


  • public class Viewport
    extends java.lang.Object
    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.setViewport(com.google.android.filament.Viewport)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int bottom  
      int height  
      int left  
      int width  
    • Constructor Summary

      Constructors 
      Constructor Description
      Viewport​(int left, int bottom, int width, int height)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • left

        public int left
      • bottom

        public int bottom
      • width

        @IntRange(from=0L)
        public int width
      • height

        @IntRange(from=0L)
        public int height
    • Constructor Detail

      • Viewport

        public Viewport​(int left,
                        int bottom,
                        @IntRange(from=0L)
                        int width,
                        @IntRange(from=0L)
                        int height)