Commit Graph

6265 Commits

Author SHA1 Message Date
Antonis Geralis 0b42da4085
Raylib.h has exceeded 512 functions! (#2896) 2023-01-27 23:33:15 +01:00
Rob Loach 83ff7b2466
ADDED: `IsShaderReady()`, `IsImageReady()`, `IsFontReady()`, `IsWaveReady()`, `IsSoundReady()`, `IsMusicReady()` (#2892)
These IsReady() functions provide a method in order to verify whether or not the object was loaded successfully. They're useful to make sure the assets are there prior to using them.
2023-01-27 19:24:03 +01:00
Jeffery Myers 81ca2f0bf3
Fix warnings and bad project settings for 4.5 release (#2894) 2023-01-27 19:20:42 +01:00
Ray af66e751db
Update CHANGELOG 2023-01-26 23:20:14 +01:00
Ray 000cb5a47d Update CHANGELOG 2023-01-26 23:18:06 +01:00
Kenta f088548261
Update BINDINGS.md (#2889)
Update Kaylib license to Zlib
2023-01-26 10:52:59 +01:00
Ray 0125790801 Update rmodels.c 2023-01-25 23:13:17 +01:00
Jeffery Myers 63da7cdec6
add include guards on config.h (#2888) 2023-01-25 22:26:03 +01:00
Antonis Geralis 4adba0d3c3
Add wayland support (#2883) 2023-01-25 22:25:25 +01:00
Dor Shapira 7cdffcec52
fixed typo (#2886)
pilepine=>pipeline
chosing=>choosing
additioanlly=>additionally
attachmment=>attachment
initialize=>inititialize
Binded=>Bound
lattest=>latest

hi @raysan5, I ran rlgl.h into some "typo checking" program(basically a JetBrains IDE), and here are all the things that the program was able to spot and fix. as my English isn't really well I would like it if you could check that I didn't make any mistakes in the typo fixing...
2023-01-24 23:43:09 +01:00
Ray f68bb8c707 REVIEWED: `rlGenTextureMipmaps()`, GPU generation only 2023-01-24 17:17:25 +01:00
Ray 5149da5719 Merge branch 'master' of https://github.com/raysan5/raylib 2023-01-24 17:16:44 +01:00
Ray 5b3c5e1a16 REVIEWED: `ProcessMaterialsOBJ()` available when required 2023-01-24 17:16:35 +01:00
PencilAmazing 542ef8904a
[models] Load bone names from IQM file if available (#2882)
* Load bone names from IQM file if available

* Formatting and default bone name
2023-01-23 19:55:02 +01:00
Ray 393a03a46e
Removed twitter badge, twitter API seems to be limited 2023-01-23 15:28:45 +01:00
Rob Loach 4706891cae
Add RAYLIB_VERSION numbers to raylib.h (#2856)
Ran into an issue in raylib-cpp where a user was using raylib 4.5-dev, even though the library currently only targets 4.2. With having RAYLIB_VERSION_MAJOR and RAYLIB_VERSION_MINOR, we will be able to target different versions of raylib in different ways, via C preprocessor conditionals.

For example:
``` c
newColor = ColorTint(BLUE, RED);
TraceLog(LOG_INFO, "The color should be tinted, but this isn't supported in ryalib <= 4.2");
```
2023-01-22 15:29:29 +01:00
Rob Loach d8af76f67c
Fix to use TRACELOG() instead of TraceLog() for internal modules (#2881)
There were a few raylib modules that continued to use TraceLog() instead of the TRACELOG() macro. This change ensures that all the internal raylib modules use the TRACELOG() pattern consistently.
2023-01-22 11:10:38 +01:00
Ray 78ae3b38a6 minor format tweak 2023-01-21 19:31:47 +01:00
Antonis Geralis e539aad118
Fix android sound issue #2118 (#2875) 2023-01-21 18:52:31 +01:00
Uneven Prankster 19715546b3
Stub out rlCubemapParameters if under GL 1.1. (#2876)
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-21 18:51:33 +01:00
KOLANICH 342b18da03
Add packaging for distros with deb- and rpm-based packages. (#2877) 2023-01-21 18:50:38 +01:00
Jeffery Myers c649bec26c
Have LoadMaterials call the same code that OBJ loader does so that we can read MTL files (#2872) 2023-01-20 16:13:19 +01:00
Masoud Naservand e64606a82f
Correct the set paths in bat files in examples/ (#2870)
Co-authored-by: Masoud Naservand <masoud.naservand@gmail.com>
2023-01-20 16:07:43 +01:00
Jeffery Myers edaca16d7c
Fix warnings in raylib project from MSVC (#2871) 2023-01-20 16:05:19 +01:00
Jeffery Myers 116603e61c
don't try to free a void* buffer as if it's a cgltf_data structure (#2867) 2023-01-19 21:21:05 +01:00
Uneven Prankster 76468bb8d8
Add rlCubemapParameters to rlgl.h (#2862)
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-19 20:53:30 +01:00
Ghost 2a2f2b20b8
Fixed bug : touches become sticky (#2857)
Touches became sticky and didn't disappear after using more than 2 fingers, fixed by getting the touch count of how many fingers are on the screen, and only looping through the available/pressed down touch points instead of looping through the maximum touch points.
Tested with more than 10 touch points, and with different MAX points value, working perfectly.
2023-01-14 19:41:42 +01:00
Kenta aed131a8f0
Update BINDINGS.md (#2858)
* Update BINDINGS.md

Add Kaylib - Kotlin/Native binding for 4.5-dev (proper binding).
Add Raylib-Nelua - Nelua binding for 4.5-dev with working wasm export.

* Update BINDINGS.md
2023-01-14 19:40:48 +01:00
Tobias Mock d224414eb1
Update raylib-ocaml to 4.2.0 (#2853) 2023-01-11 18:07:35 +01:00
Daijiro Fukuda c6376acfc4
Set initial window position for display-sized fullscreen (#2742) 2023-01-10 12:45:53 +01:00
Ray 3028bffd4c Minor tweaks 2023-01-10 12:38:21 +01:00
Go Watanabe f549f67be9
OpenGLES 2.0 support on PLATFORM_DESKTOP (#2840)
* OpenGLES 2.0 support on PLATFORM_DESKTOP

* exmples raylib_opengl_interop desktop GLES2 support

* rename gles2.h -> glad_gles2.h
2023-01-10 12:34:06 +01:00
Ray 6dd1d2d931 ADDED: Required define on Linux #2729 2023-01-10 12:20:45 +01:00
Ray bba6ae5622 RENAME: type to projection #2851 2023-01-10 12:16:42 +01:00
Ray ce8000ee7e REVIEWED: `GetClipboardText()` on `PLATFORM_WEB` 2023-01-04 20:13:44 +01:00
Ray 89755e52bf REVIEWED: `rLoadTextureDepth()` fixed issue 2023-01-04 17:35:51 +01:00
Ray 73234d2a28 Avoid trying to setup uniform for invalid locations 2023-01-03 17:44:06 +01:00
Ray 39f9045703 Update models_loading_gltf.c 2023-01-02 20:59:25 +01:00
Ray b854909803 Update models_loading_gltf.c 2023-01-02 20:48:02 +01:00
Ray d3c1a04983 REVIEWED: GLTF animations support #2844 2023-01-02 20:46:33 +01:00
Charles f2e3d6eca7
[models] Add GLTF animation support (#2844)
* add GLTF animation support

* use correct index when allocating animVertices and animNormals

* early exit LoadModelAnimationsGLTF if the gtlf file fails to parse

* update models/models_loading_gltf.c to play gltf animation

Updated the .blend file to use weights rather than bone parents so it
fits into the framework. Exported with weights to the .glb file.

* fix order of operations for bone scale in UpdateModelAnimation

* minor doc cleanup and improvements

* fix formatting

* fix float formatting

* fix brace alignment and replace asserts with log messages
2023-01-02 20:23:48 +01:00
Ray fabedf7636 Merge branch 'master' of https://github.com/raysan5/raylib 2023-01-02 17:06:55 +01:00
Ray 62f63f9e48 REVIEWED: Avoid possible gamepad index as `-1` #2839
WARNING: It could require further review of `GamepadThread()` function where `js_event gamepadEvent.number` detecting current pressed button could generate a missmatch with index 0 (reserved for button unknow). Or maybe `0` could just be `GAMEPAD_BUTTON_NONE`? In that case, consistency with other inputs should be carefully considered...
2023-01-02 17:06:52 +01:00
Antonis Geralis 1dbcce8b56
Use explicit atomics (#2849)
* Use explicit atomics

* missed one

* use relaced ordering
2023-01-02 16:48:53 +01:00
Ray 0ccc1d3686 Update year to 2023 2023-01-01 19:07:58 +01:00
Ray 5ba41e4f7f REVIEWED: `shaders_write_depth` example 2023-01-01 18:31:03 +01:00
BugraAlptekinSari 3cfb9a6e83
[example] Writing into the depth buffer (#2836)
* Add a depth buffer example.

* Fixed a typo
2023-01-01 18:17:28 +01:00
Ray 30b75702df Update year to 2023 2023-01-01 18:09:22 +01:00
Ray e2a8066fca Update year to 2023 2023-01-01 16:07:51 +01:00
Ray b59fab7ee6 Update year to 2023 2023-01-01 16:00:56 +01:00