summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2021-03-17Support instancing in OpenGL ES 2.0 if availableRay
Checking for extension and enabling it if available
2021-03-17Update to latest emscriptenRay
2021-03-14Implement UnloadModelAnimations (#1648)Hristo Stamenov
2021-03-14Added some comments on libc dependenciesRay
2021-03-14Use UnloadFileData()Ray
2021-03-14Improve gltf support (#1647)Hristo Stamenov
* Implement a load values from accessor function. Added some more value types for the different GLTF attributes. Fixed crash when loading animated triangle. * Split GLTF model loading into separate functions for readability. * Fixed the already working models that I broke when introducing GLTFReadValue. Improved the example for gltf models to be able to switch between a few models. * Removed license from screen. It is pu inside a license file anyway. * Small improvements on the naming of functions Removed (*model). and replaced it with model->
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-12Renamed some functions to use latest raylib versionRay
2021-03-12Add config flag: SUPPORT_WINMM_HIGHRES_TIMER #1641Ray
Useful to avoid WinMM requirement and useful to avoid possible performance issues.
2021-03-12Minor tweak to avoid warningRay
2021-03-09Gltf model and animations exploring problems (#1635)Hristo Stamenov
* Added bone binding to whole mesh and not only set vertices. + Also added missed setting of the animation count. + Removed double ; on one line * Added more of the gltf sample models https://github.com/KhronosGroup/glTF-Sample-Models We need to make it working for all of them. * Binding to initial bind pose added. * Fix cube disappearing bug because lerpPercent could be Inf. * Fixed for rigged figure also
2021-03-09Merge branch 'master' of https://github.com/raysan5/raylibRay
2021-03-09Update miniaudio.hRay
2021-03-08Fix fullscreen resolution (#1637)Hristo Stamenov
* Always try to set vsync. Use the internal monitor function to correctly get the display for windows. * Modified how fullscreen gets toggled. - Removed the unsetting and setting of the resize callback function. Instead of that I moved the fullscreen flag setting into a more correct place before setting the fullscreen so that this flag can be used in the callback. - In the resize callback now window size is only set when it is not fullscreen resulting in preserving the window size. - When going fullscreen the larges resolution is used so that there are no problems of the type when you minimize the window you cannot use anything else in your desktop because the resolution might be too low. If a low res effect is desired one should use render texture (this is the approach all game engines use). * Set correct return to window in case of fail to get monitor. * Set the refresh rate on the mode. * Made changes based on review from @raysan5 Co-authored-by: Jeffery Myers <[email protected]>
2021-03-08ADDED: Required callbacksRay
Removed memory allocation callbacks
2021-03-08Always try to set vsync. (#1636)Jeffery Myers
Use the internal monitor function to correctly get the display for windows.
2021-03-04Update some comments to warn users about callbacksRay
2021-03-04ADDED: Config flag: SUPPORT_STANDARD_FILEIORay
This new flag allows omitting stdio.h library in case of a custom implementation is used.
2021-03-04Some naming tweaksRay
2021-03-04Minor struct organization tweakRay
2021-03-04FEATURE: Several callbacks added -WIP- #1523 #1329Ray
NOTE: This feature is still under consideration and not complete.
2021-03-03REVIEWED: TextFormat() #1626Ray
2021-03-03Corrected issue with enums renamedRay
2021-03-03Corrected bugRay
2021-03-03WARNING: BREAKING: RENAMED: enums valuesRay
RENAMED: TextureFilterMode values RENAMED: TextureWrapMode values
2021-03-03WARNING: BREAKING: RENAMED enum valuesRay
RENAMED: CubemapLayoutType and NPatchType
2021-03-03Removing +1 on comparing extesnions because this way it checked the file ↵hristo
extension without the . against the file extension with the . resulting in always false. (#1629)
2021-03-02Reviewed defines, try to avoid elif statementsRay
2021-03-02REVIEWED: Wait() to support FreeBSD #1618Ray
2021-03-02Some misc tweaksRay
2021-03-02REVIEWED: rlUnloadMesh()Ray
2021-03-02REVIEWED: rlUnloadMesh()Ray
2021-03-02REVIEWED: GetFileExtension() to include the dot #1523Ray
2021-03-02REVIEWED: rlUnloadMesh() #1615Ray
2021-03-02Review formattingRay
2021-03-02Add check to flip quaternion (#1624)masterex1000
2021-03-01REVIEWED: GetScreen*() #1570Ray
Now GetScreenWidth() and GetScreenHeight() return the current fbo width and height.
2021-03-01REVIEWED: CheckCollisionLines()Ray
2021-02-28Fixes gl state after HDR texture functions. (#1621)Jeffery Myers
Updates skybox demo to show how to do both HDR and non HDR skyboxes Co-authored-by: Jeffery Myers <[email protected]>
2021-02-26Review bug on OpenGL 1.1Ray
2021-02-25LoadMusicStreamFromMemory OGG support (#1613)Agnis "NeZvērs" Aldiņš
2021-02-24jar_xm_create_context_safe requesting const char* (#1611)Agnis "NeZvērs" Aldiņš
Fixing compiler warning for passing (unsigned char*) to (const char*)
2021-02-24Patch up GLTF Skeleton loading (#1610)Chris Sinclair
* Add support for u8 bone indicies when loading glTF * Fix segfault for glTF animations not keyframed at 0 When loading glTF animations we lerp between keyframes, and previously assume that if the frame we are considering has a later keyframe, there must be a previous keyframe. This is not true if the animation's first keyframe is some time into the animation. In this case we now effectively clamp to that first keyframe for any time prior to it. * Respect parent bones tranform when loading glTF animations We previously assumed that when loading glTF animations, the bones were ordered with those higher up the skeleton tree (i.e. closer to the root) came first in the list of nodes. This may not be true, so now we repeatedly loop, preparing each level of the skeleton tree one after the other, starting at the root level. This ensures that any parent transforms are applied before transforming any child bones. We also ensure that we have forced the loading of animation data before attempting to interpolate to generate the animation frames for use later, without this no animations are applied. Finally we remove the check that assumed the first node in the nodes list is the root, and use an invalid index value as the sentinal value for when a node has no parent. Previously this was 0, which made distinguishing between root nodes and children of the first node impossible.
2021-02-24LoadMusicStreamFromMemory wav mp3 flac support (#1609)Agnis "NeZvērs" Aldiņš
2021-02-22LoadMusicStreamFromMemory (#1606)Agnis "NeZvērs" Aldiņš
* define SUPPORT_FILEFORMAT_MOD in config.h * RLAPI LoadModuleFromData() definition in raylib.h * LoadModuleFromData() definition in raudio.h * LoadModuleFromData implementation in raudio.c * Rename API to LoadMusicStreamFromMemory & default unload. * raudio.c tabs to spaces * Styling curly bracket and removing dev debugging TRACELOG Co-authored-by: nezvers <[email protected]>
2021-02-21[models] Move vboId ALLOC/FREE to rlgl module #1603Ray
Actually, it seems more logical that rlgl takes care of OpenGL data than the models module... Also, models module loaded vertex data is unloaded by models module.
2021-02-20[Examples] Fix typecast warnings in examples. (#1601)Jeffery Myers
* Fixing typecast warnings generated by visual studio 2019 in examples. * Changes to fixes based on feedback Co-authored-by: Jeffery Myers <[email protected]>
2021-02-20Fixed DrawLineEx (#1598)Paul Jurczak
* Fixed DrawLineEx Corrected the issue https://github.com/raysan5/raylib/issues/1596 * Removed raymath dependency for DrawLineEx
2021-02-20Fixes to make rnet and it's examples build on Windows in visual studio 2019. ↵Jeffery Myers
(#1602) Mostly typecasts, and some int to unsigned short changes, and including the windsock 2 library in the examples. Co-authored-by: Jeffery Myers <[email protected]>
2021-02-20Fix warnings generated by Visual Studio 2019 in new model loading code. (#1600)Jeffery Myers
Co-authored-by: Jeffery Myers <[email protected]>