package hugin

  1. Overview
  2. Docs

Module Usdl.TextureSource

Sourcetype t = texture

The type for SDL textures.

Sourceval of_surface : renderer -> surface -> t

of_surface ren surf creates a texture from surf.

Raises Failure if texture creation fails.

Sourceval destroy : t -> unit

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