diff options
| author | ghassanpl <kronikarz@gmail.com> | 2016-08-06 16:58:48 +0200 |
|---|---|---|
| committer | ghassanpl <kronikarz@gmail.com> | 2016-08-06 16:58:48 +0200 |
| commit | 4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (patch) | |
| tree | 88dfb074579589a5ea6eba92462bb44863d18798 /examples/models_billboard.lua | |
| parent | d5f5f0a9302435945b730e5ec001bda39741f3c7 (diff) | |
| download | raylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.tar.gz raylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.zip | |
Fixes for some Lua bugs
Diffstat (limited to 'examples/models_billboard.lua')
| -rw-r--r-- | examples/models_billboard.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/models_billboard.lua b/examples/models_billboard.lua index 22f3a6c3..25b00510 100644 --- a/examples/models_billboard.lua +++ b/examples/models_billboard.lua @@ -22,7 +22,7 @@ local camera = Camera(Vector3(5.0, 4.0, 5.0), Vector3(0.0, 2.0, 0.0), Vector3(0. local bill = LoadTexture("resources/billboard.png") -- Our texture billboard local billPosition = Vector3(0.0, 2.0, 0.0) -- Position where draw billboard -SetCameraMode(CAMERA.ORBITAL) -- Set an orbital camera mode +SetCameraMode(CameraMode.ORBITAL) -- Set an orbital camera mode SetCameraPosition(camera.position) -- Set internal camera position to match our camera position SetCameraTarget(camera.target) -- Set internal camera target to match our camera target SetCameraFovy(camera.fovy) -- Set internal camera field-of-view Y @@ -34,7 +34,7 @@ SetTargetFPS(60) -- Set our game to run at 60 frames-per-secon while not WindowShouldClose() do -- Detect window close button or ESC key -- Update --------------------------------------------------------------------------------------- - UpdateCamera(&camera) -- Update internal camera and our camera + UpdateCamera(camera) -- Update internal camera and our camera --------------------------------------------------------------------------------------- -- Draw @@ -45,9 +45,9 @@ while not WindowShouldClose() do -- Detect window close button or ESC Begin3dMode(camera) - DrawBillboard(camera, bill, billPosition, 2.0f, WHITE) + DrawBillboard(camera, bill, billPosition, 2.0, WHITE) - DrawGrid(10, 1.0f) -- Draw a grid + DrawGrid(10, 1.0) -- Draw a grid End3dMode() |
