SDL_image.h
changeset 4 b1bb33e907f8
parent 0 76be7dab668c
child 7 e1b6443ffb6b
equal deleted inserted replaced
3:242657bf16f3 4:b1bb33e907f8
    48 /* Convenience functions */
    48 /* Convenience functions */
    49 extern DECLSPEC SDL_Surface *IMG_Load(const char *file);
    49 extern DECLSPEC SDL_Surface *IMG_Load(const char *file);
    50 extern DECLSPEC SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
    50 extern DECLSPEC SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
    51 
    51 
    52 /* Invert the alpha of a surface for use with OpenGL
    52 /* Invert the alpha of a surface for use with OpenGL
    53    If you want to use a surface loaded with this library as an OpenGL texture,
    53    This function is now a no-op, and only provided for backwards compatibility.
    54    set invart_alpha to 1.  If you want to use it with SDL alpha blit routines,
    54 */
    55    set it to 0.
       
    56    This function returns the old alpha inversion value.
       
    57 
       
    58    Currently this is is only used by the PNG and TGA loaders.
       
    59  */
       
    60 extern DECLSPEC int IMG_InvertAlpha(int on);
    55 extern DECLSPEC int IMG_InvertAlpha(int on);
    61 
    56 
    62 /* Functions to detect a file type, given a seekable source */
    57 /* Functions to detect a file type, given a seekable source */
    63 extern DECLSPEC int IMG_isBMP(SDL_RWops *src);
    58 extern DECLSPEC int IMG_isBMP(SDL_RWops *src);
    64 extern DECLSPEC int IMG_isPPM(SDL_RWops *src);
    59 extern DECLSPEC int IMG_isPPM(SDL_RWops *src);