Vireo  0.0
Vireo 3D Rendering Hardware Interface
Viewport Struct Reference

Detailed Description

Floating-point viewport with depth range. Constructor: Viewport(width, height); Viewport(x, y, width, height).

Lua full name: vireo.Viewport

Properties

number x
 Left edge of the viewport in pixels.
 
number y
 Top edge of the viewport in pixels.
 
number width
 Viewport width in pixels.
 
number height
 Viewport height in pixels.
 
number min_depth
 Minimum depth value mapped to this viewport (default 0.0).
 
number max_depth
 Maximum depth value mapped to this viewport (default 1.0).
 

Property Documentation

number x

Left edge of the viewport in pixels.

number y

Top edge of the viewport in pixels.

number width

Viewport width in pixels.

number height

Viewport height in pixels.

number min_depth

Minimum depth value mapped to this viewport (default 0.0).

number max_depth

Maximum depth value mapped to this viewport (default 1.0).