Ray
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
Ray
ad5ffd78d6
REVIEWED: rlgl enums and comments
2022-09-05 11:15:28 +02:00
Ray
0917290e95
REVIEWED: M3D model loading #2688
2022-09-04 18:49:54 +02:00
Ray
f4b4054de5
REVIEWED: CheckCollisionPointPoly()
2022-09-04 10:45:01 +02:00
Jacek
aff98d7f2a
Check collision point polygon ( #2685 )
...
* Update raylib.h
* CheckCollisionPointPolygon()
* typo
2022-09-04 10:39:03 +02:00
Ray
082920eb80
WARNING: RENAMED exported symbol to raylib_version #2671
2022-09-02 21:35:08 +02:00
Ray
de968e3623
WARNING: RENAMED symbol raylibVersion to raylib_version
...
I want to note this is a special symbol exported
2022-09-02 21:32:58 +02:00
Ray
2a798d64a2
Export raylibVersion symbol. Fixes #2671
2022-09-02 21:28:19 +02:00
Ray
fb1037a241
ADDED: Complete support for M3D animations! #2648
2022-09-01 20:46:06 +02:00
Ray
64cca24526
ADDED: RL_TEXTURE_MIPMAP_BIAS_RATIO support to rlTextureParameters() for OpenGL 3.3 #2674
2022-09-01 11:18:22 +02:00
Ray
23cc39a265
Implemented latest .M3D improvements #2648
2022-09-01 10:27:16 +02:00
Ray
0c7ba773ec
Fixed issue with LoadIQM() #2676
2022-09-01 10:14:45 +02:00
Ray
7f5567eec0
Reviewed GLFW compilation requirements on Linux: _GNU_SOURCE
...
Reasons to NOT define `_GNU_SOURCE`:
- access to lots of nonstandard GNU/Linux extension functions
- access to traditional functions which were omitted from the POSIX standard (often for good reason, such as being replaced with better alternatives, or being tied to particular legacy implementations)
- access to low-level functions that cannot be portable, but that you sometimes need for implementing system utilities like mount, ifconfig, etc.
- broken behavior for lots of POSIX-specified functions, where the GNU folks disagreed with the standards committee on how the functions should behave and decided to do their own thing.
2022-08-28 15:48:12 +02:00
Ray
be2328f848
Update Makefile
2022-08-28 15:39:22 +02:00
Ray
568fe42cb1
Reviewed GLFW issue with ppoll() function
2022-08-28 15:37:09 +02:00
Ray
482dbfc52e
Avoid error on implicit-function-declaration
2022-08-28 15:28:57 +02:00
Ray
10ae54379a
Update posix_poll.c
2022-08-28 15:25:34 +02:00
Ray
2236197d49
Update rglfw.c
2022-08-28 15:20:16 +02:00
Ray
9e0e08cba4
WARNING: UPDATED GLFW to latest master branch!
...
WARNING: This could be a BREAKING CHANGE for some platforms! I'm afraid something could be wrong on `rglfw.c` module.
To be able to compile on Windows I had to modify `glfw/src/platform.c` line 74. I couldn't manage to compile without that change, help is welcome!
2022-08-28 14:16:51 +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
Ray
e92bc8ca4e
REVIEWED: M3D implementation #2648
2022-08-22 11:11:05 +02:00
Rodrigo Escar
aa4111a3b2
Fix PATH for Web target ( #2647 )
2022-08-21 11:45:37 +02:00
Daijiro Fukuda
7bb8ffc29e
Win32: resolve some symbols re-definition of windows.h in glfw3native.h ( #2643 )
...
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h
This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348
This enables to build with a external GLFW containing the
following fix:
* 05f6c13d11
Currently, glfw3native.h of the internal GLFW is customized at
2feea87b61
This fix is compatible with the current customized glfw3native.h.
This fix enables us to update it to the latest and remove the
customization.
* Win32: remove unneeded typedef
2022-08-21 11:44:16 +02:00
Ray
4ee5fdf619
ADDED: Support M3D model file format (meshes and materials) #2648
2022-08-20 14:01:54 +02:00
Ray
35c777ef2c
REVIEWED: Avoid crash on bad data provided
2022-08-18 15:11:23 +02:00
Ray
904c505125
minor tweak
2022-08-18 15:10:40 +02:00
Ray
2ad7967db8
REVIEW: Fix issue with external GLFW missing define #2638
2022-08-17 10:19:52 +02:00
Ray
bf2ad9df5f
P A I N
2022-08-13 22:42:38 +02:00
Ray
092b6f956e
WARNING: REVIEWED: rlCheckRenderBatchLimit()
2022-08-13 22:30:11 +02:00
Ray
48c7f65b77
minor tweaks
2022-08-13 22:28:47 +02:00
HarriP
e0b487c641
Fix string lacking null termination in IsFileExtension ( #2637 )
...
When file extension is longer or equal length compared to buffer holding lowercased string, strncpy does not null terminate the string.
Increased buffer size by 1 to ensure it will always be null-terminated, so that following strcmp does not read out of buffer bounds.
2022-08-13 17:36:29 +02:00
Dan Bechard
56072a631d
Fix Codepoint position truncation ( #2636 )
...
This truncation causes text that spans the zero coord boundary to round differently left or zero vs. right of zero, in turn causing letters to appear squished together. If you actually need the position to be an integer, you should instead `floorf()` the float, rather than doing an integer truncation, but I don't see any reason to convert it to an integer in the first place. Everything else in the equation is a float.
2022-08-13 11:18:57 +02:00
Ray
2c0071c851
Reviewed issue with negative key #2619
2022-08-07 19:19:18 +02:00
veins1
4b2357dc34
Can't alt-tab out of fullscreen window ( #2618 )
2022-08-06 18:42:52 +02:00
Ray
14990209ef
Added comments
2022-08-05 20:01:35 +02:00
veins1
d70e5cd26b
Small simplifications ( #2615 )
2022-08-05 12:16:49 +02:00
veins1
82b76149da
GetMusicTimePlayed bug fix ( #2614 )
...
GetMusicTimePlayed() was calculated using buffered frames, not played frames.
For example: calling LoadMusicStream->UpdateMusicStream->GetMusicTimePlayed would return non-zero value, even though no music was playing.
2022-08-05 08:36:59 +02:00
Ray
72b2d1335a
Update cgltf.h
2022-08-02 19:05:42 +02:00
Ray
d791c1cf64
Update miniaudio.h
2022-08-02 18:50:12 +02:00
Ray
94165a40b9
REMOVED: rmem library from raylib sources
...
Moved to own repo: https://github.com/raylib-extras/rmem
2022-08-02 18:50:08 +02:00
Ray
dd455c626e
Update rlgl.h
2022-08-02 18:33:00 +02:00
Ray
0ce8a8f360
Remove easings.h from raylib/src, moved to examples
2022-08-02 18:31:57 +02:00
Ray
df5514088e
REVIEWED: GetMouseWheelMove(), avoid move scaling on PLATFORM_WEB
...
Tested with latest emscripten 3.1.18
2022-08-02 18:07:44 +02:00
Ray
312fa64b88
Updated raylib resource data (32bit)
2022-08-02 18:06:00 +02:00
Ray
2a2c9e4da8
minor tweaks
2022-08-02 17:25:24 +02:00
Ray
d68ddda766
Added note for multi-threading web compilation
2022-08-02 09:59:12 +02:00
Ray
4492e64cb5
Update version
2022-08-02 09:27:13 +02:00
Ray
ed7548051b
Update version to 4.2
2022-08-02 09:21:03 +02:00
Ray
eb8d14e5b2
Update version to raylib 4.2
2022-08-02 00:36:59 +02:00
Ray
fd191a32ea
Remove trailing spaces
2022-08-02 00:36:31 +02:00
veins1
a6b3c8aa1e
Music doesn't stop looping fix ( #2605 )
...
This PR fixes a bug when music.looping is set to false but the music continues looping.
Also using proper functions to seek to start of an audio file.
Removed old comment.
2022-08-01 20:07:32 +02:00
Ray
2e5fc3d0c2
Avoid cleaning the front buffer to a specific color!
...
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap.
It's up to the user to call `ClearBackground()` if desired
2022-08-01 10:05:40 +02:00
Ray
f596815973
Merge branch 'master' of https://github.com/raysan5/raylib
2022-08-01 09:57:29 +02:00
Ray
7853155f99
REMOVED: Config option: SUPPORT_MOUSE_CURSOR_POINT
2022-08-01 09:57:11 +02:00
BlueStag
f31e4ebb3d
Use American spelling of colourSpace ( #2604 )
2022-07-31 21:09:41 +02:00
veins1
0ef3e4c4d5
Audio looping fix ( #2579 )
...
* WAVs looping fix. But broke other formats looping
* Fix audio looping issue
* Follow raylib formatting
* Cast void* to char* to make MSVC compiler happy
Co-authored-by: Ray <raysan5@gmail.com>
2022-07-29 13:10:59 +02:00
Ray
e4229e1be7
Merge branch 'master' of https://github.com/raysan5/raylib
2022-07-29 12:01:26 +02:00
Ray
bb6b43b7cb
REVIEWED: GenImageFontAtlas() #2556
...
Just reviewed font atlas size estimation, now it considers `fontSize` instead of `chars[i].image.height`, increasing considerably the atlas size estimation.
2022-07-29 12:01:18 +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
241d6526b0
Some camera improvements #2563
...
Reviewed some camera functionality:
- Reviewed camera swinging (up-down movement)
- Reviewed camera tilting (left-right movement)
- Make movement independent of frame-rate
- removed unneeded variables
NOTE: Camera rotation has some speed issues on first person when fixed 60 fps are used: it moves too fast. Independent framerate movement is not properly implemented.
2022-07-29 10:04:12 +02:00
Ray
7b05444af8
Review comments and parameter names
2022-07-29 09:45:19 +02:00
Piotr Wierciński
024a803665
rtextures: Improve numerical stability of float multiplication ( #2596 )
...
Dimensions of Rectangle should be casted to int before multiplication,
otherwise there is a risk for underallocation/overallocation of memory.
2022-07-27 17:31:52 +02:00
Piotr Wierciński
5a2f25cc7c
rtextures: Fix ImageFromImage crash ( #2594 )
...
Height of the rectangle can be float, which
may lead to doing extra iteration of loop and
writing out of bounds.
2022-07-26 20:53:36 +02:00
Crydsch
00c7509454
add Vector3RotateByAxisAngle ( #2590 )
2022-07-26 14:27:28 +02:00
hitomi kirigri
64710e6030
fix QuaternionFromMatrix & QuaternionEquals ( #2591 )
...
Co-authored-by: kirigiri hitomi <chenjw@hiscene.com>
2022-07-26 14:25:31 +02:00
Ray
d78177d246
Update year
2022-07-25 00:52:10 +02:00
Ray
39d9d1da42
Update config.h
2022-07-25 00:48:15 +02:00
Julianiolo
6ed1ce0082
fixed build for cygwin ( #2588 )
2022-07-23 12:33:23 +02:00
George Linkovsky
b40696eab6
Fix Vector3ClampValue and Vector2ClampValue ( #2585 )
...
Co-authored-by: Timofffee <timofffee@gmail.com>
2022-07-20 14:46:11 +02:00
Jeffery Myers
e9029d3d00
[CORE] Fix Warnings ( #2582 )
...
* Fix raymath warning with floor to floorf
* signed unsigned missmatches
2022-07-19 06:36:03 +02:00
Ray
49a534b5d4
Removed raudio.h from public header
2022-07-15 19:11:42 +02:00
Ray
cccea34c6f
Update raudio.c
2022-07-15 19:09:14 +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
6c2c176a99
Added note
2022-07-15 18:53:08 +02:00
Ray
3ebfee5dbc
REVIEWED: UpdateMusicStream() #2228
...
Trying to implement proper looping, independently of frame rate.
2022-07-11 21:19:21 +02:00
Ray
0379b94b7a
Minor tweaks
2022-07-11 21:18:31 +02:00
Ray
b92573e711
Update raudio.c
2022-07-10 23:00:09 +02:00
Ray
2245500245
Added comment about buffer refill issue on looping #2228
2022-07-10 21:39:13 +02:00
Ray
066bd5be87
Reviewed formating
2022-07-10 21:38:33 +02:00
Ray
29a0f60778
REVIEWED: ImageResize() #2572
2022-07-10 21:12:34 +02:00
Ray
05dc300296
Remove unneded TABS
2022-07-09 19:36:33 +02:00
Audi Nugraha
d1aabb3957
Allow DLL creation using TCC ( #2569 )
...
* Fix Undefined Symbol `_ftelli64`
* Add files via upload
* Update raylib.h
* Update raylib.h
2022-07-09 19:33:18 +02:00
Richard Smith
f7e1550eea
Fix fat universal (arm64 + x86_64) macos Github Actions build ( #2567 )
...
* test if clang supports multiple targets
* didnt work, so trying lipo to join separate targets together
* add CUSTOM_LDFLAGS to try to fix arm64 mac dynamic build
* fix sym links
* try again to fix sym links
* auto extract raylib version numbers from makefile
* fix macos missing gnu grep
* dont use custom name for raylib dlls
2022-07-08 07:57:10 +02:00
Ray
7fb7591e4f
Update raylib.h
2022-07-05 13:27:07 +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
e0f0a5f663
REMOVED: GenMeshBinormals(), actually, never implemented
2022-07-05 12:55:51 +02:00
Ray
cd53531050
Added some comments
2022-07-05 00:50:23 +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
f579a3a708
REVIEWED: DecompressData()
2022-07-03 11:11:50 +02:00
Ray
9be186624c
REVIEWED: DrawBillboard*()
2022-06-29 21:56:19 +02:00
Ray
61e691d94f
Remove unneeded rlPushMatrix()
2022-06-27 13:27:16 +02:00
Ray
da5d04061e
Updated PLATFORM_RPI info #2547
2022-06-25 12:10:28 +02:00
Ray
1211047e1c
Removed physac #2543
2022-06-24 11:09:12 +02:00
veclavtalica
63568721f9
fix: precision loss, discard unused ( #2541 )
2022-06-24 10:59:31 +02:00
Hanaxar
6f231ea9ac
Fix signedness in rlBindImageTexture ( #2539 )
...
rlGetGlTextureFormats was expecting unsigned int, corrected variables according to that.
2022-06-23 12:23:14 +02:00
Ray
371aa0fe7f
Update rlgl.h
2022-06-21 20:59:54 +02:00
Ray
5044ce9de3
Reviewed batch buffer overflow #2526
2022-06-21 20:28:50 +02:00
Ray
68c7cc0cc4
minor tweak
2022-06-21 19:53:28 +02:00
Dan Bechard
8bd3ecaa66
Share PCM streaming buffer to reduce dynamic allocations ( #2532 )
2022-06-21 19:26:21 +02:00
Ray
0afa79067b
Revert "Update rlgl.h"
...
This reverts commit 8fe6bfabbf .
2022-06-18 20:47:49 +02:00
Ray
5426262ae6
REVIEWED: IsFileExtension() #2530
...
Max file extension size set to 16
2022-06-18 20:44:15 +02:00
Ray
8fe6bfabbf
Update rlgl.h
2022-06-18 19:24:11 +02:00
Ray
6f3b2a7661
Update rlgl.h
2022-06-18 16:22:47 +02:00
Ray
c1d9489294
Update rcore.c
2022-06-18 16:22:42 +02:00
Ray
8d9c45a08a
tweak
2022-06-17 21:24:59 +02:00
Ray
d4f60f8303
REVIEWED: LoadDroppedFiles(), fixed issues
2022-06-17 12:06:58 +02:00
The Tophat Demon
a6e31cadbd
Changed ExportFontAsCode to use given font's padding. ( #2525 )
2022-06-17 00:12:21 +02:00
Roy Qu
0964353073
fix: round off error in ColorAlphaBlend ( #2524 )
2022-06-16 14:47:46 +02:00
Ray
309ad3e08b
REVIEWED: rlTextureParameters(), reset anisotropy level
2022-06-16 13:07:38 +02:00
Ray
7ed3d870fe
REVIEWED: rlGenTextureMipmaps(), removed filtering setup
2022-06-16 13:07:09 +02:00
Ray
2824aacd5d
Update rcore.c
2022-06-16 13:06:18 +02:00
Pijus
c392f0c16b
Add wrap ( #2522 )
...
* add wrap function
* fixed Wrap function wrapping wrong
2022-06-14 21:28:39 +02:00
Ray
377dcef9f4
Revert "add wrap function ( #2521 )"
...
This reverts commit 81157e4e72 .
2022-06-14 20:53:35 +02:00
Pijus
81157e4e72
add wrap function ( #2521 )
2022-06-14 19:12:37 +02:00
Ray
9998a86625
Update rcore.c
2022-06-12 22:56:24 +02:00
Ray
a2c56b5929
Update rmem.h
2022-06-12 21:22:01 +02:00
Ray
043fa4cba7
Removed extras directory
2022-06-12 21:13:46 +02:00
Ray
ad56a49da8
Reviewed latest PR
2022-06-12 20:51:31 +02:00
Steven Schveighoffer
e1e0bc4266
Add function to read both X and Y mouse scrolling from a trackpad ( #2517 )
...
(GetMouseWheelMoveV).
2022-06-12 17:30:07 +02:00
Ray
875601c4cc
REVIEWED: FilePathList, consider maximum capacity
2022-06-12 11:32:10 +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
b1c413237c
Update config.h
2022-06-11 20:44:47 +02:00
Ray
b9f617aaee
Update raylib.h
2022-06-11 18:13:15 +02:00
Ray
702f2bccfc
REVIEWED: Issue with MOUSE_PASSTROUGH #2516
2022-06-11 18:12:39 +02:00
Ray
b549baa6b7
New feature: support MOUSE_PASSTHROUGH #2516
2022-06-11 12:08:16 +02:00
Ray
4a6e8bb90b
Minor formattng tweak
2022-06-09 21:01:51 +02:00
gulrak
5e3ef42201
GetMonitorWidth()/GetMonitorHeight(): return current video resolution instead max available ( #2514 )
...
* GetMonitorWidth()/GetMonitorHeight(): current video resolution instead max available
* adapt header comment to reflect change
2022-06-09 21:00:04 +02:00
flashback-fx
8c55b40e9e
Unify busy waiting behavior across conditional compilation branches ( #2508 )
...
* Unify busy waiting behavior across conditional compilation branches
* Inline busy waiting code instead of using static function
2022-06-07 21:01:29 +02:00
Ray
dca23cb3ff
RENAMED: BLEND_ALPHA_PREMUL to BLEND_ALPHA_PREMULTIPLY
2022-06-07 18:46:14 +02:00
Ray
bf208decc0
REVIEWED: Compilation warnings
2022-06-07 10:04:24 +02:00
Ray
e6bc401c93
WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()
...
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +02:00
Ray
ebbcc2ffce
WARNING: RENAMED: GetDirectoryFiles() to LoadDirectoryFiles()
...
RENAMED: `ClearDirectoryFiles()` to `UnloadDirectoryFiles()`
2022-06-06 20:30:24 +02:00
Ray
461cdda71e
Reviewed latest PR, variable name
2022-06-06 20:23:14 +02:00
flashback-fx
c11d30bafe
Change WaitTime argument from milliseconds to seconds ( #2506 )
2022-06-06 20:18: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
865a44adda
REVIEWED: Mouse device support on PLATFORM_DRM #2381
2022-06-05 11:34:23 +02:00
flashback-fx
cda89ebb58
Fix regression that was causing video stuttering ( #2503 )
2022-06-05 11:14:26 +02:00
Ray
6fccfc57a4
Minor tweak
2022-06-02 19:22:42 +02:00
Ray
a28dfbae9f
REVIEWED: Batch limits check #2489
2022-05-31 23:25:21 +02:00
Ray
d0318aac4a
REVIEWED: DrawBillboardPro() #2494
2022-05-30 20:30:16 +02:00
Ray
8294e04749
Correct typo
2022-05-29 18:23:48 +02:00
Ray
fe28aa7c9b
Review log messages
2022-05-29 17:39:10 +02:00
Ray
1f806b555d
ADDED: -latomic linkage, required by miniaudio on ARM 32bit #2452
2022-05-20 17:45:36 +02:00
gulrak
789e504069
use GetWindowScaleDPI to calculate size for rlReadScreenPixels in screenshot/recording ( #2446 )
2022-05-20 17:25:47 +02:00
Jonathan Poncelet
5bdd8f134f
Improved boolean definitions ( #2485 )
2022-05-19 21:21:09 +02:00
Ray
6259dc4121
Revert "UPDATE: DEFLATE algorithm"
...
This reverts commit d786af83fc .
2022-05-18 16:23:52 +02:00
Ray
d786af83fc
UPDATE: DEFLATE algorithm
2022-05-18 13:39:07 +02:00
Ray
5ecc289201
REVIEWED: Support OpneBSD for timming functions
2022-05-16 19:24:16 +02:00