2 [CCode (cheader_filename = "SDL_image.h")]
6 [CCode (cname = "int", cprefix = "IMG_INIT_")]
7 public enum InitFlags {
15 [CCode (cname = "IMG_Linked_Version")]
16 public static unowned SDL.Version linked();
18 [CCode (cname = "IMG_Init")]
19 public static int init(int flags);
21 [CCode (cname = "IMG_Quit")]
22 public static void quit();
26 [CCode (cname = "IMG_Load")]
27 public static SDL.Surface? load(string file);
29 [CCode (cname = "IMG_Load_RW")]
30 public static SDL.Surface? load_rw(SDL.RWops src, bool freesrc = false);
32 [CCode (cname = "IMG_LoadTyped_RW")]
33 public static SDL.Surface? load_rw_typed(SDL.RWops src, bool freesrc = false, string type);
35 [CCode (cname = "IMG_LoadCUR_RW")]
36 public static SDL.Surface? load_cur(SDL.RWops src);
38 [CCode (cname = "IMG_LoadICO_RW")]
39 public static SDL.Surface? load_ico(SDL.RWops src);
41 [CCode (cname = "IMG_LoadBMP_RW")]
42 public static SDL.Surface? load_bmp(SDL.RWops src);
44 [CCode (cname = "IMG_LoadPNM_RW")]
45 public static SDL.Surface? load_pnm(SDL.RWops src);
47 [CCode (cname = "IMG_LoadXPM_RW")]
48 public static SDL.Surface? load_xpm(SDL.RWops src);
50 [CCode (cname = "IMG_LoadXCF_RW")]
51 public static SDL.Surface? load_xcf(SDL.RWops src);
53 [CCode (cname = "IMG_LoadPCX_RW")]
54 public static SDL.Surface? load_pcx(SDL.RWops src);
56 [CCode (cname = "IMG_LoadGIF_RW")]
57 public static SDL.Surface? load_gif(SDL.RWops src);
59 [CCode (cname = "IMG_LoadJPG_RW")]
60 public static SDL.Surface? load_jpg(SDL.RWops src);
62 [CCode (cname = "IMG_LoadTIF_RW")]
63 public static SDL.Surface? load_tif(SDL.RWops src);
65 [CCode (cname = "IMG_LoadPNG_RW")]
66 public static SDL.Surface? load_png(SDL.RWops src);
68 [CCode (cname = "IMG_LoadTGA_RW")]
69 public static SDL.Surface? load_tga(SDL.RWops src);
71 [CCode (cname = "IMG_LoadLBM_RW")]
72 public static SDL.Surface? load_lbm(SDL.RWops src);
74 [CCode (cname = "IMG_LoadXV_RW")]
75 public static SDL.Surface? load_xv(SDL.RWops src);
77 [CCode (cname = "IMG_ReadXPMFromArray")]
78 public static SDL.Surface? read_xpm(char** xpmdata);
82 [CCode (cname = "IMG_isCUR")]
83 public static bool is_cur(SDL.RWops src);
85 [CCode (cname = "IMG_isICO")]
86 public static bool is_ico(SDL.RWops src);
88 [CCode (cname = "IMG_isBMP")]
89 public static bool is_bmp(SDL.RWops src);
91 [CCode (cname = "IMG_isPNM")]
92 public static bool is_pnm(SDL.RWops src);
94 [CCode (cname = "IMG_isXPM")]
95 public static bool is_xpm(SDL.RWops src);
97 [CCode (cname = "IMG_isXCF")]
98 public static bool is_xcf(SDL.RWops src);
100 [CCode (cname = "IMG_isPCX")]
101 public static bool is_pcx(SDL.RWops src);
103 [CCode (cname = "IMG_isGIF")]
104 public static bool is_gif(SDL.RWops src);
106 [CCode (cname = "IMG_isJPG")]
107 public static bool is_jpg(SDL.RWops src);
109 [CCode (cname = "IMG_isTIF")]
110 public static bool is_tif(SDL.RWops src);
112 [CCode (cname = "IMG_isPNG")]
113 public static bool is_png(SDL.RWops src);
115 [CCode (cname = "IMG_isLBM")]
116 public static bool is_lbm(SDL.RWops src);
118 [CCode (cname = "IMG_isXV")]
119 public static bool is_xv(SDL.RWops src);
123 [CCode (cname="IMG_SetError")]
124 public static void set_error(string format, ...);
126 [CCode (cname="IMG_GetError")]
127 public static unowned string get_error();