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, you should use the module Jpeg_loader instead which will be far more efficient.

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

The 2 additionnal integers are the width and height