summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2020-12-24Replace TABS by 4 spacesraysan5
2020-12-23Remove trailing spacesraysan5
2020-12-19REVIEW: CheckCollisionSpheres() params namingRay
2020-12-19Avoid *Rec suffix in some variablesRay
Pefixing/Suffixing some data type identifier in the variables is not a convention used in raylib, just reviewed it for consistency... Still, I kept the *Rec suffix in some functions.
2020-12-14REVIEWED: DrawGrid(), issue with buffer limits check #1417Ray
2020-12-14Added some security checks on GenMesh*() #1454Ray
2020-12-14Add mesh collision function so we can check meshes directly instead of ↵Jeffery Myers
having to put them in a model. (#1459) Make model collision function call the mesh function.
2020-12-03Review commentRay
2020-12-01ADDED: UnloadModelKeepMeshes() #1441Ray
2020-12-01Review for issue #1446Ray
2020-11-30Fix typecast warnings in raylib code as reported by visual studio 2019 (#1443)Jeffery Myers
2020-11-22Exposing some file access results to user layer #1420Ray
2020-11-21Reverted to previous working version #1434Ray
2020-11-17Update to latest tiniobjloaderRay
WARNING: OBJ loading is broken at this point...
2020-11-15Updated tinyobjloaderraysan5
2020-11-03Remove trailing spacesRay
2020-10-08allow for multiple materials in obj files (#1408)chriscamacho
* allow for multiple materials in obj files also fix obj_loader hash map issues * minor fix for warning Co-authored-by: codifies <[email protected]>
2020-09-18WARNING: REDESIGN of rlgl framebuffers API #721raysan5
This redesign allows more flexibility when creating RenderTexture and a simplification (and hopefully removal) of `GenTexture*()` functions, that should not belong to this model but the user code, due to the use of custom shaders. Also, this new API opens the door for a possible GBuffers type and advance rendering possibilities... Some functions of the API have been also simplified or even removed. rlgl module can be used as an standalone library, so, a version for the library has been added: v3.1.0, matching current raylib version.
2020-09-13Minor tweakRay
2020-09-13Corrected issue on logRay
2020-08-30Remove unused variableraysan5
2020-07-20[wip] MeshNormalsSmooth() (#1317)seanpringle
* MeshSmoothNormals() by average * wrong comment * spelling * use correct function naming convention
2020-07-17Reviewed comment in LoadIQM() #1315raysan5
2020-07-15clamp ray hit y position to ground plane height (#1311)seanpringle
2020-06-23Add missing includeRay
2020-06-05Fixed buffer overflow in GenMeshPoly (#1269)frithrah
Co-authored-by: frithrah <[email protected]>
2020-05-23REDESIGNED: ExportMesh() to use memory buffer #1232raysan5
This change could introduce an issue on dataSize precalculation...
2020-05-23REDESIGNED: LoadIQM(), LoadModelAnimations() to use mem buffersraysan5
2020-05-18Avoid loading texcoords and normasl from model if not existentraysan5
2020-05-11GenMeshCubicmap() added comments and simplificationraysan5
2020-05-11Fixed Generated Normals for GenMeshCubicmap (#1244)GoldenThumbs
Just flipped the signs of `n5` and `n6` at lines `2021` and `2022`.
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