package vendor:sdl2/image

⌘K
Ctrl+K
or
/

    Types

    Animation ¶

    Animation :: struct {
    	w:      i32,
    	h:      i32,
    	count:  i32,
    	frames: [^]^sdl2.Surface,
    	delays: [^]i32,
    }
     

    Animated image support Currently only animated GIFs are supported.

    Related Procedures With Parameters
    Related Procedures With Returns

    InitFlag ¶

    InitFlag :: enum i32 {
    	JPG  = 0, 
    	PNG  = 1, 
    	TIF  = 2, 
    	WEBP = 3, 
    }

    InitFlags ¶

    InitFlags :: distinct bit_set[InitFlag; i32]
    Related Procedures With Parameters
    Related Constants

    bool ¶

    bool :: sdl2.bool

    Constants

    INIT_JPG ¶

    INIT_JPG :: InitFlags{.JPG}

    INIT_PNG ¶

    INIT_PNG :: InitFlags{.PNG}

    INIT_TIF ¶

    INIT_TIF :: InitFlags{.TIF}

    INIT_WEBP ¶

    INIT_WEBP :: InitFlags{.WEBP}

    MAJOR_VERSION ¶

    MAJOR_VERSION :: 2

    MINOR_VERSION ¶

    MINOR_VERSION :: 0

    PATCHLEVEL ¶

    PATCHLEVEL :: 5

    Variables

    This section is empty.

    Procedures

    FreeAnimation ¶

    FreeAnimation :: proc "c" (anim: ^Animation) ---

    Init ¶

    Init :: proc "c" (flags: InitFlags) -> InitFlags ---

    Linked_Version ¶

    Linked_Version :: proc "c" () -> ^sdl2.version ---

    Load ¶

    Load :: proc "c" (file: cstring) -> ^sdl2.Surface ---
     

    Convenience functions

    LoadAnimation ¶

    LoadAnimation :: proc "c" (file: cstring) -> ^Animation ---

    LoadAnimationTyped_RW ¶

    LoadAnimationTyped_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool, type: cstring) -> ^Animation ---

    LoadAnimation_RW ¶

    LoadAnimation_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool) -> ^Animation ---

    LoadBMP_RW ¶

    LoadBMP_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadCUR_RW ¶

    LoadCUR_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadGIFAnimation_RW ¶

    LoadGIFAnimation_RW :: proc "c" (src: ^sdl2.RWops) -> ^Animation ---
     

    Individual loading functions

    LoadGIF_RW ¶

    LoadGIF_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadICO_RW ¶

    LoadICO_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---
     

    Individual loading functions

    LoadJPG_RW ¶

    LoadJPG_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadLBM_RW ¶

    LoadLBM_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadPCX_RW ¶

    LoadPCX_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadPNG_RW ¶

    LoadPNG_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadPNM_RW ¶

    LoadPNM_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadSVG_RW ¶

    LoadSVG_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadTGA_RW ¶

    LoadTGA_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadTIF_RW ¶

    LoadTIF_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadTexture ¶

    LoadTexture :: proc "c" (renderer: ^sdl2.Renderer, file: cstring) -> ^sdl2.Texture ---
     

    Load an image directly into a render texture.

    LoadTextureTyped_RW ¶

    LoadTextureTyped_RW :: proc "c" (renderer: ^sdl2.Renderer, src: ^sdl2.RWops, freesrc: sdl2.bool, type: cstring) -> ^sdl2.Texture ---

    LoadTexture_RW ¶

    LoadTexture_RW :: proc "c" (renderer: ^sdl2.Renderer, src: ^sdl2.RWops, freesrc: sdl2.bool) -> ^sdl2.Texture ---

    LoadTyped_RW ¶

    LoadTyped_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool, type: cstring) -> ^sdl2.Surface ---
     

    Load an image from an SDL data source.

       The 'type' may be one of: "BMP", "GIF", "PNG", etc.
       If the image format supports a transparent pixel, SDL will set the
       colorkey for the surface.  You can enable RLE acceleration on the
       surface afterwards by calling:
        SDL_SetColorKey(image, SDL_RLEACCEL, image->format->colorkey);
    

    LoadWEBP_RW ¶

    LoadWEBP_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadXCF_RW ¶

    LoadXCF_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadXPM_RW ¶

    LoadXPM_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    LoadXV_RW ¶

    LoadXV_RW :: proc "c" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

    Load_RW ¶

    Load_RW :: proc "c" (src: ^sdl2.RWops, freesrc: sdl2.bool) -> ^sdl2.Surface ---

    Quit ¶

    Quit :: proc "c" () ---

    ReadXPMFromArray ¶

    ReadXPMFromArray :: proc "c" (xpm: [^]cstring) -> ^sdl2.Surface ---

    SaveJPG ¶

    SaveJPG :: proc "c" (surface: ^sdl2.Surface, file: cstring, quality: i32) -> i32 ---

    SaveJPG_RW ¶

    SaveJPG_RW :: proc "c" (surface: ^sdl2.Surface, dst: ^sdl2.RWops, freedst: sdl2.bool, quality: i32) -> i32 ---

    SavePNG ¶

    SavePNG :: proc "c" (surface: ^sdl2.Surface, file: cstring) -> i32 ---
     

    Individual saving functions

    SavePNG_RW ¶

    SavePNG_RW :: proc "c" (surface: ^sdl2.Surface, dst: ^sdl2.RWops, freedst: sdl2.bool) -> i32 ---

    isBMP ¶

    isBMP :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isCUR ¶

    isCUR :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isGIF ¶

    isGIF :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isICO ¶

    isICO :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---
     

    Functions to detect a file type, given a seekable source

    isJPG ¶

    isJPG :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isLBM ¶

    isLBM :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isPCX ¶

    isPCX :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isPNG ¶

    isPNG :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isPNM ¶

    isPNM :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isSVG ¶

    isSVG :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isTIF ¶

    isTIF :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isWEBP ¶

    isWEBP :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isXCF ¶

    isXCF :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isXPM ¶

    isXPM :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    isXV ¶

    isXV :: proc "c" (src: ^sdl2.RWops) -> sdl2.bool ---

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-06 21:12:14.503042600 +0000 UTC