24dae29a03
Review latest PR and some formatting
2021-03-22 20:41:33 +01:00
2c0a533948
[AUDIO] Music Looping enhancements ( #1665 )
...
* Add loop functions for music files.
Tell xm tracker to loop tracker when loop state changes.
Don't let looped xm tracker streams restart, they are infinite
Use modulo to make time tracker for xm looped streams work correctly.
* Remove loop functions, set XM loop in update based on flag.
Formatting cleanups.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com >
2021-03-22 20:36:13 +01:00
8e1e1ef970
Changed IsKeyPressed('R') to IsKeyPressed(KEY_R) for Physics examples! ( #1666 )
2021-03-22 16:44:12 +01:00
b573ff3e7a
[AUDIO] Use device native sample rates ( #1660 )
...
* Init MinAudio to a sample rate of 0 to let the device pick the rate.
Read the rate from the device after it starts up.
Convert AUDIO_DEVICE_SAMPLE_RATE from a #def into an int, that is set from the device's rate
Set all sample systems to use the AUDIO_DEVICE_SAMPLE_RATE as the target rate to minimize resampling.
* use device sample rate instead of separate var
let config define a device sample rate if it wants to, but let the default be 0 for native rate.
* Don't use fixed sample rates for tracker files.
Remove config default audio buffer size and replace with a function that computes one for a reasonable frame rate at the output sample rate.
2021-03-21 22:07:55 +01:00
c37f61d31f
REVIEWED: rlgl module #1523
2021-03-21 20:31:35 +01:00
e0e68aad54
Update Makefile
2021-03-21 18:33:16 +01:00
2f943aaff0
Reverting align change #1658
2021-03-21 18:32:05 +01:00
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
f4f6f665f7
Fixed possible issue with memory alignment #1658
2021-03-20 21:02:20 +01:00
dcde99bbb8
Corrected issue with HighDPI on macOS
2021-03-20 20:58:24 +01:00
364fbbd283
Review Discord link with Vanity URL
2021-03-20 20:22:44 +01:00
95f9a6171b
Review HighDPI macOS support #1510
2021-03-20 20:06:38 +01:00
f4d6bad607
Considering the window's scale when setting the viewport. ( #1659 )
...
This appears to fix the issue with macOS windows opening with the wrong scale.
2021-03-20 19:57:29 +01:00
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
4fba09794f
Example considering HighDPI on RenderTexture draw #1086
2021-03-20 13:34:06 +01:00
5049137715
Added KEY_NULL #520
2021-03-20 13:08:13 +01:00
4fb6f4af75
Merge branch 'master' of https://github.com/raysan5/raylib
2021-03-20 13:02:53 +01:00
95282edaf9
REVIEWED: HighDPI support on macOS retina #1510
2021-03-20 13:02:44 +01:00
96e5e0dfb2
Fixed funny typo mistake... ( #1657 )
2021-03-20 01:18:44 +01:00
75882f3254
Delete Avocado.glb
2021-03-20 00:02:28 +01:00
442abaab72
Updated example assets
2021-03-19 22:39:39 +01:00
5967c1ba1a
REVIEWED: BeginMode3D()
2021-03-19 21:55:47 +01:00
be8d5a7ae2
RENAMED: camera.type -> camera.projection
2021-03-19 20:14:14 +01:00
9909068714
Removed trailing spaces
2021-03-19 19:43:44 +01:00
e28f754fbe
Reviewed latest PR: formatting and some comments
2021-03-19 19:42:36 +01:00
45670fbf2d
Optimize DrawTexturePro and DrawRectanglePro transformations ( #1632 )
...
* Optimize DrawTexturePro and DrawRectanglePro transformations
- Add check so rotation is only applied if rotation != 0.0f.
- Replace matrix usage by calculating the vertex data directly.
* Fix error with windows build and trim whitespace
2021-03-19 19:19:10 +01:00
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
7a566a07ea
Update text_input_box.c
2021-03-19 19:12:08 +01:00
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
2021-03-19 18:24:12 +01:00
3e25760950
REMOVED: GetMouseCursor()
...
This function could be confusing depending on the context, it's better to let the user track the current active cursor
2021-03-19 18:20:14 +01:00
8527dbc6e2
WARNING: REMOVED: GamepadNumber enum
2021-03-19 18:16:05 +01:00
07d82a91c5
WARNING: BREAKING: RENAMED: camera.type to camera.projection
2021-03-19 13:56:46 +01:00
d4e2c331b1
REVIEWED: BeginMode3D()
...
Simplified some code
2021-03-19 13:20:23 +01:00
a1d9987e7c
WARNING: BREAKING: REVIEWED some enums naming
...
Now enum names are more consistent between them.
2021-03-19 13:19:54 +01:00
664fbb87f5
REVIEWED: Material params #1649
...
Just assigned a fixed memory size for custom Material parameters in case of being required, so we shouldn't worry about allocating/freeing them.
2021-03-18 13:57:53 +01:00
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
2021-03-18 13:47:18 +01:00
8b0574a217
REVIEWED: DrawLine3D() #1643
2021-03-18 13:41:58 +01:00
0cbb3878c9
Merge branch 'master' of https://github.com/raysan5/raylib
2021-03-18 13:39:06 +01:00
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
2021-03-18 13:38:56 +01:00
45b1e3c72c
raylib-php && raylib-phpcpp support 3.5 ( #1654 )
2021-03-18 13:22:39 +01:00
e5834210d3
Update models_skybox.c
2021-03-17 19:40:59 +01:00
1cc838cef4
Update textures.c
2021-03-17 19:37:03 +01:00
bae423be41
Create reload.fs
2021-03-17 19:18:31 +01:00
ff6d5c8ddb
REVIEWED: shaders_multi_sample2d
2021-03-17 19:03:51 +01:00
aba69146f2
Support instancing in OpenGL ES 2.0 if available
...
Checking for extension and enabling it if available
2021-03-17 13:56:00 +01:00
3c76b5cc8e
Update to latest emscripten
2021-03-17 13:53:31 +01:00
811e241f22
Update dray bindings version to 3.5 ( #1650 )
...
I just updated dray to bind to the raylib 3.5 api.
2021-03-15 08:07:49 +01:00
bc9194690c
Implement UnloadModelAnimations ( #1648 )
2021-03-14 19:30:18 +01:00
f7e48c95cd
Added some comments on libc dependencies
2021-03-14 14:14:51 +01:00
1afd56dbf6
Use UnloadFileData()
2021-03-14 14:14:31 +01:00