remove unused file
This commit is contained in:
parent
e9f5793a5c
commit
60e8f19535
@ -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,
|
|
||||||
)
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user