Commit Graph

6265 Commits

Author SHA1 Message Date
Wytek01 713e26332f
Update year to 2023 (#2846)
* Update year to 2023

* Update raylib.h year to 2023
2023-01-01 12:55:49 +01:00
Antonis Geralis ba38fe5b97
core_loading_thread example join thread on completion (#2845)
* core_loading_thread example join thread on completion

* error checking
2022-12-31 19:25:35 +01:00
turborium dbdbbea471
Add new Delphi/Lazarus bindings (#2838)
TurboRaylib - dynamic bindings of ray lib for Delphi/Lazarus
2022-12-28 11:04:55 +01:00
Ray 03cc540d5f Minor tweak 2022-12-18 18:00:21 +01:00
Ray d7f7c94c4d REVIEWED: `Vector2Angle()` 2022-12-18 18:00:14 +01:00
Ray 72b9f3c5de Minor tweaks 2022-12-17 12:15:19 +01:00
Antonis Geralis d1a104bba4
Fix vector2angle (#2832)
* Fix vector2angle

* Fix ;

* use acosf

* need a break

* add comments
2022-12-17 12:13:40 +01:00
Ray c2b56c583a Merge branch 'master' of https://github.com/raysan5/raylib 2022-12-14 13:00:29 +01:00
Ray 619331f4a7 REVIEWED: Issue with depth textures on WebGL #2824 2022-12-14 12:57:39 +01:00
Alexander Heinrich 3419aef677
Fix Vector2Angle() (#2829)
With this fix the function still returns negative values, which is
wrong. But we keep this behaviour to maintain backwards compatibility.
2022-12-13 18:59:00 +01:00
Ray 445ce51e51 Update Makefile 2022-12-13 10:46:49 +01:00
simendsjo 884d30b85a
Use GLVND also for old cmake versions (#2826)
Use GLVND also when legacy implementations exist for old cmake versions
<= 3.10. This is a breaking change for old cmake versions (prior to
around 2017-10-05) which will now use GLVND rather than defaulting to
libGL.

This fixes the following warning when building:

    CMake Warning (dev) at /gnu/store/qv13zgbmyx0vjav8iiqp772kp6rxvwnd-cmake-3.24.2/share/cmake-3.24/Modules/FindOpenGL.cmake:315 (message):
      Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
      available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
      cmake_policy command to set the policy and suppress this warning.

      FindOpenGL found both a legacy GL library:

        OPENGL_gl_LIBRARY: /home/simendsjo/.guix-profile/lib/libGL.so

      and GLVND libraries for OpenGL and GLX:

        OPENGL_opengl_LIBRARY: /home/simendsjo/.guix-profile/lib/libOpenGL.so
        OPENGL_glx_LIBRARY: /home/simendsjo/.guix-profile/lib/libGLX.so

      OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
      compatibility with CMake 3.10 and below the legacy GL library will be used.
    Call Stack (most recent call first):
      cmake/LibraryConfigurations.cmake:21 (find_package)
      src/CMakeLists.txt:46 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.

See https://cmake.org/cmake/help/latest/policy/CMP0072.html

Closes #2825
2022-12-11 13:37:38 +01:00
Ray c04c3668cb
Update windows.yml 2022-12-10 13:09:05 +01:00
Ray 855a5f3701
Update windows.yml 2022-12-10 13:06:13 +01:00
Ray 6d59a21e99
Update windows.yml 2022-12-10 13:01:57 +01:00
Ray 935a306b29
Update windows.yml 2022-12-10 12:44:25 +01:00
Ray 2c9d116a5c ADDED: `ColorTint()`, `ColorContrast()` 2022-12-07 12:52:42 +01:00
Ray f1368c36dd ADDED: `ColorBrightness()` 2022-12-05 00:24:55 +01:00
Ray 4de64f5750 Expose OpenGL blending mode factors and functions/equations 2022-12-04 13:22:37 +01:00
Ray 89698844a1 REVIEWED: Example: `textures_textured_curve` 2022-12-04 11:01:59 +01:00
Jeffery Myers 57dd345dc3
Add a textured curve example (#2821) 2022-12-03 22:55:05 +01:00
Ray 5b5dff3f9e format tweak 2022-12-02 11:59:54 +01:00
Ray a4079ad565 Update Makefile 2022-12-02 11:59:43 +01:00
Hristo Iliev 387c060006
Fix an issue when compiling for web (#2820)
It would try to use the glfw on the system but we're cross-compiling for web where the implementation is provided by emscripten's team
2022-11-30 10:36:01 +01:00
Ray 0b6d4b376f REVIEWED: Image fileformat support: PIC, PNM 2022-11-29 17:28:23 +01:00
Ray d241ee8516 ADDED: Optional support for PNM images (.ppm, .pgm) 2022-11-29 10:58:27 +01:00
Ray 2edf5a9584 REVIEWED: Issue with shader linkage 2022-11-29 10:45:10 +01:00
jtainer 50a716c0d9
Updated rcore.c, renamed 'time' to 'nanoSeconds' (#2816)
* Updated rcore.c, renamed 'time' to 'time_nsec'

When PLATFORM_ANDROID, PLATFORM_RPI or PLATFORM_DRM were defined, there is a compilation error to redefinition of the variable 'time', so the second instance of 'time' was changed to 'time_nsec' which both fixes the name collision and more accurately describes what that variable represents.

* Renamed 'time_nsec' to 'nanoSeconds'
2022-11-29 00:46:10 +01:00
Daijiro Fukuda 57bd84510f
Fix wrong compile definition (#2815) 2022-11-28 22:36:22 +01:00
Daijiro Fukuda 66a2cdee40
Fix array out of range (#2814)
This breaks other values of the struct.
2022-11-28 22:35:44 +01:00
Ray bbf9935828 Update github workflows 2022-11-28 21:03:21 +01:00
Ray fc5894e734 REVIEWED: Some compilation warnings (for strict rules) 2022-11-28 14:16:59 +01:00
Antonis Geralis 2fd6d7e8c0
Use const for pointer float array (#2807)
* Use const for pointer float array

* missed a definition
2022-11-24 00:58:56 +01:00
Antonis Geralis 2c77b31e30
Correct types for rlBindImageTexture (#2808) 2022-11-24 00:58:31 +01:00
gtrxAC c48de2d1af
Rename lighting_instanced shader (glsl100) to lighting_instancing (#2805)
* JSON parser: Use array for function params (#2255)

* Parser: follow C convention of type before name

* Update file names in build scripts

* Rename lighting_instanced shader to instancing
2022-11-22 18:16:44 +01:00
Ray c0010105c2 REVIEWED: UnloadDirectoryFiles() 2022-11-22 17:09:39 +01:00
Ray f6558fe6e0 Minor tweaks 2022-11-22 01:02:54 +01:00
Alex Macafee 36bb57d1be
Add raylib-vapi (#2804) 2022-11-21 13:14:20 +01:00
Ray e6306e5e76 REVIEWED: `rlCullFace()` -> `rlSetCullFace()`
Reviewed formating to follow raylib coding conventions.
2022-11-15 12:34:01 +01:00
jtainer 2761aa40dd
Added function rlCullFace (#2797)
rlCullFace sets the face culling mode to RL_FRONT or RL_BACK which correspond to GL_FRONT and GL_BACK respectively.
2022-11-15 12:30:32 +01:00
Pere001 c8fd93d356
Warning on GetRandomValue range limit (#2800)
Added a comment explaining the range limitations of GetRandomValue.
Added a run-time warning TRACELOG when GetRandomValue is called with an invalid range.
2022-11-15 12:29:19 +01:00
Ray 2604b9f72b Merge branch 'master' of https://github.com/raysan5/raylib 2022-11-15 12:26:30 +01:00
Ray 3c51d066f1 Avoid using `DrawCubeTexture()` 2022-11-15 12:26:22 +01:00
Ray 656f47b7cc
Update cmake.yml 2022-11-15 12:23:24 +01:00
Ray 2a88dc9bb7
Update linux_examples.yml 2022-11-15 12:22:26 +01:00
Ray fadc29d811 WARNING: REMOVED: `DrawCubeTexture()`, `DrawCubeTextureRec()`
Those two functions have been moved to a new example: `models_draw_cube_texture`. The reasons for this decision:
 - Function inflexibility: Many users with the need to draw a textured cube could need to customize the texture applied to every face, that function did not allow that kind of functionality.
 - rlgl functionality exposure: The implementation exposed will teach users how to implement custom textured triangles drawing.
2022-11-15 12:16:28 +01:00
Jorge A. Gomes 4bb71c8fa2
Raylib-py updated to 4.2, plus parallel project (#2798)
Now Raylib-py is a releases-only project.
For now on, code maintenance will happen in a parallel project created to automate the binding generation: RaylibpyCtbg
2022-11-12 18:56:54 +01:00
Scott Helvick baabe22f7a
Add Claylib (CL bindings + convenience layer) (#2796) 2022-11-11 17:23:02 +01:00
Ray 025db8f227 Merge branch 'master' of https://github.com/raysan5/raylib 2022-11-10 12:03:26 +01:00
Ray 31edd13a72 Minor formating tweaks 2022-11-10 12:03:17 +01:00