mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	Removed useless spaces
This commit is contained in:
		| @@ -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); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 raysan5
					raysan5