Ray
c328f09efc
Move compressed textures loading to a separate self-contained library
2022-09-17 19:26:23 +02:00
Ray
cb9b8f73c0
ADDED: GenImagePerlinNoise()
2022-09-17 13:39:49 +02:00
Nikolas
a12ddacb7b
Enable DXT compression on __APPLE__ targets ( #2694 )
2022-09-12 12:21:41 +02:00
Ray
853c66baed
REVIEWED: CheckCollisionPointPoly()
2022-09-10 23:56:52 +02:00
Ray
cf24c021a3
WARNING: BREAKING: Reviewed SSBO usage to avoid long long
...
raylib library tries to avoid `long long` usage. Several SSBO functions have been reviewed (including some renames for consistency) to minimize `long long` type usage.
2022-09-09 00:26:47 +02:00
Ray
ac1ffbad1d
REVIEWED: Data type to unsigned
2022-09-07 00:39:38 +02:00
Ray
b09725fa84
REPLACED: rlVertex2i() by rlVertex2f()
2022-09-05 18:45:33 +02:00
Ray
e59442bfab
REMOVED: rlPushMatrix()/rlPopMatrix() from rshapes
...
This simplification will allow the usage of `rshapes` as STANDALONE mode in a future. Only a small set of `rlgl` functions are required and they can be "more" easely replaced if no `rlPushMatrix()`/`rlPopMatrix()` are involved.
More simplification planned for the future, maybe the textures dependencies.
2022-09-05 18:23:25 +02:00
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
Crydsch
020e903193
Fix lgtm warnings ( #2477 )
...
* Comparison is always true because finalSample >= 1
* Comparison is always false because keyCount >= 0
2022-05-14 15:02:29 +02:00
Ray
db16833d8c
ADDED: EnableEventWaiting() / DisableEventWaiting()
...
Events waiting can be enabled/disabled, it toggles event polling.
2022-05-12 16:51:46 +02:00
Ray
f3aac87422
Some minor tweaks
2022-05-12 16:35:28 +02:00
Rob Loach
c0275df820
Easings: Add function descriptions ( #2471 )
2022-05-12 14:48:51 +02:00
Crydsch
b2c2b5ee21
remove fps requirement for drm connector selection ( #2468 )
2022-05-09 17:12:38 +02:00
Ray
df3f64bfd2
Corrected typo
2022-05-07 18:04:34 +02:00
lazaray
bbc8d39185
Add support for truncating parser input ( #2464 )
...
* Add support for truncating parser input
* Remove RLAPI from implementations in rlgl.h
2022-05-06 20:18:39 +02:00
Daniel Nagy
19f88241ec
Flush stdout after trace messages ( #2465 )
...
This immediately shows log messages when stdout is not connected to a
tty.
2022-05-06 20:15:13 +02:00
Ray
ed29b4eedf
Update utils.c
2022-05-06 00:46:43 +02:00
Ray
d9a30b8480
ADDED: ExportDataAsCode()
2022-05-06 00:14:28 +02:00
Ray
ed2ab55034
Remove line ending spaces
2022-05-05 20:39:14 +02:00
Ray
666aa44a84
Reviewed some comments
2022-05-01 11:14:28 +02:00
Ray
f169530d8f
Update raylib.h
2022-04-29 17:52:22 +02:00
Ray
5c66cc1c9b
Update rcore.c
2022-04-28 17:38:52 +02:00
Leonardo Montagner
3580267479
Fix Issue #2441 ( #2442 )
...
Remove line that caused a memory leak
2022-04-26 12:25:39 +02:00
Ray
a7ce537d32
Check for mouse devices on PLATFORM_DRM
2022-04-26 09:30:20 +02:00
Ray
38a3523f59
REVIEWED: SwapScreenBuffers() for PLATFORM_DRM
...
Avoid calling `abort()`, `LOG_ERROR` already manages it. Code looks cleaner now.
2022-04-25 21:00:17 +02:00
Ray
bdfa256cea
Update rlgl.h
2022-04-25 19:35:23 +02:00
Ray
6e722d416b
Update rcore.c
2022-04-25 19:35:19 +02:00
Ray
e543922055
Review formatting
2022-04-24 17:58:51 +02:00
Juan Carlos González Amestoy
f2c7b0d3bf
- Fix issue #2371 ( #2437 )
2022-04-24 17:05:45 +02:00
Ray
74ca81338e
REDESIGNED: Set rlgl internal framebuffer #2420
2022-04-24 12:37:50 +02:00
Ray
dc553d1996
Update rlgl.h
2022-04-24 12:25:26 +02:00
Ray
f798ee2bc1
Update rlgl.h
2022-04-24 12:19:41 +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
e1ee4b1466
Reviewed MouseScrollCallback() #2371
2022-04-24 11:16:35 +02:00
Ray
d433de7efa
Initialize (reset) input global state #2360
2022-04-24 11:02:50 +02:00
Ray
233cf3970c
Removed bool type from raymath, it broke raylib
2022-04-24 00:38:11 +02:00
Ray
ff95f05386
Update rlgl.h
2022-04-24 00:29:15 +02:00
Ray
47d768c3d6
REVIEWED: ToggleFullscreen()
2022-04-23 23:40:56 +02:00
Ray
015a71fc40
Update raymath.h
2022-04-23 23:39:50 +02:00
Ray
be3ae71aec
Review new functions formatting
2022-04-23 23:24:13 +02:00
saccharineboi
52befa0815
Augment raymath.h with useful functions ( #2428 )
...
* Augment raymath.h with useful functions
* Rename Vector2ClampMagnitude and Vector3ClampMagnitude to Vector2ClampValue and Vector3ClampValue
* Remove Vector3{Up,Down,Left,Right,Forward,Backward}
2022-04-23 23:13:33 +02:00
Anilforextra
a5daee3812
Optimize Some Image Functions. ( #2429 )
2022-04-23 10:51:47 +02:00
Ray
f71cc53bc9
WARNING: RENAMED: some parameters from length to size
...
When referring to byte array SIZE, I find it more clear than length
2022-04-06 20:50:50 +02:00
Ray
1612ba63ab
ADDED: Audio stream processors support -WIP- #2212
...
This feature is still under consideration/testing and it doesn't work properly, at least the Delay Effect processor.
2022-03-30 20:13:02 +02:00
Ray
90fc7c0376
WARNING: BREAKING: REMOVED: GetRayCollisionModel() #2405
2022-03-30 20:11:22 +02:00
Satoshi Tanaka
5abb87a0d2
Fix QuaternionScale ( #2419 )
2022-03-30 19:53:44 +02:00
Ray
9c2d337e99
Update rtext.c
2022-03-29 18:11:33 +02:00
Ray
3bcb19e040
Merge branch 'master' of https://github.com/raysan5/raylib
2022-03-28 11:58:25 +02:00
Ray
cfe7823453
REMOVED: MatrixNormalize() #2412
2022-03-28 11:58:16 +02:00
Ray
c2c1c93041
Corrected typo
2022-03-26 10:42:46 +01:00
Ray
418a595b6f
Corrected typo
2022-03-25 15:39:32 +01:00
Ray
8e28872fe1
Rename audio callback
2022-03-25 10:19:40 +01:00
Ray
381236051f
ADDED: Audio stream input callback #2212 -WIP-
...
WARNING: This addition is based on a PR and it's still under review, not sure if it will be maintained in the future. In general, raylib tries to avoid callbacks usage mechanisms.
2022-03-24 20:49:11 +01:00
Ray
bcd84cd36d
Some code reviews -WIP-
2022-03-24 18:56:53 +01:00
Ray
22c17da4d7
Update to miniaudio 11.8
2022-03-24 18:22:09 +01:00
Ray
cb62cb675f
Minor tweaks const
2022-03-22 18:45:41 +01:00
Ray
0da7830745
REVIEWED: Avoid some float -> double promotions
2022-03-20 12:15:51 +01:00
Jeffery Myers
c65efecf0a
Verify there is enough space in the batch for the npatch geometry. ( #2401 )
2022-03-19 22:26:27 +01:00
João Távora
9ecbc465a9
Fix too many opening parens in src/rtextures.c ( #2398 )
...
This is a tiny change that makes code in src/rtextures.c "fold"
correctly in editors/IDE's by matching the number of opening
parenthesis to closing parenthesis. One of those editors is Emacs ;-)
2022-03-18 12:32:00 +01:00
Rodrigo Escar
9723489ccc
Implements OpenURL() for Android Platform ( #2396 )
2022-03-18 11:41:41 +01:00
Ray
d2119848ed
REVIEWED: OpenURL()
2022-03-14 15:31:37 +01:00
tixvage
3f01b8a93f
Fixed an issue in Makefile when using raygui and physac on unix systems ( #2384 )
...
* Fixed an issue when using raygui and physac on unix systems
hash "#" is single-line comment character in bash so echo ignores #include and #define
* tab fix
2022-03-12 21:30:54 +01:00
Ray
a5a098c97f
Remove space
2022-03-12 21:27:24 +01:00
Komari Spaghetti
8065504aba
Simplify build.zig to not require user to specify raylib path ( #2383 )
...
We can figure out the source file location based on the location of the
build.zig file. No need to require the library user to specify where
raylib is stored.
2022-03-11 19:04:24 +01:00
Anilforextra
cda1324e87
Vector2/Vector3: Add squared distance. ( #2376 )
2022-03-09 20:05:08 +01:00
megagrump
7584ce6f48
Increase atlas size guesstimate; print warnings if atlas size is too small ( #2365 )
2022-03-01 11:26:48 +01:00
Ray
7fa75cb24e
Removed memset()
2022-02-27 22:32:17 +01:00
Ray
ead8003044
Possible fix for #2360
2022-02-25 20:41:18 +01:00
Ray
6e9ec253c8
Support clipboard copy/paste on web
2022-02-20 22:07:52 +01:00
raysan5
937e7b3dd9
REVIEWED: Some functions input parametes that should be const
2022-02-20 20:35:28 +01:00
Antonis Geralis
68bad6986d
make const ( #2348 )
...
* make const
* make const
2022-02-20 20:12:55 +01:00
DavidLyhedDanielsson
761669272f
Fix free camera panning in the wrong direction ( #2347 )
2022-02-20 19:52:13 +01:00
raysan5
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
Antonis Geralis
963de06d08
follow style guide ( #2346 )
...
* follow style guide
* Update rmodels.c
2022-02-17 00:54:21 +01:00
raysan5
4f2bfc5476
Reviewed bug on FindNearestConnectorMode()
2022-02-15 19:38:28 +01:00
Jaedeok Kim
b54e9db764
Optimize Vector2Rotate() function ( #2340 )
2022-02-13 18:43:17 +01:00
megagrump
f40eed5adf
add premultiplied alpha blend mode ( #2342 )
2022-02-13 18:42:24 +01:00
Ray
4bc6e0d7de
Update rtext.c
2022-02-13 10:47:19 +01:00
Ray
9cf170e6e9
Reviewed makefile to use right shell on right platform
2022-02-13 10:47:09 +01:00
raysan5
8c9a0221a4
Update Makefile
2022-02-12 19:38:14 +01:00
raysan5
2f3fc41c33
Allow setting a custom PLATFORM_SHELL
2022-02-12 19:31:27 +01:00
raysan5
6ef6dbff2d
REVIEWED: PLATFORM_OS for PLATFORM_WEB
2022-02-12 19:08:31 +01:00
raysan5
d0008ae8cd
REVIEWED: Issue when compiling for PLATFORM_WEB
2022-02-12 18:06:21 +01:00
Peter0x44
dd15531e25
Properly fix make clean under windows ( #2341 )
...
* Properly fix make clean under sh.exe
* Ensure make clean works properly under Windows if RAYLIB_RELEASE_PATH is modified
2022-02-12 17:59:48 +01:00
raysan5
ddba8478c5
Revert "Reviewed Makefile clean target to use CMD shell on Windows"
...
This reverts commit ab47c6401e .
2022-02-12 17:58:38 +01:00
raysan5
ab47c6401e
Reviewed Makefile clean target to use CMD shell on Windows
...
Tested on the following environments:
- w64devkit.exe
- Windows 10 cmd
- Notepad++ NppExec console
2022-02-12 17:37:12 +01:00
Peter0x44
81cced4d83
Fix make clean target failing when shell is not cmd ( #2338 )
...
GNU make on Windows first tries to find sh.exe on the path,
and will execute build rules using it if it is present.
The make clean target uses the builtin cmd.exe command del, which
won't work under sh.exe
The reason this is not done for the entire Makefile is because it would
break cross-compilation of raylib.
2022-02-10 20:52:34 +01:00
Scribe of the Ziggurat
96452637d9
Add BSD support for zig builds ( #2332 )
...
- Adds a new OS clause to build.zig for the BSDs
- Tested on my FreeBSD box using https://github.com/Not-Nik/raylib-zig
- All demos build and render just fine. Nice !
2022-02-09 08:23:14 +01:00
locriacyber
1e436be51d
Make audio examples compile with external glfw on Linux ( #2329 )
2022-02-05 13:33:05 +01:00
Audi Nugraha
a0895f1a3c
Fix Undefined Symbol _ftelli64 ( #2319 )
2022-02-03 12:00:33 +01:00
megagrump
c54d9cd552
simplify QuaternionInvert ( #2324 )
2022-01-31 09:39:21 +01:00
raysan5
44d3cee5d1
Minor tweak
2022-01-28 21:25:40 +01:00
Ray
d38fe92c3f
RENAMED: GetFileSize() to GetFileLength()
...
`GetFileSize()` conflicts with the infamous `windows.h`
2022-01-28 00:23:28 +01:00
raysan5
0f00c41aad
ADDED: GetFileSize()
2022-01-27 14:07:05 +01:00
raysan5
524bf57b74
Update qoi.h
2022-01-26 16:33:38 +01:00
Siddharth Roy
e5ee69a0f5
Add DrawTextCodepoints ( #2308 )
...
* Add DrawTextCodepoints
* Fixed top comment
2022-01-26 12:55:34 +01:00
Ray
76b6efc827
Support export .jpeg files
2022-01-26 11:30:38 +01:00
raysan5
ebdc34a20e
Update minshell.html
2022-01-25 14:04:55 +01:00
Ray
b422e407e8
Update rtextures.c
2022-01-22 18:42:44 +01:00
Nikolas
5b8b24c0c5
Fix GetApplicationDirectory on macOS ( #2304 )
...
Previously failed to build with an implicit declaration of `_NSGetExecutablePath`.
2022-01-22 17:25:53 +01:00