surface

package
v0.0.0-...-7296e18 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

A simple package meant to load sdl surfaces without sdl_image. This enables removing the sdl_image dependancy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

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

Load creates a *sdl.Surface from an image file. Make sure to call surface.Free() on any surface you load. This method will call an error if the file does not exist or cannot decode it (not an image)

Types

This section is empty.

Jump to

Keyboard shortcuts

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