image

package
v0.0.0-...-dcd4c77 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2014 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package image provides access to popular image formats via SDL_image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

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

Load reads an image from a file.

func Quit

func Quit()

Quit unloads libraries loaded with Init.

Types

type InitFlag

type InitFlag uint32

An InitFlag represents a set of image libraries to load.

const (
	InitJPG  InitFlag = C.IMG_INIT_JPG
	InitPNG  InitFlag = C.IMG_INIT_PNG
	InitTIF  InitFlag = C.IMG_INIT_TIF
	InitWEBP InitFlag = C.IMG_INIT_WEBP
)

Initialization flags.

func Init

func Init(flags ...InitFlag) InitFlag

Init loads dynamic libraries. Multiple flags will be ORed together. Init returns the libraries succesfully initialized. It is not required to call Init before using other functions in this package.

Jump to

Keyboard shortcuts

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