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