img

package
v0.0.0-...-8a8ee70 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INIT_JPG  = 0x00000001
	INIT_PNG  = 0x00000002
	INIT_TIF  = 0x00000004
	INIT_WEBP = 0x00000008
)

Variables

This section is empty.

Functions

func IsWEBP

func IsWEBP(src *sdl.RWops) bool

func LoadTexture

func LoadTexture(renderer *sdl.Renderer, file string) (*sdl.Texture, error)

func LoadTexture_RW

func LoadTexture_RW(renderer *sdl.Renderer, src *sdl.RWops, freesrc bool) (*sdl.Texture, error)

func LoadTyped_RW

func LoadTyped_RW(src *sdl.RWops, freesrc bool, type_ string) (*sdl.Surface, error)

LoadTyped_RW (http://www.libsdl.org/projects/SDL_image/docs/SDL_image_13.html)

func LoadWEBP_RW

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

func SavePNG

func SavePNG(surface *sdl.Surface, file string) error

func SavePNG_RW

func SavePNG_RW(surface *sdl.Surface, dst *sdl.RWops, freedst int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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