first commit

This commit is contained in:
cuu
2018-06-05 23:56:48 +08:00
commit 26f18da0d8
11 changed files with 989 additions and 0 deletions

16
gogame/surface/surface.go Normal file
View File

@@ -0,0 +1,16 @@
package surface
import (
"github.com/veandco/go-sdl2/sdl"
)
func FillRect(surface *sdl.Surface,rect *sdl.Rect, color uint32) {
sdl.Do(func() {
surface.FillRect(rect,color)
})
return
}