mirror of https://github.com/raysan5/raylib
Removed useless spaces
This commit is contained in:
parent
dc52c8f769
commit
b9e53cd135
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue