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
Mansour Quddus
4f43ceb0d2
add missing space in one of the cameraDescriptions ( #2977 )
2023-03-21 08:31:29 +01:00
Ray
2e02474b7a
Update core_loading_thread.c
2023-03-19 11:25:29 +01:00
Ray
8ca3212701
REVIEWED: UpdateCameraPro() to use Vector3
2023-03-12 19:40:43 +01:00
Ray
f9c4cc2040
ADDED: UpdateCameraPro() -Experimental-
...
REVIEWED: rcamera module formating
REVIEWED: `core_3d_camera_example`
2023-03-12 19:28:42 +01:00
Ray
614e0518a7
Remove trailing spaces
2023-03-06 14:58:58 +01:00
Ray
6897b43599
REVIEWED: core_drop_files #2943
2023-03-03 20:13:35 +01:00
Ray
ea590c44a9
REVIEWED: Camera redesign PR
2023-02-14 20:00:51 +01:00
Crydsch Cube
73989a4981
WIP rcamera redesign vector ( #2563 )
...
* core functionality CAMERA_FREE
* fix example
* add remaining camera modes
* add view bobbing
* view bobbing
* catch curser in SetCameraMode
* adjust examples
* fix compilation on linux
* fix example text_draw_3d
* actually fix text_draw_3d
* Updated camera API
* Improve Vector3RotateByAxisAngle() function
* remove camera.mode dependency from low-level functions
* remove camera.mode from struct
* fixes after rebase
* adjust examples for new UpdateCamera function
* adjust example models_loading_m3d
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-02-14 17:47:21 +01:00
Antonis Geralis
212f331583
Update core_input_gamepad.c ( #2903 )
2023-02-01 15:13:25 +01:00
Jeffery Myers
81ca2f0bf3
Fix warnings and bad project settings for 4.5 release ( #2894 )
2023-01-27 19:20:42 +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
Antonis Geralis
1dbcce8b56
Use explicit atomics ( #2849 )
...
* Use explicit atomics
* missed one
* use relaced ordering
2023-01-02 16:48:53 +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
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
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
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +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
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
raysan5
736d5920c7
Update core_input_gamepad.c
2021-04-01 20:22:52 +02: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
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
442abaab72
Updated example assets
2021-03-19 22:39:39 +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
Ray
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00
Ray
915b0780d6
Update core_3d_picking.c
2021-03-08 19:19:43 +01:00
Jeffery Myers
48a7cd3c87
[Examples] Fix typecast warnings in examples. ( #1601 )
...
* Fixing typecast warnings generated by visual studio 2019 in examples.
* Changes to fixes based on feedback
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-02-20 23:37:32 +01:00
Rabia Alhaffar
d96b422809
Fixed example doesn't show gamepad for Xbox 360 controllers with different drivers ( #1597 )
2021-02-18 21:52:39 +01:00
raysan5
00a0461c7a
REDESIGNED: VS2019 build paths
...
REMOVED: core_basic_window.cpp
2021-02-09 14:06:40 +01:00
raysan5
abdd57db0b
Review comments formating
2020-12-28 11:19:05 +01:00
Matheus Duarte
227496bea7
providing and example on how to apply the screen scale (as done in the virtual mouse) to the real mouse, to work with raygui ( #1481 )
2020-12-28 11:10:39 +01:00
raysan5
b68e522ffc
Updated several files while porting examples to web
2020-12-24 13:51:24 +01:00
raysan5
d9a9bacb48
Review formatting
2020-12-23 20:30:00 +01:00
Ray
62406259d7
Corrected minor windows flags issues
2020-12-03 20:33:46 +01:00
Ray
7955381fb3
Update core_basic_window.c
2020-12-03 20:19:32 +01:00
Ray
7e9028ae08
Update user name
2020-12-03 20:17:50 +01:00
Ray
1c9726fd8c
Update core_window_flags.c
2020-12-03 20:17:21 +01:00
Ray
3d1ae3500c
REVIEWED: Window state flags -WIP-
...
WARNING: Several functions removed, replaced by SetWindowState() / ClearWindowState() equivalents, only for advance users.
ADDED: ClearWindowState() to reset window state
REMOVED: HideWindow() / UnhideWindow()
REMOVED: DecorateWindow() / UndecorateWindow()
2020-11-23 23:46:05 +01:00
Ray
468a0bedd8
REDESIGNED: Window state config #1367 -WIP-
...
Some flags not working properly yet...
2020-11-23 00:49:27 +01:00
Ray
8e15dae5ed
Review contributed examples
2020-11-01 13:39:48 +01:00
Ray
41192c6d4a
Replace 0.f by 0.0f
2020-10-05 20:19:18 +02:00
Ray
a4ea9f872f
Review "aggregate initializations" #1403
2020-10-05 20:04:33 +02:00
chriscamacho
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
...
Co-authored-by: codifies <nospam@antispam.com>
2020-08-23 21:01:26 +02:00
raysan5
c32ae480af
RENAMED: FormatText() -> TextFormat()
...
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
2020-08-16 11:28:15 +02:00
raysan5
6fb5207694
Update resources LICENSE
2020-07-14 19:17:08 +02:00
raysan5
fed4716c3b
resources PNG chunks cleaning
2020-05-28 21:18:58 +02:00
Mickaël Malécot
0bd64b7975
Gamepad axis bug fixes and improvement ( #1228 )
...
* Fix gamepad axis count
* Fix Xbox axis drawing
* Ignore low axis values
* Revert "Fix gamepad axis count"
This reverts commit f08ae4bf
* Fix GamepadAxis API
* Fix conflict with master
* Revert Gamepad MAX definitions
* Revert MAX_GAMEPAD_AXIS update
2020-05-09 12:39:41 +02:00
raysan5
6a8e4795da
Update core_input_multitouch.c
2020-05-01 18:16:04 +02:00
raysan5
00b3199859
Added raymath to examples
2020-04-16 13:49:19 +02:00
raysan5
44961d1975
Update core_basic_window.c
2020-03-30 16:09:09 +02:00
raysan5
a5e1aff99b
[example] Integrate virtual mouse in main example
2020-03-28 18:36:30 +01:00
raysan5
05abaee0e0
Update core_window_letterbox_virtual_mouse.c
2020-03-24 19:10:50 +01:00
Anata
c45fe62abc
Add files via upload ( #1147 )
...
Virtual mouse with window letterbox, and Clamp
2020-03-24 14:25:44 +01:00
Ray
5ff0776235
Remove trail spaces and some tweaks
2020-02-27 13:33:09 +01:00
Ray
23bde477e5
REDESIGN: LoadStorageValue()/SaveStorageValue()
...
Using new file I/O ABI
2020-02-27 13:18:15 +01:00
Ray
2294947660
Update core_storage_values.c
2020-02-26 23:42:41 +01:00
Ray
cacd4a9d90
Some examples tweaks
2020-01-30 12:27:04 +01:00
Ray
9f79ed2972
Create core_2d_camera_platformer.png
2020-01-09 13:23:40 +01:00
Ray
91faf72dda
Rename and review: core_2d_camera_platformer
2019-11-25 13:06:56 +01:00
Ray
5ad65d9291
Minor format tweaks
2019-11-25 11:26:26 +01:00
arvyy
97101d1003
Add screen->world and world->screen functions for 2D; add extended camera2D example ( #947 )
2019-08-27 13:05:28 +02:00
raysan5
20257f3e49
Uniform initialization not supported on GLSL 100
2019-08-20 21:17:06 +02:00
Ray
ce8d7042c6
PR formatting review
2019-08-16 16:15:47 +02:00
arvyy
d8b8c0f3fc
change Camera2D behavior ( #945 )
2019-08-16 16:09:50 +02:00
Leandro Gabriel
89c16baf18
Replace tabs with spaces and update year of copyright notices ( #927 )
...
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
2019-08-03 11:07:41 +02:00
João Coelho
68ffbc06c7
explained a bit more the core_window_letterbox example ( #925 )
2019-08-02 15:16:43 +02:00
raysan5
602d2a65dd
Reviewed new examples
2019-07-28 15:09:01 +02:00
ChrisDill
879c874330
Added scissor test and mouse painting examples proposed in #890 ( #919 )
...
- Updated Makefile with new examples
2019-07-28 11:12:13 +02:00
Ray
434e460c18
Example instructions tweak for clarity
2019-05-31 16:42:16 +02:00
Ray
efdc6f87d5
Define standard examples size
2019-05-29 13:47:57 +02:00
Ray
87774a0a21
Review variables initialization
2019-05-27 00:18:15 +02:00
Ray
3dfbeb5488
Update core_3d_picking.c
2019-05-21 10:16:39 +02:00
Ray
b525039e0a
Review ALL examples
2019-05-20 16:36:42 +02:00
Ray
f44dfa1ef2
Implement VR distortion shader for GLSL 100
2019-05-16 15:30:03 +02:00
Ray
424d3ca8d9
examples review
...
Redesigns, deletes and renames
Also noted authors propertly on contributed examples
2019-05-14 15:34:23 +02:00
Ahmad Fatoum
6681fd7df2
examples: core_loading_thread: fix race condition
...
A plain variable is insuffecient for inter-thread communication. Both the
compiler and the processor may reorder accesses. The compiler could even
cache dataLoaded with the result that STATE_FINISHED becomes unreachable.
Fix this by using C11 atomic_bool, which guarantees sequential consistency.
This fixes #827 .
2019-05-04 21:23:19 +02:00
Ahmad Fatoum
53d9beb534
examples: core_loading_thread: use symbolic names for state machine states
...
And while at it, use a switch clause to make the state machine
structure clearer.
2019-05-04 17:15:48 +02:00
Ray
34feacc148
new example: core_loading_thread
...
Data loading in a second thread with progress bar in main thread
2019-05-02 12:22:54 +02:00
Reece Mackie
f36ba6a2f4
Damn, made a mistake
2019-04-28 16:32:05 +01:00
Reece Mackie
948a442704
Update gamepad example to use new enums
2019-04-28 16:20:14 +01:00
Ray
99537efccf
Review some examples
2019-04-12 13:29:53 +02:00
Ray
24f07aaf5a
new example: core_window_scale_letterbox
2019-04-11 17:40:13 +02:00
Ray
5bfa675350
Review VR simulator mechanism
...
- No default VR device parameteres inside raylib
- VR device parameter should be provided by user
- VR distortion shader should be provided by user
2019-04-11 13:53:01 +02:00
Ray
2f56119568
Corrected issue when scaling
2018-12-18 18:19:11 +01:00
Berni8k
7a712d00e6
Added multitouch example
2018-10-21 10:10:50 +01:00
raysan5
6f61e26a3c
Reviewed custom logging functionality
2018-07-28 17:57:05 +02:00
Pablo Marcos Oltra
c69f7953c7
Add SetTraceLogCallback to enable users setting custom logging ( #597 )
2018-07-26 21:57:45 +02:00
Ray
096fd6f2c3
Converted rlgl module in header-only
...
This change allows rlgl.h usage as independent single-file header-only module... still some tweaks required, like removing GLAD dependency... required extensions could be manually loaded!
Also removed shader_distortion.h, embedded in rlgl.h
2018-07-16 17:53:47 +02:00
Ray
245704df72
Reviewed examples
2018-05-11 18:14:51 +02:00
Ray San
6045062a05
Renamed some functions
...
- Renamed Begin3dMode() --> BeginMode3D()
- Renamed Begin2dMode() --> BeginMode2D()
- Renamed End3dMode() --> EndMode3D()
- Renamed End2dMode() --> EndMode2D()
2018-05-04 16:54:05 +02:00
Ray San
6324697ffd
Rectangle parameters changed to float
...
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
2018-05-04 16:25:31 +02:00
raysan5
198d739256
BREAKING CHANGE: Renamed Camera -> Camera3D
...
Just added a fallback in the meantime...
2018-05-01 12:31:03 +02:00
Ray San
4cc12ef2b3
Review camera definition on examples
2018-04-11 10:13:00 +02:00
maficccc@gmail.com
551cf50685
Fix Uninitialized argument value
2018-04-02 13:30:20 +02:00
Ray
1ef818b032
Update example
2017-10-20 13:59:08 +02:00
Ray
1375a616b2
Some examples code tweaks
2017-10-20 00:18:21 +02:00
raysan5
74fd671763
Remove old comment...
2017-08-24 23:57:34 +02:00
Ray
c47b04a2c6
Working on web examples
2017-04-05 00:29:39 +02:00
Ray
fdf8501e81
Improve vr support and simulator
2017-04-05 00:02:40 +02:00
Ray
dd4dd0e87d
Reorganize examples folder
2017-04-04 01:54:49 +02:00