remove unused file

This commit is contained in:
Alex Yatskov 2018-12-31 13:42:26 -08:00
parent e9f5793a5c
commit 60e8f19535

View File

@ -1,22 +0,0 @@
package graphics
import (
"image/color"
"unsafe"
"github.com/veandco/go-sdl2/sdl"
)
func NewSurfaceFromRgba(colors []color.RGBA, width, height int) (*sdl.Surface, error) {
return sdl.CreateRGBSurfaceFrom(
unsafe.Pointer(&colors[0]),
int32(width),
int32(height),
32,
width*4,
0x000000ff,
0x0000ff00,
0x00ff0000,
0xff000000,
)
}