소스 검색

next is image and ttf fonts

cuu 6 년 전
부모
커밋
a26e36033b
3개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      gogame/draw/draw.go
  2. BIN
      test
  3. 3 0
      test.go

+ 1 - 2
gogame/draw/draw.go

@@ -1,7 +1,7 @@
 package draw
 
 import (
-	"fmt"
+//	"fmt"
 //	"math"
 	"github.com/veandco/go-sdl2/sdl"
 	"github.com/veandco/go-sdl2/gfx"
@@ -13,7 +13,6 @@ import (
 
 func _aa_render_region(image *sdl.Renderer, _rect *sdl.Rect, col color.Color, rad int) {
 	corners := rect.Inflate(_rect,-2*rad-1, -2*rad-1)
-	fmt.Println(_rect, corners)
 	topleft := []int{ int(corners.X),int(corners.Y)}
 	topright := []int{int(corners.X+corners.W-1), int(corners.Y)}
 	bottomleft := []int{int(corners.X),  int(corners.Y+corners.H-1)}

BIN
test


+ 3 - 0
test.go

@@ -44,6 +44,9 @@ func run() int {
 
 	rect2 := rect.Rect(3,120,200,30)
 	draw.AARoundRect(screen,&rect2,color.Color{0,213,222,255},10,0, color.Color{0,213,222,255})
+
+
+	// image and ttf fonts
 	
 	display.Flip()