Module Genimg_loader


module Genimg_loader: sig .. end
Generic image loader


This module uses the ImageMagick library, which can read a lot of different images file formats. The complete list of these is available on this web-page.

If the image to load is known to be a jpeg or a png, you should use the specialised modules Jpeg_loader, Png_loader and Svg_loader instead which will be far more efficient.

val load_img : GL.img_input ->
GL.image_data * int * int * GL.InternalFormat.internal_format *
GL.pixel_data_format

The 2 additionnal integers are the width and height