Removed useless spaces

This commit is contained in:
raysan5 2015-02-02 00:53:49 +01:00
parent dc52c8f769
commit b9e53cd135
6 changed files with 60 additions and 56 deletions

View File

@ -1150,11 +1150,13 @@ void UnloadModel(Model model)
rlDeleteBuffers(model.vboId[2]); rlDeleteBuffers(model.vboId[2]);
rlDeleteVertexArrays(model.vaoId); rlDeleteVertexArrays(model.vaoId);
rlDeleteTextures(model.textureId);
rlDeleteShader(model.shaderId);
} }
void SetModelTexture(Model *model, Texture2D texture) void SetModelTexture(Model *model, Texture2D texture)
{ {
if (texture.id <= 0) model->textureId = 1; // Default white texture (use mesh color) if (texture.id <= 0) model->textureId = whiteTexture; // Default white texture (use mesh color)
else model->textureId = texture.id; else model->textureId = texture.id;
} }
@ -1170,6 +1172,8 @@ void DrawModel(Model model, Vector3 position, float scale, Color tint)
// Draw a model with extended parameters // Draw a model with extended parameters
void DrawModelEx(Model model, Vector3 position, Vector3 rotation, Vector3 scale, Color tint) void DrawModelEx(Model model, Vector3 position, Vector3 rotation, Vector3 scale, Color tint)
{ {
// NOTE: Rotation must be provided in degrees, it's converted to radians inside rlglDrawModel()
rlglDrawModel(model, position, rotation, scale, tint, false); rlglDrawModel(model, position, rotation, scale, tint, false);
} }