Commit Graph

139 Commits

Author SHA1 Message Date
Ray 3c51d066f1 Avoid using `DrawCubeTexture()` 2022-11-15 12:26:22 +01:00
Ray 07bbfe86b9 Update core_basic_window.c 2022-10-11 22:28:40 +02:00
murilluhenrique eaa0b9102b
Fix typo (#2696) 2022-09-16 00:06:25 +02:00
hartmannathan c1b4881e8a
examples/core/core_custom_logging.c: Fix typo (#2692) 2022-09-08 16:10:15 +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
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
Ray 5840cd6e50 Remove unneeded comment 2022-08-02 18:12:57 +02:00
sDos280 d59ea21405
removing typo in line 41 line, presssed -> pressed (#2602) 2022-07-31 01:51:25 +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 9e97a2c4a1 ADDED: example: `core_window_should_close` 2022-07-07 11:07:41 +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 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 c1b01c0d5d Added new comment to examples 2022-06-21 19:53:18 +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 e6bc401c93 WARNING: RENAMED: `GetDroppedFiles()` to `LoadDroppedFiles()`
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +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
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 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
raysan5 628e6e52f3 Update examples screenshots 2021-10-17 21:39:52 +02:00
raysan5 cf12992b6a Remove trailing spaces 2021-10-17 21:00:20 +02:00
raysan5 c20df9aa47 Reviewed examples 2021-10-17 19:10:09 +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
Ray 3d33c559e7 REVIEWED: Examples compilation 2021-08-26 00:14:34 +02:00
raysan5 7d2845a661 Improve assets license information 2021-07-16 14:29:20 +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 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
Ray 43efe92e21 Update core_basic_window.c 2021-06-24 10:39:43 +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 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 b359a1575e Update core_3d_picking.c 2021-05-31 18:27:53 +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 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
Jeffery Myers 6c518008a5
Fixes for 64 bit typecast warnings (#1733) 2021-04-25 18:50:26 +02:00