Update examples

This commit is contained in:
Milan Nikolic 2021-11-11 16:36:32 +01:00
parent 2013bc4628
commit 7b91ce25fb
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
8 changed files with 32 additions and 36 deletions

View file

@ -4,7 +4,7 @@ import (
"image/png"
"os"
"github.com/gen2brain/raylib-go/raylib"
rl "github.com/gen2brain/raylib-go/raylib"
)
func main() {
@ -35,7 +35,7 @@ func main() {
for !rl.WindowShouldClose() {
if rl.IsKeyPressed(rl.KeyS) {
rimg := rl.GetTextureData(texture)
rimg := rl.LoadImageFromTexture(texture)
f, err := os.Create("image_saved.png")
if err != nil {