package vendor:sdl2/image

Types

Animation ¶

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

Animated image support Currently only animated GIFs are supported.

InitFlag ¶

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

InitFlags ¶

InitFlags :: distinct bit_set[InitFlag; i32]

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 "cdecl" (anim: ^Animation) ---

Init ¶

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

Linked_Version ¶

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

LoadAnimationTyped_RW ¶

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

LoadAnimation_RW ¶

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

LoadAnimation ¶

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

LoadBMP_RW ¶

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

LoadCUR_RW ¶

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

LoadGIFAnimation_RW ¶

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

Individual loading functions

LoadGIF_RW ¶

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

LoadICO_RW ¶

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

Individual loading functions

LoadJPG_RW ¶

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

LoadLBM_RW ¶

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

Load ¶

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

Convenience functions

LoadPCX_RW ¶

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

LoadPNG_RW ¶

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

LoadPNM_RW ¶

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

LoadSVG_RW ¶

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

LoadTGA_RW ¶

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

LoadTIF_RW ¶

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

LoadTextureTyped_RW ¶

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

LoadTexture_RW ¶

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

LoadTexture ¶

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

Load an image directly into a render texture.

LoadTyped_RW ¶

LoadTyped_RW :: proc "cdecl" (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 "cdecl" (src: ^sdl2.RWops) -> ^sdl2.Surface ---

LoadXCF_RW ¶

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

LoadXPM_RW ¶

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

LoadXV_RW ¶

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

Load_RW ¶

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

Quit ¶

Quit :: proc "cdecl" () ---

ReadXPMFromArray ¶

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

SaveJPG_RW ¶

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

SaveJPG ¶

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

SavePNG ¶

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

Individual saving functions

SavePNG_RW ¶

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

isBMP ¶

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

isCUR ¶

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

isGIF ¶

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

isICO ¶

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

Functions to detect a file type, given a seekable source

isJPG ¶

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

isLBM ¶

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

isPCX ¶

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

isPNG ¶

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

isPNM ¶

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

isSVG ¶

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

isTIF ¶

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

isWEBP ¶

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

isXCF ¶

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

isXPM ¶

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

isXV ¶

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

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-07 (vendor "odin") Windows_amd64 @ 2022-07-01 21:08:58.954221600 +0000 UTC