hugin.usdl
Usdl.Renderer
hugin
hugin.top
hugin.ucairo
type t = renderer
The type for SDL renderers.
val create : Window.t -> t
create win is a hardware-accelerated, vsync-enabled renderer for win.
create win
win
Raises Failure if renderer creation fails.
Failure
val output_size : t -> int * int
output_size t is (w, h) in pixels (accounting for high-DPI scaling).
output_size t
(w, h)
Raises Failure if the query fails.
val clear : t -> unit
clear t clears the render target.
clear t
val copy : t -> texture -> unit
copy t tex copies tex to the entire render target.
copy t tex
tex
val present : t -> unit
present t presents the composed backbuffer.
present t
val destroy : t -> unit
destroy t frees the renderer. Safe to call more than once.
destroy t