Module OgamlGraphics.DrawParameter.Viewport

Viewports enumeration

This module consists of only one type enumerating different ways of providing a viewport

type t = Full | Relative of OgamlMath.FloatRect.t | Absolute of OgamlMath.IntRect.t
Type of a viewport

Possible values

Full window viewport (default)
Relative of OgamlMath.FloatRect.t
Viewport given as a fraction of the window's size
Absolute of OgamlMath.IntRect.t
Viewport given in pixels