aboutsummaryrefslogtreecommitdiff
path: root/examples/models_billboard.lua
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-08-06 17:09:57 +0200
committerGitHub <noreply@github.com>2016-08-06 17:09:57 +0200
commit7f9513fbf41e9d340307fc0f9aeed8e5f4293a96 (patch)
tree197829790c7dd766f2b5f44df6e5b64d895b73e4 /examples/models_billboard.lua
parent3b80e2c1e03e0f87d50ca8876b50a11c7df1f56f (diff)
parent4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (diff)
downloadraylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.tar.gz
raylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.zip
Merge pull request #173 from ghassanpl/develop
Fixes for some Lua bugs
Diffstat (limited to 'examples/models_billboard.lua')
-rw-r--r--examples/models_billboard.lua8
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()