5. Images

Images are stored at application. They are stored as 32bpp images with alpha channel. Their usage is mainly for graphics expensive operations on client side.

typedef void MT_IMAGE;

MT_IMAGE *mt_image_new(int width, int height);
MT_IMAGE *mt_image_new_from_xpm(char **xpm_data);
MT_IMAGE *mt_image_copy(MT_IMAGE *img);
void      mt_image_destroy(MT_IMAGE *image);
void      mt_image_replace_color(MT_IMAGE *img, int r, int g, int b, MT_COLOR *col);
void      mt_image_set_pixel(MT_IMAGE *img, int x, int y, MT_COLOR *col);
void      mt_image_get_pixel(MT_IMAGE *img, int x, int y, MT_COLOR *col);
void      mt_image_fill(MT_IMAGE *img, MT_COLOR *col);
void      mt_image_get_size(MT_IMAGE *img, int *width, int *height);