Ray
d71505bdc6
Update Makefile
2022-10-24 13:37:08 +02:00
Ray
483f10397e
review note
2022-10-20 20:09:54 +02:00
Ray
d9f434afb9
Added -s EXPORTED_RUNTIME_METHODS=ccall to examples web build #2739
2022-10-20 20:07:29 +02:00
ianband
7e7939e1ad
Add DrawCapsule(Wires) ( #2761 )
...
* Add DrawCapsule & DrawCapsuleWires
* Add DrawCapsule & DrawCapsuleWires to example
Co-authored-by: Ian Band <ian.r.band@gmail.com>
2022-10-17 11:36:53 +02:00
Ray
07bbfe86b9
Update core_basic_window.c
2022-10-11 22:28:40 +02:00
Szieberth Ádám
4cca234f46
avoid leading spaces in text_rectangle_bounds ( #2746 )
2022-10-11 12:14:40 +02:00
Ray
907e9e1fe2
Update text_codepoints_loading.c
2022-09-22 20:29:54 +02:00
Rob Loach
2093fdcc53
Added: ImageDrawCircleLines, ImageDrawCircleLinesV ( #2713 )
...
This adds `ImageDrawCircleLines()` and `ImageDrawCircleLinesV()` to draw outlines of circles, and updates `ImageDrawCircle()` draw a filled circle to match the effect of `DrawCircle()` and `DrawCircleLines()`.
2022-09-19 18:41:17 +02:00
Ray
0e5cd442be
REVIEWED: Renamed some shaders, fix #2707
2022-09-19 18:29:08 +02:00
murilluhenrique
eaa0b9102b
Fix typo ( #2696 )
2022-09-16 00:06:25 +02:00
Ray
cf76d23476
Minor format tweaks
2022-09-10 10:23:38 +02:00
Ray
cf24c021a3
WARNING: BREAKING: Reviewed SSBO usage to avoid long long
...
raylib library tries to avoid `long long` usage. Several SSBO functions have been reviewed (including some renames for consistency) to minimize `long long` type usage.
2022-09-09 00:26:47 +02:00
Ray
b478364914
REVIEWED: Removed comment, fixes #2691
2022-09-09 00:04:08 +02:00
hartmannathan
c1b4881e8a
examples/core/core_custom_logging.c: Fix typo ( #2692 )
2022-09-08 16:10:15 +02:00
Ray
e59442bfab
REMOVED: rlPushMatrix()/rlPopMatrix() from rshapes
...
This simplification will allow the usage of `rshapes` as STANDALONE mode in a future. Only a small set of `rlgl` functions are required and they can be "more" easely replaced if no `rlPushMatrix()`/`rlPopMatrix()` are involved.
More simplification planned for the future, maybe the textures dependencies.
2022-09-05 18:23:25 +02:00
Ray
ac3420faac
Update core_custom_frame_control.c
2022-09-04 12:32:40 +02:00
skylar
ee5a87826d
Fixed a bug in the 2d camera platformer example ( #2687 )
...
canJump used to alternate between true and false when on ground
2022-09-04 11:48:33 +02:00
Stan
234576da71
Removed raylib_opengl_interop.c from PLATFORM=Web build ( #2682 )
2022-09-02 09:13:35 +02:00
Ray
fb1037a241
ADDED: Complete support for M3D animations! #2648
2022-09-01 20:46:06 +02:00
Ray
23cc39a265
Implemented latest .M3D improvements #2648
2022-09-01 10:27:16 +02:00
Ray
4b76aa09dd
ADDED: lighting.fs for GLSL120 Fix #2651
2022-08-29 14:36:07 +02:00
Ray
f66b1a3136
REVIEWED: Support M3D file loading #2648
2022-08-26 10:04:38 +02:00
Ray
ae745e4fa8
ADDED: -latomic library on Linux (only required for ARM32)
...
This linkage is only required for arm 32bit but I don't know how to detect that specific architecture in the Makefile...
2022-08-22 11:25:35 +02:00
moosey
f049f9dd3a
Tiny documentation fix in reasings.h ( #2640 )
2022-08-15 09:15:43 +02:00
SomeUnusualGames
71e43612d6
Fix typos and reworded a question in the FAQ ( #2628 )
2022-08-11 17:54:24 +02:00
Ray
75ece337ae
Revert "Update core_3d_camera_mode.c"
...
This reverts commit 4f6fbaed41 .
2022-08-11 12:28:21 +02:00
Ray
4f6fbaed41
Update core_3d_camera_mode.c
2022-08-11 12:27:51 +02:00
archie2x
e87caa2687
Fix #2621 : Set CMP0054 policy to NEW and appropriately quote ${PLATFORM} ( #2622 )
2022-08-09 09:52:56 +02:00
Jacob Dennis
621d6ae856
Updated to work with zig master branch ( #2620 )
...
Specifically, std.fs.OpenDirOptions struct no longer has the iterable
flag, now it's a standalone function call std.fs.openIterableDir
2022-08-08 17:36:22 +02:00
TheManTheMythTheGameDev
090e47dca0
Fix rendering issue in audio_raw_stream.c example ( #2608 )
2022-08-03 08:36:23 +02:00
Ray
b79df1c329
Updated easings examples
2022-08-02 18:55:49 +02:00
Ray
0ce8a8f360
Remove easings.h from raylib/src, moved to examples
2022-08-02 18:31:57 +02:00
Ray
b187d6ca16
Delete rlights.h
2022-08-02 18:30:54 +02:00
Ray
5840cd6e50
Remove unneeded comment
2022-08-02 18:12:57 +02:00
Ray
9cbbf149d8
Update audio_music_stream.c
2022-08-02 10:23:54 +02:00
Ray
328d65b1b3
Update Makefile.Web
2022-08-02 10:22:22 +02:00
Ray
c457835938
Update audio_raw_stream.c
2022-08-02 10:22:17 +02:00
Ray
d68ddda766
Added note for multi-threading web compilation
2022-08-02 09:59:12 +02:00
Ray
24e6bf0565
Update shapes_draw_ring.c
2022-08-02 09:58:56 +02:00
Ray
191c340409
Update Makefile.Web
2022-08-02 09:26:46 +02:00
Ray
ed7548051b
Update version to 4.2
2022-08-02 09:21:03 +02:00
Ray
fe9e82b2e6
Remove line breaks
2022-08-02 00:30:57 +02:00
Ray
b20d416131
Added latest examples
2022-08-02 00:30:26 +02:00
Ray
a0b4b28427
Update Makefile.Web
2022-08-01 23:57:09 +02:00
Ray
f9b71e7bcd
Update Makefile
2022-08-01 23:57:05 +02:00
sDos280
85bd13c41d
removing typo, Colours->Colors ( #2603 )
2022-07-31 10:31:14 +02:00
sDos280
d59ea21405
removing typo in line 41 line, presssed -> pressed ( #2602 )
2022-07-31 01:51:25 +02:00
Ray
93b633b6e6
Create audio_stream_effects.png
2022-07-29 19:56:36 +02:00
Ray
b6f87023ad
Update rlgl_standalone.c
2022-07-29 12:38:01 +02:00
Ray
fccdb68df8
Create audio_stream_effects.c
2022-07-29 12:36:56 +02:00
Ray
277dd2bb57
Update audio_music_stream.c
2022-07-29 12:36:51 +02:00
Ray
721e7914b1
Update audio_music_stream.c
2022-07-29 12:08:04 +02:00
Nikolay Krasheninnikov
52345fd883
[raymath] Rotation functions returns clockwise rotation matrix, #2595 ( #2599 )
...
Co-authored-by: Nikolai Krasheninnikov <nikolai.krasheninnikov@kronshtadt.ru>
2022-07-29 11:54:37 +02:00
Ray
0abba4dc18
Update README.md
2022-07-22 11:48:00 +02:00
Ray
4a9391ae83
REVIEWED: examples descriptions
2022-07-20 01:28:37 +02:00
Ray
4fced50fd1
Reviewed example formating
2022-07-19 22:06:18 +02:00
Ray
a3a6b3f24a
Update core_2d_camera.c
2022-07-19 22:05:07 +02:00
Jeffery Myers
39ead974a4
add mouse zoom example ( #2583 )
2022-07-19 21:55:10 +02:00
Ray
8aa105fd5b
WARNING: REMOVED: raudio_standalone example
...
Moved to raudio library repo: https://github.com/raysan5/raudio
2022-07-15 19:05:05 +02:00
Ray
53e3375186
Create rlgl_standalone.png
2022-07-09 00:12:50 +02:00
Ray
0295ab968c
Update README.md
2022-07-07 19:14:08 +02:00
Ray
ab23e2f130
Merge branch 'master' of https://github.com/raysan5/raylib
2022-07-07 19:12:44 +02:00
Ray
61695c5315
Added some examples screenshots
2022-07-07 19:12:37 +02:00
Ray
4e763b4aa3
Update example reviews raylib versions
2022-07-07 19:07:09 +02:00
Ray
870b7fa05f
Added new examples to Makefile
2022-07-07 18:29:06 +02:00
Ray
ff838b48fd
UPDATED: examples: Assigned **DIFFICULTY LEVELS**!
2022-07-07 14:34:38 +02:00
Ray
8e229ada1d
ADDED: example: textures_gif_player
2022-07-07 12:15:55 +02:00
Ray
e121058eb6
RENAMED: example: textures_rectangle -> textures_sprite_anim
2022-07-07 12:09:30 +02:00
Ray
e3ff5f3dc2
ADDED: example: textures_fog_of_war
2022-07-07 11:13:45 +02:00
Ray
9e97a2c4a1
ADDED: example: core_window_should_close
2022-07-07 11:07:41 +02:00
Ray
8f65cb1d94
ADDED: example: text_codepoints_loading
2022-07-07 01:00:57 +02:00
Ray
e722a8dbef
WARNING: BREAKING: REMOVED: *StorageValue() functions
...
Those functions were platform dependent and user has no control over the file created. They have been removed from raylib and just moved to `core_storage_values` example.
2022-07-05 13:24:14 +02:00
Ray
d0f53db65f
REMOVED: example: core_quat_conversion
2022-07-05 00:54:50 +02:00
Ray
bf07d17cec
REMOVED: example: core_quat_conversion
...
This example requires a complete remake to be more clear. Also current quaternion maths could have issues.
2022-07-05 00:50:04 +02:00
Ray
5c5db2c016
Update rlgl_compute_shader.c
2022-07-04 18:34:38 +02:00
Ray
c6c71fe73c
REVIEWED: DrawMesh() #2511
...
Disable color vertex attribute if not provided by mesh
2022-07-04 17:47:47 +02:00
Ray
061e828524
REVIEWED: example: gltf models loading -WIP-
2022-07-01 14:02:30 +02:00
Richard Smith
3c3f08c416
Fix CMake build on Raspberry Pi OS Bullseye ( #2548 )
2022-06-24 10:50:24 +02:00
Ray
d7a0b46006
Update rlights.h
2022-06-22 00:35:06 +02:00
Ray
77b9ca50e0
Update shaders_basic_lighting.c
2022-06-22 00:35:04 +02:00
Ray
3879decb9f
REVIEWED: example: shaders_mesh_instancing
...
Simplified example
2022-06-21 21:06:03 +02:00
Ray
c1b01c0d5d
Added new comment to examples
2022-06-21 19:53:18 +02:00
Ray
d37a63fad7
Reviewed easings include
2022-06-12 23:01:48 +02:00
Ray
043fa4cba7
Removed extras directory
2022-06-12 21:13:46 +02:00
Ray
7743af853a
Update easings.h
2022-06-12 21:13:27 +02:00
Ray
96292bc859
Update models_skybox.c
2022-06-12 01:00:13 +02:00
Ray
f9426912f6
Update text_font_filters.c
2022-06-12 00:52:15 +02:00
Ray
ad332f49ed
Update core_drop_files.c
2022-06-12 00:04:25 +02:00
Ray
8c2019f5ad
Update core_drop_files.c
2022-06-12 00:01:47 +02:00
Ray
b8f67c6285
WARNING: BREAKING: REDESIGNED: Filepath loading API
...
REDESIGNED: `LoadDirectoryFiles()`
ADDED: `LoadDirectoryFilesEx()`
REDESIGNED: `LoadDroppedFiles()`
ADDED: `IsPathFile()`
This BIG BREAKING change simplifies the functions and gives more control to the user:
- A new `struct FilePathList` has been added to avoid exposing complex pointers.
- User is responsible of memory loading/unloading
- Filepaths loading support recursive directories and file extension filters
2022-06-11 23:24:13 +02:00
Ray
59a808516e
Update README.md
2022-06-08 23:05:51 +02:00
Ray
e6bc401c93
WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()
...
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +02:00
Ray
609d92003b
WARNING: REMOVED raygui from raylib/src/extras
2022-06-06 11:11:39 +02:00
Ray
8da566d6e7
WARNING: Removed physac from raylib sources/examples
...
`physac` is available on its own repo
2022-06-06 11:00:06 +02:00
Ray
91af3a3152
Update text_draw_3d.c
2022-06-02 19:22:31 +02:00
Ray
1f806b555d
ADDED: -latomic linkage, required by miniaudio on ARM 32bit #2452
2022-05-20 17:45:36 +02:00
ptarabbia
ea598f7d77
Fix crash with delay demo. ( #2472 )
2022-05-12 15:26:36 +02:00
Maiko Steeman
ccfac59c60
Fix for vr rendering not taking render target size into account ( #2424 )
2022-04-24 11:48:50 +02:00
Anilforextra
9c66e2f97e
[Examples] Free Allocated Matrices. ( #2425 )
2022-04-04 10:32:46 +02:00
Ray
709ec1663d
Update audio_music_stream.c
2022-03-30 20:25:46 +02:00
Ray
1612ba63ab
ADDED: Audio stream processors support -WIP- #2212
...
This feature is still under consideration/testing and it doesn't work properly, at least the Delay Effect processor.
2022-03-30 20:13:02 +02:00
Ray
90fc7c0376
WARNING: BREAKING: REMOVED: GetRayCollisionModel() #2405
2022-03-30 20:11:22 +02:00
Ray
8e28872fe1
Rename audio callback
2022-03-25 10:19:40 +01:00
Ray
381236051f
ADDED: Audio stream input callback #2212 -WIP-
...
WARNING: This addition is based on a PR and it's still under review, not sure if it will be maintained in the future. In general, raylib tries to avoid callbacks usage mechanisms.
2022-03-24 20:49:11 +01:00
Ray
ca12ef48e9
Fixes #2408
2022-03-24 11:44:52 +01:00
Ray
65f28460a1
Update shaders_raymarching.c
2022-03-22 23:53:32 +01:00
Ray
3634adf8d4
Update textures_draw_tiled.c
2022-03-22 21:11:56 +01:00
Ray
bd95408b06
Update textures_draw_tiled.c
2022-03-22 21:10:51 +01:00
Ray
cb62cb675f
Minor tweaks const
2022-03-22 18:45:41 +01:00
Kristian Lein-Mathisen
4954778f68
Improve joystick visualisation in gamepad example again ( #2391 )
...
As prior commit, but complete fix for XBox controller and trigger
buttons too.
> The joystick range is a float from -1 through +1. Casting this to int
> yields only three possible values: -1, 0, and 1. This gives a
> misleading joystick placement in the demo.
>
> By casting to int after the multiplication to get pixel values, the
> demo reveals the analog feel of the joystick.
2022-03-14 17:16:09 +01:00
Kristian Lein-Mathisen
ec7250ca54
Improve joystick visualisation in gamepad example ( #2390 )
...
The joystick range is a float from -1 through +1. Casting this to int
yields only three possible values: -1, 0, and 1. This gives a
misleading joystick placement in the demo.
By casting to int after the multiplication, the demo reveals the
analog feel of the joystick.
2022-03-14 16:00:59 +01:00
raysan5
61d0c71b3c
REVIEWED: example: shapes_top_down_lights
2022-01-16 18:07:11 +01:00
Jeffery Myers
4b998cfd05
[Examples] Top down lights example ( #2199 )
...
* Start 2d lights example.
* finish example
* update image.
* Cleanup render textures
* Fixes to handle shadows on edges that are near to the light better.
* tabs
* move to shapes
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2022-01-16 17:47:17 +01:00
ptarabbia
5ac07122bd
Add panning to raudio and update audio_raw_stream example. ( #2205 )
...
* Add panning to raudio and update audio_raw_stream example.
* remove pan smoothing, code formatting changes following pull request comments
Co-authored-by: Ray <raysan5@gmail.com>
2022-01-16 12:49:58 +01:00
Ray
a134b8bc6d
Update Makefile
2022-01-11 15:39:08 +01:00
Ray
b61c9afd04
Update Makefile, simplified
2022-01-11 11:57:26 +01:00
Ray
0416d5ff7b
Update Makefile
2022-01-11 11:26:45 +01:00
Ray
cabb5518e5
Improve Makefile organization
2022-01-11 11:20:04 +01:00
Archie
7b7424802f
Fixes an error in the spelling of "appearance" ( #2276 )
2022-01-10 23:55:21 +01:00
raysan5
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +01:00
Ray
611e54e67e
Reviewed makefiles
2021-12-27 19:01:07 +01:00
Ray
31dd7b95bc
Update Makefile.Web
2021-12-23 11:01:52 +01:00
Damien Pitard
bb7b13ef3c
fixed cross-compilation from x86-64 (debian buster) to Raspberry Pi (raspbian) ( #2233 )
2021-12-21 19:03:25 +01:00
raysan5
22d0baa896
Review makefiles debug flag
2021-12-21 12:24:03 +01:00
raysan5
ef5be632fe
REVIEWED: ExportMesh() #2220
2021-12-17 20:55:38 +01:00
Ray
7787102573
Remove hardcoded path #2200
2021-12-10 10:42:13 +01:00
Ray
48d4806e53
Update raylib_compile_execute.bat
2021-12-03 15:39:46 +01:00
Tobias Berger
7c6adc5d97
Update LICENSE.md ( #2179 )
...
Fix typo in link
2021-12-01 15:12:56 +01:00
Anders Holmberg
71f2e2b1e4
Add macos support to zig build system ( #2175 )
2021-11-27 10:46:18 +01:00
Ray
c3d32c156c
REMOVED: Network examples
...
They were not working
2021-11-02 18:59:52 +01:00
Ray
5e3db0aa83
Updated some scripts paths
...
NOTE: New raylib release installer uses `w64devkit`, smaller and more updated than regular `mingw64-w64` default project. Paths are updated properly.
2021-11-02 18:40:45 +01:00
Ray
1fac09d0f4
REVIEWED: example: Compute shader Game-of-life
2021-10-31 12:28:04 +01:00
Astie Teddy
f090f5444c
Add Conway's Game of Life compute shader example. ( #2088 )
...
* Add Conway's Game of Life compute shader example.
* Fix various shaders problems, and tune command buffer size.
* Various coding convention changes.
2021-10-31 11:46:38 +01:00
Peter0x44
2bb4d36c43
Add missing file extensions for drag-and-drop support ( #2090 )
2021-10-30 23:43:07 +02:00
Jeffery Myers
daeccd03ac
Fix VC warnings for examples ( #2085 )
2021-10-25 10:21:16 +02:00
Ray
ae13f438ba
Update Makefile.Web
2021-10-22 23:08:42 +02:00
raysan5
6ce38e599a
Remove big asset
2021-10-22 21:24:26 +02:00
raysan5
1883343944
Update core_input_gamepad.c
2021-10-22 15:04:31 +02:00
raysan5
dd6e006d78
Reviewed multitouch example #1988
2021-10-22 11:53:47 +02:00
Ray
2d82788e42
Reviewed uniform name
2021-10-20 11:55:00 +02:00
Ray
fba117478d
Update Makefile.Web
2021-10-20 11:40:46 +02:00
raysan5
2e151408bb
REVIEWED: models_yaw_pitch_roll
2021-10-19 14:58:04 +02:00
raysan5
fec0ce34c5
Remove trailing spaces
2021-10-19 14:57:12 +02:00
Ray
7763ccd8ad
Resync .obj models! gitignore was ignoring them!
2021-10-18 23:17:37 +02:00
raysan5
628e6e52f3
Update examples screenshots
2021-10-17 21:39:52 +02:00
raysan5
f437f7b405
Reviewed makefile and examples building
2021-10-17 21:00:52 +02:00
raysan5
cf12992b6a
Remove trailing spaces
2021-10-17 21:00:20 +02:00
raysan5
6243466770
Create Makefile.Web
2021-10-17 19:10:33 +02:00
raysan5
0f8caeb186
Added new examples to Makefile
2021-10-17 19:10:28 +02:00
raysan5
c20df9aa47
Reviewed examples
2021-10-17 19:10:09 +02:00
raysan5
2a6bd973bd
Review some comments
2021-10-14 15:38:50 +02:00
raysan5
d7266ea8f3
Merge branch 'master' of https://github.com/raysan5/raylib
2021-10-14 13:41:55 +02:00
raysan5
ef858b0dbb
Review examples
2021-10-14 13:37:22 +02:00
Ryan Roden-Corrent
588131c9d5
Add zig buildfile for examples. ( #2051 )
...
* Add zig buildfile for examples.
- `zig build` to compile all examples
- `zig build [module]` to compile all examples for a module (e.g. `zig build core`)
- `zig build [example]` to compile _and run_ a particular example (e.g. `zig build core_basic_window`)
You can use `-Dtarget=` to compile for a non-native platform, such as
`zig build -Dtarget=x86_64-windows-gnu` to compile from Linux to
Windows.
* Skip pthread example on Windows.
* Select appropriate lib file based on target.
2021-10-14 13:24:00 +02:00
raysan5
51b147cd32
Update models_loading_vox.c
2021-10-13 21:08:58 +02:00
raysan5
942731cc22
REVIEWED: macOS does not require GLAD library #2052
...
It directly uses the libraries provided by the system
2021-10-13 19:29:29 +02:00
raysan5
f9d4601057
Create LICENSE
2021-10-12 21:26:41 +02:00
raysan5
f1659d78d3
Reviewed models examples paths
2021-10-12 21:01:49 +02:00
raysan5
d92531b81d
Rename examples for consistency
2021-10-12 20:23:59 +02:00
raysan5
670eab8b17
Review comments
2021-10-12 20:23:46 +02:00
raysan5
1b91ac0b0d
REVIEWED: EXAMPLE: shaders_shapes_outline
...
Removed unneeded resources to use raylib ones.
2021-10-12 13:36:31 +02:00
raysan5
599d6e810f
REVIEWED: models resources structure
2021-10-12 12:47:50 +02:00
raysan5
75b5cc0084
REMOVED: EXAMPLE: models_gltf_animation
2021-10-12 12:47:10 +02:00
raysan5
9a568654be
REMOVED: EXAMPLE: models_material_pbr
2021-10-12 12:46:41 +02:00
Ray
bb2763cc1f
Update models_rlgl_solar_system.c
2021-10-07 16:08:39 +02:00
raysan5
3e71232a04
WARNING: BREAKING: REMOVED: GenImagePerlinNoise()
...
raylib was using `stb_perlin.h` library to generate perlin noise, it seems that recently this library has been flagged as it could be infringing some algorythm patent. For security, it has been removed from raylib.
2021-10-06 21:20:36 +02:00
Ray
f869229b7f
Minor format tweaks
2021-10-03 12:09:59 +02:00
Ray
239c37246a
WARNING: REVIEWED: Follow a set of conventions
...
CONVENTIONS:
- Functions are always self-contained, no function use another raymath function inside, required code is directly re-implemented inside
- Functions input parameters are always received by value
- Functions use always a "result" variable for return
- Functions are always defined inline
- Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
2021-10-03 11:44:59 +02:00
Chris
9882796df0
Rename BRDG typo to BDRF ( #2028 )
2021-10-02 14:07:42 +02:00
raysan5
b63c2619e3
Update Makefile for web compilation
...
Some flags are only for the linker, not the compiler
2021-09-10 19:01:09 +02:00
procfxgen
a422d2fc8b
Vox loaded ( #1981 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
* * vox_loader.h -> Support custom memory allocators
* vox_loader.h -> Reverse Y<>Z for left to right handed system
* models/models_magicavoxel_loading.c -> fix model center
* * vox_loader.h -> Removed Raylib dependencies
* * Changed Vox_LoadFileName to Vox_LoadFromMemory
2021-09-10 15:24:01 +02:00
procfxgen
dfc465ca6d
new models_magicavoxel_loading example ( #1940 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
2021-09-04 19:55:09 +02:00
Ray
59e7275464
REVIEWED: Glyphs
2021-09-02 00:35:55 +02:00
Ray
9362eaf9c6
REVIEWED: Naming: length vs size
2021-09-01 23:40:51 +02:00
Ray
6e76baa6a9
WARNING: BREAKING: RENAMED: Font struct variables
...
RENAMED: GetCodepointsCount() -> GetCodepointCount()
RENAMED: GetTouchPointsCount() -> GetTouchPointCount()
2021-09-01 23:11:31 +02:00
Ray
68bcfa1192
Minor tweak
2021-08-28 22:54:47 +02:00
Ray
3d33c559e7
REVIEWED: Examples compilation
2021-08-26 00:14:34 +02:00
Ray
7749a2805c
UPDATED: raygui to latest version -WIP-
...
Note this new raygui version embeds ricons and `GuiTextBoxMulti()` is not working properly
2021-08-25 00:51:37 +02:00
Ray
a04dbe7ffd
Update shaders_shapes_outline.c
2021-08-25 00:41:48 +02:00
Ray
913f185f82
Renamed some static functions for more consistent naming
2021-08-25 00:22:16 +02:00
Ray
51fbde178f
Update shaders_shapes_outline.c
2021-08-22 01:08:27 +02:00
raysan5
5a259fa10f
WARNING: REMOVED: DrawTextRec() and DrawTextRecEx()
...
- DrawTextRec() and DrawTextRecEx() have been moved to example, those functions could be very specific depending on user needs so it's better to give the user the full source in case of special requirements instead of allowing a function with +10 input parameters.
2021-08-11 18:31:32 +02:00
Ryan Roden-Corrent
e6fe8169c2
Fix Makefile to build WASM examples. ( #1906 )
...
* Fix Makefile to build WASM examples.
- Add --preload-file flag before specifying the resource dir
- Add empty resource dir to `shapes/` (otherwise wasm-ld will fail)
- Add wasm outputs to .gitigore
* Delete .gitignore
Co-authored-by: Ray <raysan5@gmail.com>
2021-08-07 23:30:48 +02:00
raysan5
7ca9131fd4
Update rlgl_standalone.c
2021-08-07 11:58:39 +02:00
raysan5
5b6d83b533
REVIEWED: rlgl defines for consistency
2021-07-31 19:46:44 +02:00
raysan5
7013e60926
Update models_rlgl_solar_system.c
2021-07-31 18:44:07 +02:00
raysan5
73c8ddc8bf
REVIEWED: raylib_opengl_interop
2021-07-31 18:36:06 +02:00
raysan5
0f8cfd6031
Update rlgl_standalone.c
2021-07-30 13:52:00 +02:00
raysan5
b4fddf146b
REVIEWED: Added new mechanism to avoid data types collision between modules that share same data types and can be used in standalone mode
2021-07-30 13:44:52 +02:00
raysan5
aeb1a0da84
REVERTED: Removed the need for rlMatrix
...
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like
`#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-30 12:54:54 +02:00
raysan5
71373ee524
Update Makefile
2021-07-30 12:48:09 +02:00
raysan5
8b7f43f89b
WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-
...
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed.
- REMOVED: `Texture2D`, `Shader` structs dependency
- REMOVED: `Vector3`, `Matrix` structs dependency
- REMOVED: raymath functions dependency, all required math is implemented in rlgl
- ADDED: `rlMatrix` custom rlgl type
- ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types
- ADDED: `rl` prefix to all `rlgl` structs
- Other small tweaks here and there
2021-07-29 21:57:50 +02:00
raysan5
8fecf45f4c
REVIEWED: rnet include from extras
2021-07-28 19:48:20 +02:00
raysan5
c219fc02cd
Review includes to use extras libraries
2021-07-28 17:29:49 +02:00
raysan5
75d675ab4d
Review physac.h path
2021-07-28 17:21:34 +02:00
raysan5
0352aa2094
Replace TABS by 4 spaces
2021-07-28 12:55:38 +02:00
raysan5
a9230a6c07
Update shapes_logo_raylib_anim.c
2021-07-28 12:50:18 +02:00
Ray
0fa295c72d
Review formating to follow raylib style conventions
2021-07-23 18:16:08 +02:00
GoldenThumbs
64e786fe28
Add example shaders_shapes_outline.c ( #1883 )
2021-07-18 23:45:13 +02:00
raysan5
56cab4b6a9
REVIEWED: shaders_basic_lighting #1865
...
Simplified the example
2021-07-16 17:18:32 +02:00
raysan5
db4cfc9fbd
Reviewed resources licenses
2021-07-16 16:10:35 +02:00
raysan5
7d2845a661
Improve assets license information
2021-07-16 14:29:20 +02:00
raysan5
30a3dae8a6
Update texel_checker.png
2021-07-16 14:27:56 +02:00
Daniel Nagy
8a46b5e6c0
Use 60 FPS for textures_image_loading example ( #1867 )
2021-07-11 18:47:31 +02:00
raysan5
a958cebdd9
Update audio_raw_stream.c
2021-07-05 19:47:50 +02:00
raysan5
e6aa713a37
REVIEWED: Need to set default buffer size for raw data #1770
...
This design should probably be changed...
2021-07-05 19:45:57 +02:00
raysan5
1fe137db44
Create core_basic_screen_manager.png
2021-06-30 18:54:36 +02:00
raysan5
fe8dad48e2
ADDED: EXAMPLE: core_basic_screen_manager
2021-06-30 18:53:55 +02:00
raysan5
a6728a2203
REVIEWED: emscripten versions
2021-06-30 17:12:58 +02:00
Ray
e5cf3f9555
WARNING: BREAKING: Functions renamed for consistency
...
RENAMED: GetTextureData() -> LoadImageFromTexture()
RENAMED: GetScreenData() -> LoadImageFromScreen()
2021-06-28 09:39:31 +02:00
raysan5
0624af09fd
Update raygui.h
2021-06-26 21:11:34 +02:00
raysan5
2f75657350
WARNING: REMOVED: Some deprecated function names mapping
...
Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed...
2021-06-26 21:07:00 +02:00
Hristo Stamenov
71700254b4
Major revamp gltf ( #1849 )
...
* Added my own model and license to Raylib exclusively created by me and provided for use in the examples (and other projects if anyone decides to)
* Use animation vertices on initial load if possible.
* Added girl model to model example
* Revamped GLTF model loading as it was wrong by default. Also updated some comments.
GLTF models were loaded only by mesh but they should be loaded recursively by hierarchical nodes because tehre are some static node transformations that are to be applied to the vertices. It also resulted in more meshes being included in some models.
It is the correct way of loading GLTF and what is suggested in the official examples.
Currenlty limiting to only one scene but more can be included later.
* Refactored the new names and structure of extracted functions.
* Safer and easier read value.
* Made reading easier for accessor->bufferView->buffer in GLTF.
Now there is no need to check for supported types or anything.
* Correct inclusion of limits.h in the cases of MSVC based compilers vs the world
* Removed weird example file
2021-06-26 13:22:00 +02:00
Ray
e0720a0a55
WARNING: REVIEWED: Default shader uniform names
...
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25 13:35:43 +02:00
Ray
43efe92e21
Update core_basic_window.c
2021-06-24 10:39:43 +02:00
Ray
7203acdef9
Minor format tweaks
2021-06-23 09:59:11 +02:00
Ray
3db26f82ea
WARNING: BREAKING: Functions renamed!
...
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer.
ADDED: UnloadCodepoints() to safely free loaded codepoints
RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-23 09:58:49 +02:00
Ray
716e26aa37
Review BeginTextureMode() usage
...
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
2021-06-23 01:25:09 +02:00
Ray
f989048bda
Reviewed example
2021-06-23 01:16:21 +02:00
Ray
49d2897b24
Update core_custom_frame_control.c
2021-06-22 21:24:15 +02:00
Ray
6f60622619
ADDED: Example: core_custom_frame_control
2021-06-22 21:20:14 +02:00
Ray
0e65e5877f
Update rlgl_standalone.c
2021-06-17 12:54:05 +02:00
Ray
3ae40c35e6
Update examples_template.c
2021-06-16 14:09:28 +02:00
Francisco Javier Andrés Casas Barrientos
4dd5643402
Added missing null terminator ( #1820 )
...
Added missing null terminator when adding characters to the string, otherwise garbage values are read (often zeros which are equal to '\0', but not every time).
This error results in random characters appearing in the text box every one in a while:
```
asdfg??? ll??
```
It is corrected with the proposed fix.
This problem was observed by my student, Gonzalo Rivera Lazo.
2021-06-10 20:24:08 +02:00
Ray
e00d2439b9
WARNING: BREAKING: Consistency renamings
...
RENAMED: InitAudioStream() -> LoadAudioStream()
RENAMED: CloseAudioStream() -> UnloadAudioStream()
2021-06-03 23:36:47 +02:00
Ray
7e68e733f5
Update models_material_pbr.c
2021-06-03 21:04:23 +02:00
Ray
0565fb9fb6
Update models_mesh_picking.c
2021-06-03 20:58:04 +02:00
Ray
121c689b78
Review code formatting
2021-06-03 20:25:28 +02:00
Crydsch
edeaff4bd4
Better collisions ( #1803 )
...
* review collisions ray-box and ray-sphere
* Applied raysan's refactor
Improved GetRayCollisionBox
* Replace GetRayCollisionGround with GetCollisionQuad
* Update example core_3d_picking
* Update example models_loading
* Fixed issues after merge
* remove debug stuff
Co-authored-by: Cry dsch <chris.obo@gmx.net>
2021-06-03 20:15:27 +02:00
Ray
2370af598e
Reviewed example: core_split_screen
2021-06-03 19:35:36 +02:00
Jeffery Myers
deaa84d28d
Add a split screen example showing render texture use and multiple cameras. ( #1806 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-06-03 19:09:43 +02:00
Ray
23398f0198
Update Makefile
2021-05-31 19:02:26 +02:00
Ray
e991fefb89
Update Makefile
2021-05-31 18:51:56 +02:00
Ray
d39d26f275
Update models_loading.c
2021-05-31 18:36:03 +02:00
Ray
9cc2cee936
Update text_draw_3d.c
2021-05-31 18:32:35 +02:00
Ray
b359a1575e
Update core_3d_picking.c
2021-05-31 18:27:53 +02:00
Ray
1c5de9721a
WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781
...
- RENAMED: RayHitInfo to RayCollision
- RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-31 11:41:56 +02:00
Hristo Stamenov
470574517a
Implement vertex color attribute for GLTF and IQM ( #1790 )
...
Added a simple cube with vertex colors for testing both.
2021-05-26 20:23:13 +02:00
Ray
1c7c8c682c
REVIEWED: models_skybox #1792 #1778
2021-05-26 20:21:37 +02:00
Ray
b36422083e
Remove headers from shaders
2021-05-22 16:09:34 +02:00
Ray
e401d5c48e
WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()
...
Renamed for consistency with other function in raylib.
2021-05-20 19:24:28 +02:00
Ray
7b6b87ec5b
Update VS2019 project: rlgl_standalone
2021-05-20 19:14:20 +02:00
Gianni Alessandroni
a84e98ba6c
Hotfix for smooth pixel-perfect camera example [core_2d_camera_smooth_pixelperfect.c] ( #1771 )
...
* Hotfix for glitchy camera
Super small fix that was causing the camera to glitch every x amount of seconds/pixels. Works much better now, 3/4 lines changed.
* fixed dumb visual studio formatting problems
2021-05-14 18:06:47 +02:00
Gianni Alessandroni
4ab28fffb4
Added smooth pixel-perfect camera example + Small typo fix in examples_template.c ( #1760 )
...
* Typo fix
Changed "bsasic" to "basic" in the comments.
* Added pixel-perfect camera example
Added pixel-perfect camera example, both the .c file and the cover .png image. The example works with any resolution you want, as long as the ratio stays the same
(ex. 16:9, 4:3) ecc.
* Fixed Typecasts
Fixed compiler errors (implicit conversions)
* Precomputed rectangles, time-based movement and whitespace fix
Moved the source and destination rectangles for the renderTexture into their own variables, modified the animation to be time-based instead of frame-based, fixed the bug with whitespaces.
* Fixed spacing and added more consistency with sinf() and cosf()
* Fixed *= operator spacing
2021-05-10 20:16:12 +02:00
Lambert Wang
e39e45824d
Add RenderPolyLinesEx routine ( #1758 )
...
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-10 20:08:58 +02:00
Lambert Wang
2545f62565
Added support for additional mouse buttons ( #1753 )
...
* Added support for additional mouse buttons
* Renamed mouse button enum
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-08 18:26:24 +02:00
Ray
b62c86572e
REVIEWED: raudio_standalone #1752
2021-05-07 15:38:13 +02:00
Ray
c4eaf0076d
Update raylib version
2021-05-04 11:19:28 +02:00
Jeffery Myers
b663724293
Generate a mesh in client code. ( #1735 )
2021-04-26 17:30:07 +02:00
Jeffery Myers
6c518008a5
Fixes for 64 bit typecast warnings ( #1733 )
2021-04-25 18:50:26 +02:00
Ray
f4abc05d62
Update README.md
2021-04-23 13:21:57 +02:00
Ray
8a55c60e47
Update shaders_mesh_instancing.c
2021-04-23 09:09:34 +02:00
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +02:00
Ray
1161df0ee4
Added screenshots
2021-04-22 18:34:33 +02:00
Ray
715a46277e
Update README.md
2021-04-22 18:33:59 +02:00
Ray
5ef777219a
Reviewed templates Makefiles
2021-04-21 21:23:04 +02:00
Stephan Soller
93d3212914
[examples] Added an example for raylib OpenGL interop ( #1726 )
...
* Added an example for raylib OpenGL interop.
* Removed C99 variable-length array to fix MSVC errors
* Moved the opengl interop example from shaders to others.
2021-04-19 20:28:14 +02:00
Stephan Soller
7f1068ef96
Added zoom independent sharp edges to the SDF text example. ( #1727 )
2021-04-19 19:40:34 +02:00
noloop
8453ff837b
Fix old directories used and windows/linux portability ( #1722 )
...
* Fix olds directories used and windows/linux portability
* Fix windows/linux portability
2021-04-16 00:25:40 +02:00
Ray
d7b6505f64
Update Makefile
2021-04-14 21:05:23 +02:00
Ray
45c964c1e6
Update core_vr_simulator.c
2021-04-07 12:30:45 +02:00
Ray
bafa13f207
Update core_vr_simulator.c
2021-04-07 12:27:11 +02:00
Ray
bdc5686e4c
Update shaders_julia_set.c
2021-04-07 12:25:04 +02:00
Ray
ed96bc6441
Update core_vr_simulator.c
2021-04-07 12:24:43 +02:00
Ray
b3f75b91ff
REDESIGNED: Vr stereo mode
2021-04-06 23:23:03 +02:00
Ray
84d0d21f23
Reviewed Vr stereo
2021-04-06 23:06:03 +02:00
Ray
71b86bf4d0
REDESIGNED: Vr stereo rendering
2021-04-06 22:49:41 +02:00
frithrah
b2545e053a
Minimum number of segments in circle sector functions changed from hard-coded to based on degree range. ( #1707 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-04-06 14:29:58 +02:00
raysan5
46650b5fb1
Reviewed skybox and pbr examples
2021-04-02 15:41:44 +02:00
raysan5
51f3129c5d
Reviewed examples
2021-04-02 15:34:32 +02:00
raysan5
ccdf7ff335
REDESIGN: Move GenTexture*() functions to PBR example #721
...
Removed functions from rlgl module.
2021-04-02 14:29:33 +02:00
raysan5
736d5920c7
Update core_input_gamepad.c
2021-04-01 20:22:52 +02:00
raysan5
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
raysan5
c772de702b
REVIEWED: DrawMeshInstanced() matrix computations
...
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31 19:59:23 +02:00
raysan5
fd3e2fda00
RENAMED: example: shaders_mesh_instancing
...
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31 18:40:04 +02:00
raysan5
00e71faed6
REVIEWED: text_draw_3d, code formatting
2021-03-28 21:09:34 +02:00
raysan5
8f3e91ae83
REVIEWED: models_gltf_model #1684
2021-03-28 20:15:57 +02:00
raysan5
bc6b16beb2
REVIEWED: DrawTexturePoly()
2021-03-28 20:07:59 +02:00
Vlad Adrian
668ba870e4
Added draw 3d text example ( #1689 )
2021-03-28 16:08:14 +02:00
Ray
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
Ray
c6828070dc
Update models_yaw_pitch_roll.c
2021-03-26 00:11:48 +01:00
chriscamacho
9569d6a802
Add DrawTexturedPoly and example ( #1677 )
...
* adds DrawTexturedPoly with example
* the actual example ... ahem
* moved DrawTexturePoly to textures function and example
NB function name changed to fit with other DrawTextureXXX functions
(no "d" )
Co-authored-by: codifies <you@example.com>
2021-03-25 14:22:10 +01:00
Ray
dd59350485
REVIEW: instancing example formating
2021-03-25 13:41:32 +01:00
Max
7e58838895
added animation and keyboard controls to rlgl mesh Instancing example ( #1678 )
2021-03-25 11:12:59 +01:00
Ray
60bfee4a7d
Added security check for render batch #1670
2021-03-23 23:45:14 +01:00
Ray
71fe0bff95
Update text_raylib_fonts.c
2021-03-23 12:20:28 +01:00
Ray
89278953ae
Update text_raylib_fonts.c
2021-03-23 12:20:11 +01:00
Ray
6f5a4a9351
REVIEWED: rlgl_standalone usage
2021-03-23 11:51:09 +01:00
Jeffery Myers
e48b9a6da1
[Examples] Warning fixes (pt 1) ( #1668 )
...
* Fix some warnings in examples.
* cleanups from review
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-23 07:51:52 +01:00
Rabia Alhaffar
8e1e1ef970
Changed IsKeyPressed('R') to IsKeyPressed(KEY_R) for Physics examples! ( #1666 )
2021-03-22 16:44:12 +01:00
Ray
ed4ca6a7f3
WARNING: BREAKING: rlgl module redesign -WIP-
...
- Some rlgl functions have been moved to core
- Some functions have been made internal to rlgl
- rlgl functions prefixed with rl*()
2021-03-21 01:29:31 +01:00
Ray
a76fcaba3e
BIG CHANGE: REDESIGNED: Vr device simulator #1582
...
Vr simulator has been moved to core module and completely redesigned. Now user is in charge of stereo-render fbo and also in full control of distortion shader. Code is a bit more complex but better aligned with other raylib examples.
2021-03-20 18:36:25 +01:00
Ray
4fba09794f
Example considering HighDPI on RenderTexture draw #1086
2021-03-20 13:34:06 +01:00
Ray
75882f3254
Delete Avocado.glb
2021-03-20 00:02:28 +01:00
Ray
442abaab72
Updated example assets
2021-03-19 22:39:39 +01:00
Ray
be8d5a7ae2
RENAMED: camera.type -> camera.projection
2021-03-19 20:14:14 +01:00
frithrah
2f367a905e
Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. ( #1656 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-03-19 19:13:55 +01:00
Ray
7a566a07ea
Update text_input_box.c
2021-03-19 19:12:08 +01:00
Ray
8527dbc6e2
WARNING: REMOVED: GamepadNumber enum
2021-03-19 18:16:05 +01:00
Ray
07d82a91c5
WARNING: BREAKING: RENAMED: camera.type to camera.projection
2021-03-19 13:56:46 +01:00