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 /src/models.c | |
| 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 'src/models.c')
| -rw-r--r-- | src/models.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/models.c b/src/models.c index 8deabcb0..a4bcde8f 100644 --- a/src/models.c +++ b/src/models.c @@ -808,13 +808,6 @@ void UnloadMaterial(Material material) rlDeleteTextures(material.texSpecular.id); } -// Link a texture to a model -void SetModelTexture(Model *model, Texture2D texture) -{ - if (texture.id <= 0) model->material.texDiffuse = GetDefaultTexture(); // Use default white texture - else model->material.texDiffuse = texture; -} - // Generate a mesh from heightmap static Mesh GenMeshHeightmap(Image heightmap, Vector3 size) { |
