package hugin

  1. Overview
  2. Docs

Module Usdl.RendererSource

The type for SDL renderers.

Sourceval create : Window.t -> t

create win is a hardware-accelerated, vsync-enabled renderer for win.

Raises Failure if renderer creation fails.

Sourceval output_size : t -> int * int

output_size t is (w, h) in pixels (accounting for high-DPI scaling).

Raises Failure if the query fails.

Sourceval clear : t -> unit

clear t clears the render target.

Sourceval copy : t -> texture -> unit

copy t tex copies tex to the entire render target.

Sourceval present : t -> unit

present t presents the composed backbuffer.

Sourceval destroy : t -> unit

destroy t frees the renderer. Safe to call more than once.