module Texture: sig .. end
Load OpenGL textures from image files.
exception Invalid_surface_format of string * int
Invalid_surface_format (message,surface_bpp) is thrown by
surface_to_texture if the surface's bits-per-pixel isn't
supported.
val surface_to_raw : Sdlvideo.surface -> [< Raw.kind > `ubyte ] Raw.t
Convert an SDL surface into a GL Raw so it can be loaded into
a GL texture.
val surface_to_texture : ?texture:GlTex.texture_id -> Sdlvideo.surface -> GlTex.texture_id
Loads a surface into a GlTex.texture_id. The surface
must be in 24bit RGB or 32bit RGBA format.
val load_gl_texture : string -> GlTex.texture_id
Loads an image file into a GlTex.texture_id. The image must be
in 24bit RGB or 32bit RGBA format.