diff options
| author | raysan5 <raysan5@gmail.com> | 2016-06-24 19:49:36 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-06-24 19:49:36 +0200 |
| commit | 5f7ac64c44543383b10ec6a56e5ec1db5706276e (patch) | |
| tree | 5605c0dcad2432f84494deaa527012c5e26eedb4 /games | |
| parent | b358402cb39d2b06a69be28e64b086a0f44b42f1 (diff) | |
| download | raylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.tar.gz raylib-5f7ac64c44543383b10ec6a56e5ec1db5706276e.zip | |
Removed function SetModelTexture()
It's more educational to go through new material system, so, I decide to
remove this function to avoid students confusion...
Diffstat (limited to 'games')
| -rw-r--r-- | games/raylib_demo/raylib_demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/raylib_demo/raylib_demo.c b/games/raylib_demo/raylib_demo.c index 7f6f291a..22213b46 100644 --- a/games/raylib_demo/raylib_demo.c +++ b/games/raylib_demo/raylib_demo.c @@ -202,8 +202,8 @@ int main() camera = (Camera){{ 0.0, 12.0, 15.0 }, { 0.0, 3.0, 0.0 }, { 0.0, 1.0, 0.0 }}; catTexture = LoadTexture("resources/catsham.png"); // Load model texture - cat = LoadModel("resources/cat.obj"); // Load OBJ model - SetModelTexture(&cat, catTexture); + cat = LoadModel("resources/cat.obj"); // Load OBJ model + cat.material.texDiffuse = texture; // Set cat model diffuse texture fxWav = LoadSound("resources/audio/weird.wav"); // Load WAV audio file fxOgg = LoadSound("resources/audio/tanatana.ogg"); // Load OGG audio file |
