img

package
v0.0.0-...-9a9b71d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2014 License: Zlib Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MAJOR_VERSION = C.SDL_IMAGE_MAJOR_VERSION
	MINOR_VERSION = C.SDL_IMAGE_MINOR_VERSION
	PATCHLEVEL    = C.SDL_IMAGE_PATCHLEVEL
)

Variables

This section is empty.

Functions

func Init

func Init(flags InitFlags) error

func IsBMP

func IsBMP(rw *sdl.RWops) bool

func IsCUR

func IsCUR(rw *sdl.RWops) bool

func IsGIF

func IsGIF(rw *sdl.RWops) bool

func IsICO

func IsICO(rw *sdl.RWops) bool

func IsJPG

func IsJPG(rw *sdl.RWops) bool

func IsLBM

func IsLBM(rw *sdl.RWops) bool

func IsPCX

func IsPCX(rw *sdl.RWops) bool

func IsPNG

func IsPNG(rw *sdl.RWops) bool

func IsPNM

func IsPNM(rw *sdl.RWops) bool

func IsTIF

func IsTIF(rw *sdl.RWops) bool

func IsWEBP

func IsWEBP(rw *sdl.RWops) bool

func IsXCF

func IsXCF(rw *sdl.RWops) bool

func IsXPM

func IsXPM(rw *sdl.RWops) bool

func IsXV

func IsXV(rw *sdl.RWops) bool

func Linked_Version

func Linked_Version() *sdl.Version

func Load

func Load(name string) (*sdl.Surface, error)

func LoadBMP_RW

func LoadBMP_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadCUR_RW

func LoadCUR_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadGIF_RW

func LoadGIF_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadICO_RW

func LoadICO_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadJPG_RW

func LoadJPG_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadLBM_RW

func LoadLBM_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadPCX_RW

func LoadPCX_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadPNG_RW

func LoadPNG_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadPNM_RW

func LoadPNM_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadTGA_RW

func LoadTGA_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadTIF_RW

func LoadTIF_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadTexture

func LoadTexture(r *sdl.Renderer, name string) (*sdl.Texture, error)

func LoadTextureTyped_RW

func LoadTextureTyped_RW(r *sdl.Renderer, rw *sdl.RWops, freesrc bool, t string) (*sdl.Texture, error)

func LoadTexture_RW

func LoadTexture_RW(r *sdl.Renderer, rw *sdl.RWops, freesrc bool) (*sdl.Texture, error)

func LoadTyped_RW

func LoadTyped_RW(rw *sdl.RWops, freesrc bool, t string) (*sdl.Surface, error)

func LoadWEBP_RW

func LoadWEBP_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadXCF_RW

func LoadXCF_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadXPM_RW

func LoadXPM_RW(rw *sdl.RWops) (*sdl.Surface, error)

func LoadXV_RW

func LoadXV_RW(rw *sdl.RWops) (*sdl.Surface, error)

func Load_RW

func Load_RW(rw *sdl.RWops, freesrc bool) (*sdl.Surface, error)

func Quit

func Quit()

func VERSION

func VERSION() *sdl.Version

Types

type InitFlags

type InitFlags C.IMG_InitFlags
const (
	INIT_JPG  InitFlags = C.IMG_INIT_JPG
	INIT_PNG  InitFlags = C.IMG_INIT_PNG
	INIT_TIF  InitFlags = C.IMG_INIT_TIF
	INIT_WEBP InitFlags = C.IMG_INIT_WEBP
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL