MORE MESSING AROUND

This commit is contained in:
Caleb Gardner
2025-01-11 13:16:58 -06:00
parent c8e0f08aae
commit 6e8d97f29b
4 changed files with 227 additions and 53 deletions
+12 -1
View File
@@ -1,6 +1,8 @@
package ui
import (
"time"
rl "github.com/gen2brain/raylib-go/raylib"
)
@@ -8,7 +10,7 @@ type Window struct{}
func Test() {
rl.InitWindow(800, 450, "raylib [core] example - basic window")
rl.SetWindowState(rl.FlagWindowResizable | rl.FlagWindowHighdpi)
rl.SetWindowState(rl.FlagWindowResizable | rl.FlagWindowHighdpi | rl.FlagVsyncHint)
rl.SetConfigFlags(rl.FlagMsaa4xHint)
defer rl.CloseWindow()
rl.Scalef(2, 2, 2)
@@ -20,9 +22,18 @@ func Test() {
tmpRect := NewRect(10, 10, 250, 500)
tmpRect.SetBorderRadius(25)
go func() {
for {
time.Sleep(5 * time.Second)
tmpRect.SetSize(200, 400)
time.Sleep(5 * time.Second)
tmpRect.SetSize(250, 500)
}
}()
// tmpRect.SetFillColor(rl.Green)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
rl.DrawFPS(0, 0)
rl.ClearBackground(rl.DarkGray)
// rl.DrawText("Congrats! You created your first window!", 190, 100, 20, rl.LightGray)