1
0
Fork 0

Initial commit

This commit is contained in:
Henrik Hautakoski 2025-09-14 08:38:30 +02:00
commit 0245a5cb43
22 changed files with 610 additions and 0 deletions

24
engine/render/context.go Normal file
View file

@ -0,0 +1,24 @@
package render
import (
gfxfont "tetris/engine/graphics/font"
rl "github.com/gen2brain/raylib-go/raylib"
)
var (
texture rl.Texture2D
font *gfxfont.TileFont = nil
)
func SetTexture(tex rl.Texture2D) {
texture = tex
}
func GetTexture() rl.Texture2D {
return texture
}
func SetFont(fnt *gfxfont.TileFont) {
font = fnt
}