diff options
| author | Ray <[email protected]> | 2017-04-01 00:51:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-04-01 00:51:31 +0200 |
| commit | e6ed85e993b049a28dcc3c37bd5fadc6ab159df7 (patch) | |
| tree | c0baef923b5c60128e7fc76d50eb85982e1ba725 /docs/examples/web/models_billboard.c | |
| parent | 0a33fbf8bb3b774cdd78a0c2f4373436e0edb600 (diff) | |
| download | raylib-e6ed85e993b049a28dcc3c37bd5fadc6ab159df7.tar.gz raylib-e6ed85e993b049a28dcc3c37bd5fadc6ab159df7.zip | |
Update web examples -WORK IN PROGRESS-
Diffstat (limited to 'docs/examples/web/models_billboard.c')
| -rw-r--r-- | docs/examples/web/models_billboard.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/examples/web/models_billboard.c b/docs/examples/web/models_billboard.c index 5fd60ef7..700cd9fe 100644 --- a/docs/examples/web/models_billboard.c +++ b/docs/examples/web/models_billboard.c @@ -41,11 +41,9 @@ int main() //-------------------------------------------------------------------------------------- InitWindow(screenWidth, screenHeight, "raylib [models] example - drawing billboards"); - bill = LoadTexture("resources/billboard.png"); // Our texture billboard + bill = LoadTexture("resources/billboard.png"); // Our texture billboard - SetCameraMode(CAMERA_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 + SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode #if defined(PLATFORM_WEB) emscripten_set_main_loop(UpdateDrawFrame, 0, 1); |
