hugin.usdl
Usdl.Surface
hugin
hugin.top
hugin.ucairo
type t = surface
The type for SDL surfaces.
val create_argb8888 : w:int -> h:int -> t
create_argb8888 ~w ~h is a 32-bit ARGB8888 surface.
create_argb8888 ~w ~h
Raises Failure if allocation fails.
Failure
val pitch : t -> int
pitch t is the byte length of one row.
pitch t
val pixels : t -> (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
pixels t is the raw pixel buffer. The bigarray is a view onto SDL-managed memory; it must not outlive the surface.
pixels t
val destroy : t -> unit
destroy t frees the surface. Safe to call more than once.
destroy t