Update examples

This commit is contained in:
JupiterRider 2023-04-13 20:48:50 +02:00
parent a62b332ffc
commit 363905fef0
17 changed files with 27 additions and 114 deletions

View file

@ -3,7 +3,7 @@ package main
import (
//"fmt"
"github.com/gen2brain/raylib-go/raylib"
rl "github.com/gen2brain/raylib-go/raylib"
)
func main() {
@ -30,14 +30,12 @@ func main() {
rl.UnloadImage(image) // Unload heightmap image from RAM, already uploaded to VRAM
rl.SetCameraMode(camera, rl.CameraOrbital) // Set an orbital camera mode
rl.SetTargetFPS(60)
for !rl.WindowShouldClose() {
// Update
rl.UpdateCamera(&camera) // Update camera
rl.UpdateCamera(&camera, rl.CameraOrbital) // Update camera with orbital camera mode
// Draw