summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2020-03-30[cppcheck] Fix minor warnings in models.c and raudio.c (#1162)Dani Martin
Errores fixes: models.c,2843 Either the condition 'fileData!=NULL' is redundant or there is possible null pointer dereference: fileData. raudio.c,805, 806, 807, 808, %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
2020-03-27[models] Review TRACELOG() messages, categorizedraysan5
2020-03-24Support mtl loading by tinyobj_parse_obj() #1134raysan5
I don't like this solution but well... let's use it for the moment...
2020-03-24GenMeshHeightmap flat shading normals (#1140)Ádám Dóda
2020-03-17Replace external libraries custom allocators by raylib ones #1074raysan5
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
2020-02-28Replaced fabs() by fabsf() when requiredRay
2020-02-26Remove trail spacesRay
2020-02-22Expand GLTF Model support (#1108)Tyler Jessilynn Bezera
* Update GLTF support to include loading color for albdeo (saved in the color value of the materialmap), support occlussion and emmission maps.. as well as some quality of life updates. * clean up to use single image
2020-02-10Minor tweaksraysan5
2020-02-09REVIEWED: GenMeshCylinder(), solved issue #1088raysan5
2020-02-04Added func used in commentsRay
2020-02-04Review libc dependencies and remove when possibleRay
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions: - stdlib.h: primary dependency is for malloc() and free() - stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI? - string.h: just around 8 functions required - math.h: just around 8 functions required - others: 1-2 functions required for some other headers
2020-02-03Remove all trail spacesRay
2020-02-03Replace TraceLog() function by TRACELOG macroRay
Added SUPPORT_TRACELOG_DEBUG config
2020-01-29ADDED: DrawPoint3D()Ray
2020-01-28Some tweaksRay
2020-01-26Minor tweaksRay
2020-01-24Minor tweaks to avoid warningsRay
2020-01-23WARNING: Renamed Vector3Multiply() to Vector3Scale()Ray
Renamed for consistency with Vecto2Scale() Also renamed Vector3MultiplyV() to Vector3Multiply()
2020-01-17 Fix compilation when the SUPPORT_MESH_GENERATION feature is not supported ↵Victor Gallet
(previously, the loadModel function was using the GenMeshCube texture, if no model founded, to generate a default cube mesh (#1075)
2020-01-05Update year to 2020raysan5
2019-12-29Normals was not correctly updated when using animated meshes (#1052)las3rlars
* Normal vbo not correctly updated
2019-12-11Small code tweak to avoid warningRay
2019-12-01Minor comments tweakRay
2019-11-22DrawPoint3D(): PR reviewRay
2019-11-22Add DrawPoint3D() function to models.c (#1019)Eric J
Uses fewer vertexes than using DrawCube() or DrawSphere() for points. The small line is on analogy to the code for DrawPoint() in shapes.c.
2019-10-29fix various problems, thanks CppCheck :) (#1005)João Coelho
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-23mem leak in gltf loader (#995)chriscamacho
2019-10-22Corrected issue #992Ray
2019-10-21Review latest PRRay
2019-10-21Add multi texture support for materials in GLTF format (#979)Tyler Jessilynn Bezera
* Initial commit of addition for GLTF materials.. should support loading more than just albedo map. * Clean up * fixed seg faults and leaks * temp don't overwrite defuse colour when rendering * undid something dumb! * correctly mixed diffuse map color when rendering to preserve not overwrite it
2019-10-03Check whether parsing mtl file was succesful (#982)Michael Vetter
2019-10-03Check whether GLTF was loaded correctly (#981)Michael Vetter
2019-09-22Review PR and commentsRay
2019-09-19Review PR formattingRay
2019-09-19fixs issue mem leak with LoadModel / OBJ and issue with -1 material index (#969)chriscamacho
2019-09-13fixed some memory leaks, still issue with material index allocation leaking ↵chriscamacho
4 bytes (possibly double allocation) (#964)
2019-09-12Comment tweakRay
2019-08-27UpdateModelAnimation() - Added security checkraysan5
2019-08-27Review models loading, memory initializationraysan5
2019-08-27Review all RL_CALLOC() callsraysan5
All data should be properly initialized by now
2019-08-19Reviewed issue #943Ray
2019-08-19Fix uninitialized vboId in GenMeshHeightmap (#949)Oraoto
2019-08-08Reviewed commentraysan5
2019-08-08fixed xmloader bug, user must free model shaders and textures as they might ↵chriscamacho
be shared (#933)
2019-08-07WARNING: Redesigned structsRay
- Mesh, Shader, Material structs have been reviewed to minimize size when passed by value, all required code has been reviewed. - GetCollisionRayModel() reviewed to avoid pointer, not required because model is not modified inside the function - UnloadMesh() reviewed, pointer not required - CheckCollisionRay*() parameters name reviewed
2019-08-06Fix memory leak in LoadGLTF() (#929)Michael Vetter
Free texturePath in LoadGLTF()
2019-08-06Fix loading multiple animations from .iqm file (#928)culacant
* Fix loading multiple animations from .iqm file * Fix memory leak in models_animation example * Added export instructions to the animation example * use raylib free * include <stdlib.h> to appease the travis CI gods * replace tabs with spaces
2019-08-03Replace tabs with spaces and update year of copyright notices (#927)Leandro Gabriel
* Update year of copyright notices * Fix mistake in comment * Fix typo ("algorythms") * Replace tabs with spaces * Remove trailing whitespace and fix mistake in comment * Fix ExportImageAsCode missing comment rectangle corner * Replace tab with spaces * Replace tabs with spaces
2019-07-28Replace tabs by spacesraysan5