summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2020-05-08Fix materials loading for IQM models (#1227)sikor666
2020-05-07ADDED: DrawTriangle3D() and DrawTriangleStrip3D()raysan5
Those functions could be very useful for custom triangle data drawing, using internal batch system.
2020-05-06Avoid all MSVC compile warningsraysan5
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons. Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only. Some external libraries still generate warnings.
2020-05-01Review exposed #defines and allow user re-definingraysan5
There are multiple #define values around raylib, usually not exposed for redefinition, just reviewed all of them to allow users redefining them on compile time if required. Also, multiple #define have been renamed and commented.
2020-04-30Review LoadGLTF() to read from memory bufferraysan5
2020-04-10WARNING: API BREAK: Removed LoadImagePro()raysan5
Actually this function is useless and potentially dangerous, internally, a shallow copy of data was done. Same could be accomplished accesing image.data directly.
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