diff options
| author | Kim Kulling <[email protected]> | 2018-08-04 10:32:16 +0200 |
|---|---|---|
| committer | Kim Kulling <[email protected]> | 2018-08-04 10:32:16 +0200 |
| commit | ecf8bff4aa8b13357398e42243d1b00fd114c579 (patch) | |
| tree | c0283562db86abf79a7018e87163a3cbdba40d1e /src/models.c | |
| parent | d999e5a016446c74bfb2c2b55febcf89fa46e527 (diff) | |
| download | raylib-ecf8bff4aa8b13357398e42243d1b00fd114c579.tar.gz raylib-ecf8bff4aa8b13357398e42243d1b00fd114c579.zip | |
Fix compiler warnings, first part
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/models.c b/src/models.c index b389333b..b1abe66d 100644 --- a/src/models.c +++ b/src/models.c @@ -1771,7 +1771,7 @@ void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float // Draw a billboard void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size, Color tint) { - Rectangle sourceRec = { 0, 0, texture.width, texture.height }; + Rectangle sourceRec = { 0.0f, 0.0f, (float)texture.width, (float)texture.height }; DrawBillboardRec(camera, texture, sourceRec, center, size, tint); } @@ -1837,9 +1837,9 @@ void DrawBoundingBox(BoundingBox box, Color color) { Vector3 size; - size.x = fabs(box.max.x - box.min.x); - size.y = fabs(box.max.y - box.min.y); - size.z = fabs(box.max.z - box.min.z); + size.x = (float)fabs(box.max.x - box.min.x); + size.y = (float)fabs(box.max.y - box.min.y); + size.z = (float)fabs(box.max.z - box.min.z); Vector3 center = { box.min.x + size.x/2.0f, box.min.y + size.y/2.0f, box.min.z + size.z/2.0f }; @@ -2206,9 +2206,9 @@ void MeshBinormals(Mesh *mesh) Vector3 tangent = { mesh->tangents[i*4 + 0], mesh->tangents[i*4 + 1], mesh->tangents[i*4 + 2] }; float tangentW = mesh->tangents[i*4 + 3]; - Vector3 binormal = Vector3Multiply(Vector3CrossProduct(normal, tangent), tangentW); // TODO: Register computed binormal in mesh->binormal ? + // Vector3 binormal = Vector3Multiply( Vector3CrossProduct( normal, tangent ), tangentW ); } } |
