Improve and optimization

This commit is contained in:
2024-07-18 22:59:03 +08:00
parent 1610584ce4
commit 1b3a9833eb
9 changed files with 110 additions and 53 deletions

View File

@@ -0,0 +1,10 @@
package renderer
import (
"github.com/veandco/go-sdl2/gfx"
"github.com/veandco/go-sdl2/sdl"
)
func FillRoundedRect(pen *sdl.Renderer, rect *sdl.Rect, color sdl.Color, radius int32) {
gfx.RoundedRectangleColor(pen, rect.X, rect.Y, rect.X+rect.W, rect.Y+rect.H, radius, color)
}