Commit Graph

6657 Commits

Author SHA1 Message Date
Dante Catalfamo 3a90acf08e
Add options to zig compile (#3115)
* Add options to zig compile options

Support for compiling with raygui, raymath, and physac.
Also outputs the required headers.

Raygui should be located `../raygui` relative to the repo root
Physac should be located `../physac` relative to the repo root

This behavior matches options in the Makefile

* Move Options struct

* Remove physac, explicit raymath, always copy rlgl.h and raymath.h

* Remove unused options from build.zig

* Add srcdir as include path for raygui.h
2023-06-18 11:48:50 +02:00
Ray 830e328df0 Remove trailing spaces 2023-06-17 16:48:18 +02:00
lesleyrs 2209e5b0ca
fix window flags order (#3114) 2023-06-16 18:08:10 +02:00
Ray a0a18384cb Fix typo 2023-06-16 16:34:47 +02:00
iacore 7392c4b0c5
Better examples/core_input_gamepad (#3110)
* examples/core_input_gamepad: Add visuals for LT,RT

* examples/core_input_gamepad: arrows left/right to choose gamepad

* Style change
2023-06-14 20:46:10 +02:00
Chema Guerra f385d0ce1c
Continuation of support for ES3/WebGL2 (#3107)
* Continuation of support for ES3/WebGL2

* GetTouchPointState()

* Amends to the WebGL2 PR

---------

Co-authored-by: root <root@DESKTOP-GLOV9QV>
Co-authored-by: chemguerra <online@chemaguerra.com>
2023-06-12 08:18:31 +02:00
Charles 2e00d16f3d
GLTF: fix segfault in animNormals memcpy when mesh.normals == NULL (#3103) 2023-06-10 22:15:24 +02:00
Ray 6aada7d5ec Updated examples to `raygui 4.0-dev` 2023-06-09 18:07:25 +02:00
Le Juez Victor 753c0b3853
Addition of support for vox files in version 200. (#3097) 2023-06-05 01:13:08 +02:00
Ray f8b352f6d9 ADDED: `ExportImageToMemory()`
Only PNG supported for now
2023-06-03 19:51:16 +02:00
Ray ba802fdd5e tweaks 2023-06-03 19:50:46 +02:00
Pixel Phobic b1b6ae3905
Full Movement Added to Right Analog Stick (#3095)
I Added Analog Stick Support to the rcamera module, However this code only allowed for 4 Directions of Movement, This Changed adds the full range of Movement to the Right Analog Stick.
2023-06-02 10:29:45 +02:00
Peter0x44 2dec56e7b7
Add error if raylib.h is included in a C++98 program (#3093)
The color macros don't work properly in C++98, because they require
aggregate initialzation, which is a C++11 feature. So, explicitly state
how to fix this issue, instead of letting the compiler give a more vague
error message like:

main.cpp:8:23: error: expected '(' for function-style cast or type construction
      ClearBackground(BLACK);
                      ^~~~~
/opt/homebrew/Cellar/raylib/4.5.0/include/raylib.h:179:35: note: expanded from macro 'BLACK'
 #define BLACK      CLITERAL(Color){ 0, 0, 0, 255 }         // Black

NOTE: Don't use this check with MSVC because by default, it reports
199711L  regardless of any C++ version passed on command line
Only passing `/Zc:__cplusplus` will make MSVC set this correctly

see: https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus
2023-06-01 09:47:52 +02:00
Ray e497603678 ADDED: Experimental support for OpenGL ES 3.0 -WIP-
Just added the required flags to request the OpenGL ES 3.0 context but it has not been tested...
2023-05-31 18:36:33 +02:00
A Billy a18667c2e9
cross compilation for PLATFORM_DRM (#3091)
* added cross compilation options for DRM

* fixed identation
2023-05-30 21:34:08 +02:00
yujiri8 45c00ab9d4
build.zig: Fix cross-compiling from Linux (#3090) 2023-05-30 21:33:01 +02:00
Ray 924bb7226b UPDATED: `sdefl` and `sinfl` DEFLATE compression libraries 2023-05-30 21:12:03 +02:00
RayIT 15cbf313bb
Enhanced cmake part for OpenBSD (#3086)
* Fixed compile on OpenBSD

* Changed to not use seperate UNIX for cmake
2023-05-28 14:49:33 +02:00
RayIT 4a371a5197
Fixed compile on OpenBSD (#3085) 2023-05-28 11:33:14 +02:00
Nikita K aad51d4704
BINDINGS.md: Janet bindings supported version update (#3083) 2023-05-27 13:11:33 +02:00
Jason Liang 20860e2ba0
Fix a link in the FAQ (#3082) 2023-05-27 09:27:44 +02:00
Ray 5ef50ae139 REVIEWED: `ImageRotate()` formatting 2023-05-26 14:01:19 +02:00
LuraMoth 144ae120ab
Add new file formats to FAQ (#3079)
I noticed some file formats from the new release of raylib were missing so I decided to help out and update it!
2023-05-25 09:15:53 +02:00
Dane Madsen e465ed0850
Added ImageRotate (#3078)
* Added ImageRotate

* Quick rename of the example

* Update ImageRotate by changing doubles to floats and checking code convention

* Update API
2023-05-24 09:22:51 +02:00
Ray bf69b38056 Added security check to file reading (memory allocations) 2023-05-22 16:08:14 +02:00
Ray 2937f2010c Review coding conventions 2023-05-22 16:06:03 +02:00
Dane Madsen a4a6d4da8a
Add GenImageGradientSquare (#3077)
* Add GenImageGradientSquare to allow square gradients

* Fix GenImageGradientSquare and add to textures_image_generation example

* Remove params from GenImageGradientSquare
2023-05-22 15:20:28 +02:00
Ray 84ae26cdc0 Update raylib.h 2023-05-21 11:35:25 +02:00
Dane Madsen e96dc46d38
Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient (#3074)
* Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient

* renamed GenImageLinearGradient to GenImageGradientLinear
2023-05-21 11:33:47 +02:00
Ray 1b4634702c Minor tweak 2023-05-21 11:20:42 +02:00
Ray 3a841ac130 REVIEWED: `GenImagePerlinNoise()`, clamp values #3071 2023-05-21 10:28:04 +02:00
Ray f31df7521a REVIEWED: `GenImagePerlinNoise()`, no change 2023-05-21 00:14:09 +02:00
Ray 51387dfbfb tweak 2023-05-18 16:14:18 +02:00
Ray a3e78c5453
Update README.md 2023-05-18 12:00:51 +02:00
Ray fe6973a4f6
Update README.md 2023-05-18 11:59:35 +02:00
Ray 76e39e502c Update rtextures.c 2023-05-17 23:14:14 +02:00
Ray 3a3e672804 UPDATE: miniaudio v0.11.12 --> v0.11.16 2023-05-17 11:54:32 +02:00
Ray c3f049fd74 review formatting 2023-05-16 11:02:00 +02:00
Le Juez Victor 675efbda3b
Fix Android app freeze after calling CloseWindow() (#3067)
Fixed that the Android application was not closed properly after calling `CloseWindow()` and continued to run.
2023-05-16 11:00:44 +02:00
Ray e17cf9ecd7 REVIEWED: Formating 2023-05-15 11:30:31 +02:00
Pixel Phobic 3f8ef4e05f
Updated (rcamera) To Add Analog Stick Cam Controls (#3066)
I Noticed While Writing Some code for My Game im Making that there Isn't an Easy way to control the Camera With The Analog Sticks on Controller.

I Added  a Couple Lines to the UpdateCamera Function :)
2023-05-15 11:25:44 +02:00
Crynux 3438325e7d
Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065)
fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
2023-05-15 11:24:37 +02:00
Gamer-Kold 6b92d71ea1
Reverted commits that deprecated the build.zig files, and added a note to all of them stating version of zig they were using (#3060)
* Revert "Fixed broken build.zig files. Now works with latest stable compiler (as of commit, latest is 0.10.1) (#3045)"

This reverts commit de748dfffe so that zig
build script works with master branch of zig.

* Added a note to build.zig files that denotes what version of zig they have been tested with.

* Standardised the note in the build.zig files
2023-05-15 11:23:36 +02:00
hamyy 26a3536958
GetCurrentMonitor() bugfix (#3058)
* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
2023-05-14 21:20:43 +02:00
lesleyrs 818312683e
update cmake example project (#3062)
* update cmake example project

* off is the correct one
2023-05-14 21:15:32 +02:00
Michael Scherbakow cc17a7656c
Update build.zig be be able to build with current zig master (#3064) 2023-05-14 21:14:16 +02:00
JupiterRider 5978358e58
Update BINDINGS.md (#3053) 2023-05-11 19:48:53 +02:00
Ray 452e3b494c REVIEWED: `GetCollisionRec()` 2023-05-10 19:25:12 +02:00
manuel5975p af4b97a301
Update GetCollisionRec (#3052)
* Update rshapes.c

Add a much more efficient GetCollisionRec implementation

* Update GetCollisionRec

Replace macros with ternary operators
2023-05-10 19:19:59 +02:00
Ray 152262dbfc Update cgltf.h 2023-05-10 12:48:17 +02:00