mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
counter screen and interval checking in main.go
This commit is contained in:
35
sysgo/UI/fullscreen.go
Normal file
35
sysgo/UI/fullscreen.go
Normal 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() {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user