llgo/c/raylib:tetris demo

This commit is contained in:
luoliwoshang
2024-06-25 18:55:33 +08:00
parent 57fa592a13
commit b2e54a0590
3 changed files with 379 additions and 0 deletions

View File

@@ -207,4 +207,9 @@ func UpdateCameraPro(camera *Camera, movement, rotation Vector3, zoom float32)
//go:linkname DrawRectangle C.DrawRectangle
func DrawRectangle(posX, posY, width, height c.Int, color Color)
// Draw text (using default font)
//
//go:linkname DrawText C.DrawText
func DrawText(text *c.Char, posX, posY, fontSize c.Int, color Color)
// -----------------------------------------------------------------------------