mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 19:02:58 +01:00
first commit
This commit is contained in:
16
gogame/surface/surface.go
Normal file
16
gogame/surface/surface.go
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user