Update examples
This commit is contained in:
parent
6e090424c5
commit
8e21086fe1
4 changed files with 11 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/gen2brain/raylib-go/raylib"
|
||||
rl "github.com/gen2brain/raylib-go/raylib"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -11,8 +11,7 @@ func main() {
|
|||
rl.InitWindow(screenWidth, screenHeight, "raylib [textures] example - image text drawing")
|
||||
|
||||
// TTF Font loading with custom generation parameters
|
||||
var fontChars int32
|
||||
font := rl.LoadFontEx("fonts/KAISG.ttf", 64, &fontChars, 0)
|
||||
font := rl.LoadFontEx("fonts/KAISG.ttf", 64, nil)
|
||||
|
||||
parrots := rl.LoadImage("parrots.png") // Load image in CPU memory (RAM)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue