counter screen and interval checking in main.go

This commit is contained in:
cuu
2018-12-06 16:05:26 +08:00
parent d596d71cbb
commit 47ff78e11d
14 changed files with 501 additions and 30 deletions

35
sysgo/UI/fullscreen.go Normal file
View File

@@ -0,0 +1,35 @@
package UI
import (
"github.com/cuu/gogame/surface"
)
type FullScreen struct {
Widget
CanvasHWND *sdl.Surface
HWND *sdl.Surface
}
func NewFullScreen() *FullScreen {
p := &FullScreen{}
return p
}
func (self *FullScreen) SwapAndShow() {
if self.HWND !=nil {
rect_ := rect.Rect(self.PosX,self.PosY,self.Width,self.Height)
surface.Blit(self.HWND,self.CanvasHWND,&rect_,nil)
SwapAndShow()
}
}
func (self *FullScreen) Draw() {
}