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
Roy Qu
45ef46c5e8
fix: material color won't be loaded if there's no texture for that material ( #2298 )
2022-01-21 12:52:07 +01:00
Laurentino Luna
3c359ff4bc
Review code conventions for specific defines for GetApplicationDirectory() ( #2293 )
...
Unless these imports require to have this format, the code has been adjusted to the conventions
2022-01-18 18:30:19 +01:00
Jeffery Myers
bec27a6ebc
[CORE] Fixes for GetApplicationDirectory on 32 bit windows builds ( #2290 )
...
* Fix a signature error with the windows calls in GetApplicationDirectory for 32 bit builds.
* break is better than loop var to -1
2022-01-17 18:05:48 +01:00
raysan5
15b36e04b2
Review formating
2022-01-16 17:16:04 +01:00
ptarabbia
5ac07122bd
Add panning to raudio and update audio_raw_stream example. ( #2205 )
...
* Add panning to raudio and update audio_raw_stream example.
* remove pan smoothing, code formatting changes following pull request comments
Co-authored-by: Ray <raysan5@gmail.com>
2022-01-16 12:49:58 +01:00
Ray
48a463cca8
REVIEWED: Vector2Transform(()
2022-01-15 22:19:48 +01:00
Ray
8ee0eb8f36
ADDED: Vector2Transform()
2022-01-15 22:12:58 +01:00
Jeffery Myers
f4dea6919a
[CORE] Bug and formating fixes for GetApplicatonDir ( #2285 )
...
* Fix formating problems with GetApplicationDir.
Don't ever return an empty string
* always return a valid path even if it's ./
* remove the need for the dll and just use the normal GetModuleFileName function
2022-01-14 20:16:25 +01:00
raysan5
f57727995a
REVIEWED: rlLoadShaderCode()
2022-01-13 19:05:45 +01:00
Matthew Owens
e621efe79f
rlLoadShaderCode - set ShaderId variables to RLGL.State.default[VF]ShaderId if repesctive Code is NULL ( #2281 )
2022-01-13 18:42:44 +01:00
Ray
464026f15c
Update rcore.c
2022-01-12 12:00:47 +01:00
Ray
b61c9afd04
Update Makefile, simplified
2022-01-11 11:57:26 +01:00
Ray
cabb5518e5
Improve Makefile organization
2022-01-11 11:20:04 +01:00
hartmannathan
aaf0175d07
Fix typo in comment: s/simluate/simulate/ ( #2277 )
2022-01-11 09:04:09 +01:00
Ray
8db56cfc3b
Added minimal web shell
2022-01-10 22:31:30 +01:00
Ray
b4e0ed6007
Review formating
2022-01-10 13:54:51 +01:00
Nikolas
a6aa5a1e4c
Make zig build functionality available to zig programs ( #2271 )
2022-01-08 22:13:44 +01:00
Ray
7a159664bc
Improved shader loading code
2022-01-08 20:12:03 +01:00
Ray
612c4ad1dc
Reviewed possible issue with shaders detaching
2022-01-08 19:55:14 +01:00
Jeffery Myers
fbf34f7c0d
[CORE] Add a function to return the application directory. ( #2256 )
...
* Add a function to return the application directory.
* CI fixes
2022-01-08 19:47:52 +01:00
Ray
2116a98745
ADDED: ExportFontAsCode()
2022-01-03 20:45:56 +01:00
Ray
62858e11f7
Review tracelogs
2022-01-03 20:45:19 +01:00
Gerber Lóránt Viktor
ba1e91b4d7
Change comment about custom blend modes in rlgl.h ( #2260 )
2022-01-02 22:50:39 +01:00
Ray
7eb341ccaf
WARNING: REVIEWED: A big bug with GetMouseWheelMove()
2022-01-01 17:49:07 +01:00
raysan5
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +01:00
raysan5
bb875b1db7
Update rcore.c
2021-12-31 18:18:27 +01:00
raysan5
8f2d9838a3
Reviewed fullscreen switch on PLATFORM_WEB
...
The previous implementation somewhat break the expected behaviour for games and examples when pressing the `Fullscreen` button in the provided `shell.html`.
Just reverted for the moment for further investigation.
2021-12-31 17:46:31 +01:00
Ray
4bb894f171
tweaks
2021-12-31 11:01:43 +01:00
Tushar Singh
d91b9171fa
[Feature] Added SetWindowOpacity(float opacity) ( #2254 )
...
* Added drawing text with shadow
* Added SetWindowOpacity()
* Edited Mis-spell
* Fixed conventions
2021-12-30 13:13:50 +01:00
raysan5
c862c4bdf2
Support CUSTOM_CFLAGS
2021-12-29 19:06:43 +01:00
raysan5
e222209732
Reviewed CFLAGS
2021-12-29 18:22:31 +01:00
raysan5
c9db9e6bb7
Updated version number to avoid confusions with release
2021-12-28 15:40:26 +01:00
raysan5
803ce9f44b
Detected some pixel-errors due to rounding issues on position
2021-12-28 15:39:57 +01:00
Ray
611e54e67e
Reviewed makefiles
2021-12-27 19:01:07 +01:00
Ray
5f2bc20191
Update Makefile
2021-12-27 16:49:01 +01:00
Ray
8844ad6f0b
Update Makefile
2021-12-27 16:38:11 +01:00
Ray
bf0fed8431
Update Makefile
2021-12-27 16:14:58 +01:00
raysan5
423fdb320a
Update raudio.c
2021-12-24 19:57:32 +01:00
Antonis Geralis
dcc0791502
check not null before accessing by index ( #2243 )
2021-12-24 19:54:25 +01:00
Ray
4874c45ebf
REVIEWED: ExportWaveAsCode()
2021-12-23 11:02:20 +01:00
Ray
9e5a9892be
REVIEWED: PlaySoundMulti() #2231
2021-12-21 23:57:13 +01:00
raysan5
58f2bf4181
REVIEWED: Export format for float 32bit
2021-12-21 20:32:58 +01:00
raysan5
a7bc5196cc
Update dr_wav.h
2021-12-21 20:21:00 +01:00
Uneven Prankster
588de4d095
Re-enable QOI support ( #2236 )
...
* Updated QOI to latest version.
* Enable back QOI support!
* Stray extra space! Should be good now.
2021-12-21 14:42:27 +01:00
raysan5
22d0baa896
Review makefiles debug flag
2021-12-21 12:24:03 +01:00
Laurentino Luna
dcb0e62095
Remove TODO on Makefile ( #2232 )
...
Justification: original comment said the following
"TODO: Add other platforms. Remove sudo requirement, i.e. add USER mode."
For the other platforms part, installing is included on unix-like
systems, so for example Windows doesn't have a path where to install
libraries.
Removing the requirement for sudo is also quite contradictory since
we're writing files to directories which require root. Not sure what the
original commiter meant by USER mode.
2021-12-20 17:04:36 +01:00
Ray
5499388a4c
REVIEWED: GenMeshCylinder() #2225
2021-12-19 13:40:55 +01:00
Ray
278c9fa5bd
REVIEWED: LoadTextureCubemap() #2224
2021-12-19 13:17:37 +01:00
Ray
76daf6e364
REVIEWED: LoadTextureCubemap() #2223
2021-12-19 13:10:43 +01:00
Ray
05428df667
ADDED NOTE: ImageDraw() does not support f32bit #2222
...
Added a note for a future improvement
2021-12-19 12:48:06 +01:00
Jeffery Myers
f5e951145a
Add a comment to LoadFontEx to specify how to get the default character set. ( #2221 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-12-18 19:33:19 +01:00
raysan5
ef5be632fe
REVIEWED: ExportMesh() #2220
2021-12-17 20:55:38 +01:00
Tomas S
87fa23beee
Fix build results path on Linux and RPi ( #2218 )
...
Built files should be put into src/ not into the project root
as it was now on these platforms
2021-12-16 17:10:13 +01:00
Tomas S
60b1f29783
Fix RPi make install ( #2217 )
2021-12-16 16:29:09 +01:00
ptarabbia
2db44bc34a
Turn on interpolation for XM playback ( #2216 )
2021-12-16 16:28:30 +01:00
ptarabbia
86611e6459
Fix issue #2092 ( #2215 )
2021-12-16 16:27:31 +01:00
Ray
48918ca5c6
REVIEWED: DrawMesh*() issue #2211
2021-12-16 00:19:41 +01:00
Ray
1653fc5bb5
Update rcore.c
2021-12-16 00:19:09 +01:00
raysan5
0454acaacf
REVIEWED: Clear SSBO buffers on loading #2185
2021-12-15 13:09:24 +01:00
Ray
20f4d8c147
Reviewed typo
2021-12-10 11:41:45 +01:00
Andrea Fontana
c0715c1225
Fixed functions Vector2Angle and Vector3Angle ( #2203 )
...
* Fixed functions Vector2Angle and Vector3Angle
* typo
* Unrolled everything.
2021-12-09 22:30:52 +01:00
Ray
fd0e3a4fdd
REVIEWED: GetCodepoint() #2201
2021-12-09 20:13:53 +01:00
Ray
f09a916587
Update raudio.c
2021-12-08 14:02:54 +01:00
Ray
ed1e1f35df
REVIEWED: GenImageCellular() #2178
2021-12-08 11:01:41 +01:00
raysan5
7d25480723
REVIEWED: DrawTextureTiled() #2173
2021-12-07 19:06:18 +01:00
raysan5
81240fe960
REVIEWED: vox_loader.h, 64bit issue #2186
2021-12-07 19:00:58 +01:00
Jaedeok Kim
72f3b00b00
Fix Vector2Angle() not working as expected ( #2196 )
2021-12-07 10:45:36 +01:00
Ray
ef6959ed54
ADDED: raylibVersion symbol #2190
2021-12-06 19:53:09 +01:00
Ray
e7f48eb16b
Tweaks
2021-12-06 19:08:06 +01:00
HarriP
3cb4ef2599
Fix inverse length in Vector2Normalize ( #2189 )
...
Following the pattern in Vector3Normalize.
2021-12-06 19:07:05 +01:00
Steven Schveighoffer
fa7337e19c
Vector2Angle returns degrees instead of radians, but all other raymath ( #2193 )
...
functions use radians, making this awkward to use.
2021-12-06 19:05:28 +01:00
Ray
c5eaaed873
Update Makefile
2021-12-06 12:09:44 +01:00
Ray
c4a62ca1e4
ADDED: Modules info at initialization
2021-12-06 12:02:57 +01:00
Ray
e637ad9d2a
Support custom modules inclusion
...
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
2021-12-04 19:56:02 +01:00
Ray
930941e85e
Added a couple of notes
2021-12-03 00:30:27 +01:00
raysan5
ba8c73a327
Added some reference code to load bones id and weight data for animations
2021-12-02 20:48:12 +01:00
raysan5
59c4facd90
Disabled QOI image format
2021-12-01 20:56:39 +01:00
Ray
d1b8d4f2c7
REVIEWED: Updated QOI to first official release
2021-11-28 01:22:56 +01:00
Anders Holmberg
71f2e2b1e4
Add macos support to zig build system ( #2175 )
2021-11-27 10:46:18 +01:00
Ray
2b2141902b
ADDED: Support for QOI image format
2021-11-27 10:35:00 +01:00
Ray
9088135b49
REVIEWED: Formating and comments
2021-11-25 01:07:54 +01:00
Arnaud Valensi
b248a00c90
Fix scissor on macos ( #2170 )
...
* Expose GetRenderWidth and GetRenderHeight functions
* Fix scissor on macos
* Fix typo
2021-11-25 01:03:20 +01:00
Novaleaf
c5fc7c7640
allow physac to be built as a shared library ( #2168 )
...
if `BUILD_LIBTYPE_SHARED` is defined allow build as a shared dll
2021-11-23 22:21:01 +01:00
めぐみ発動機 (isVowel / GreenWing)
924b1c7b0c
fixed typo: aproximation to approximation ( #2164 )
2021-11-21 18:06:52 +01:00
めぐみ発動機 (isVowel / GreenWing)
478b70e53e
fixed typo: aproximation to approximation ( #2163 )
2021-11-21 18:06:20 +01:00
raysan5
7755cd0019
Tweak to minimize buffer overflow possibility
2021-11-18 10:25:28 +01:00
WilledgeR
e24443bbbc
Fixes CC while compiling for ANDROID_ARCH x86 ( #2148 )
...
* Override CC while compiling for ANDROID_ARCH x86
* REfix Override CC while compiling
2021-11-17 20:45:07 +01:00
raysan5
03f55d8f9e
Minor tweaks
2021-11-17 13:36:28 +01:00
Ray
be371ebf99
REVIEWED: LoadTextureFromImage()
...
Allow texture loading with no data transfer (in case image.data = NULL)
2021-11-15 11:41:05 +01:00
Ray
b7bf220598
REVIEWED: rlUpdateTexture()
2021-11-15 10:25:24 +01:00
Ray
5a6aa52a7c
REVIEWED: ExportMesh() #2138
2021-11-15 10:14:00 +01:00
Ray
2c38dad214
Merge branch 'master' of https://github.com/raysan5/raylib
2021-11-11 18:26:28 +01:00
Ray
c8f029dba9
Expose MAX_KEYBOARD_KEYS and MAX_MOUSE_BUTTONS #2127
2021-11-11 18:26:25 +01:00
lib-omar
91135c8799
Fixed file/alloc limitation in GetDirectoryFiles() ( #2126 )
...
MAX_DIRECTORY_FILES macro removed.
ClearDirectoryFiles() tweaked to reflect changes.
2021-11-10 19:52:30 +01:00
Ray
da7e0ba9d9
ouch
2021-11-10 13:37:50 +01:00
Ray
c82390e3f1
Reviewed descriptions and notes
2021-11-10 13:31:42 +01:00
Ray
4853082a4f
REVIEWED: DrawRectanglePro(), support TRIANGLES drawing
2021-11-10 13:28:43 +01:00
Ray
f6180efd35
REVIEWED: CheckCollision*() consistency
2021-11-10 13:28:05 +01:00
Ray
7158c80448
tweak
2021-11-10 13:26:50 +01:00
Uneven Prankster
35cbacc68b
Allow GL4.3 capabilities to be shown ( #2124 )
...
Now that 4.3 was added this can be enabled with the compile flag.
2021-11-09 15:24:39 +01:00
Ray
14e4992d73
REVIEWED: rlGetCompressedFormatName()
2021-11-09 11:53:18 +01:00
Ray
21ec8c38ae
Review variables initialization
...
- All variables are initialized on declaration, some arrays were not properly initialized
- Static array buffers require memset() for re-initialization on every function call
2021-11-09 11:49:03 +01:00
Luke Krasnoff
8ec5b2dc2f
Protect TextIsEqual from NULLs ( #2121 )
2021-11-09 11:37:55 +01:00
KonPet
34f9f51835
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() ( #2111 )
2021-11-07 11:50:15 +01:00
raysan5
7f4ae653f3
Review display output order
2021-11-03 13:24:56 +01:00
raysan5
703df42586
Avoid duplicate output info on PLATFORM_RPI
2021-11-03 12:55:46 +01:00
Ray
5e3db0aa83
Updated some scripts paths
...
NOTE: New raylib release installer uses `w64devkit`, smaller and more updated than regular `mingw64-w64` default project. Paths are updated properly.
2021-11-02 18:40:45 +01:00
Ray
e930ad3102
Reviewed spelling mistake
2021-11-01 23:06:26 +01:00
Ray
2fe488a71c
Update version in CMake
2021-11-01 23:05:23 +01:00
raysan5
70a2118c49
REMOVED: rnet.h
...
It was not working properly... recommended to use `nbnet` instead.
2021-11-01 20:08:14 +01:00
raysan5
b02e737074
Update raygui.h
2021-11-01 20:07:22 +01:00
raysan5
bba035c20c
Minor type tweak
2021-11-01 19:14:55 +01:00
Ray
8c0f9c7f5a
Update miniaudio.h
2021-11-01 11:37:47 +01:00
Ray
8abba960c7
Review comments
2021-11-01 11:26:13 +01:00
Ray
8649032428
Update comment
2021-11-01 01:08:55 +01:00
Ray
1fac09d0f4
REVIEWED: example: Compute shader Game-of-life
2021-10-31 12:28:04 +01:00
Ray
b7240d6a36
Update raygui.h
2021-10-27 11:25:24 +02:00
Ray
65076464d5
REVIEWED: KeyCallback()
...
Register keys independently of the actions
2021-10-26 22:27:18 +02:00
Ray
72758de6ea
Reviewed warnings
2021-10-26 22:26:28 +02:00
Ray
25642cff36
Update comments for OpenGL 4.3
2021-10-26 22:23:16 +02:00
Jeffery Myers
daeccd03ac
Fix VC warnings for examples ( #2085 )
2021-10-25 10:21:16 +02:00
Jeffery Myers
086f76ba7a
Fix warnings in raylib build ( #2084 )
2021-10-25 10:18:42 +02:00
mandar1jn
affb707dd9
fixing the library so the workflows compile ( #2082 )
2021-10-24 18:24:01 +02:00
TheSergey496
08441e8b2d
When one of the colliding lines is vertical or horizontal, not all collisions were correctly detected due to floating point error. ( #2081 )
2021-10-24 17:31:13 +02:00
raysan5
62965aa6d7
Comments tweaks
2021-10-23 14:17:26 +02:00
raysan5
04a4efb591
Added some comments on LoadGLTF()
2021-10-23 14:00:05 +02:00
raysan5
c4f0e80895
REVIEWED: Size of bones id supported, max 255 bones per mesh
2021-10-23 13:59:20 +02:00
raysan5
ebee8ba3bb
REVIEWED: LoadGLTF() #2075
2021-10-23 11:42:02 +02:00
mausimus
8f5bd3e185
web: clear resizedLastFrame ( #2077 )
2021-10-23 10:52:36 +02:00
Richard Smith
fcc6a61d9e
replace hardcoded number of mouse buttons with MAX_MOUSE_BUTTONS ( #2076 )
2021-10-23 10:52:04 +02:00
raysan5
18db2c4f01
REVIEWED: LoadGLTF()
...
Reorganized code and added some feature and listed restrictions. Some gltf models do not work yet.
2021-10-22 21:27:11 +02:00
raysan5
83b6cd00c6
Reviewed VS2019 projects
2021-10-22 15:41:28 +02:00
raysan5
ebad28d831
REVIEWED: gltf models loading, reverted to a previous version (with some tweaks)
2021-10-22 14:53:11 +02:00
raysan5
befdb5963e
REMOVED: IsGamepadName()
...
This function is not required, users can check it with `GetGamepadName()`
2021-10-22 12:21:31 +02:00
raysan5
83cd22ee5a
Minor tweaks
2021-10-22 12:20:42 +02:00
raysan5
dd6e006d78
Reviewed multitouch example #1988
2021-10-22 11:53:47 +02:00
Ray
317db34059
Reviewed to support raygui and physac on building
2021-10-21 21:17:25 +02:00
Ray
13bb656a91
Update Makefile
2021-10-21 21:09:40 +02:00
Ray
9afda9359b
Reviewed physac building
2021-10-21 21:04:28 +02:00
raysan5
fec0ce34c5
Remove trailing spaces
2021-10-19 14:57:12 +02:00
raysan5
719c1551cc
Reviewed latest PR formatting and details
2021-10-19 13:30:23 +02:00
warzes
9f2ff3e4d6
Support create OpenGL debug context in OpenGL 4.3 ( #2068 )
...
* - support create OpenGL debug context in OpenGL 4.3
* - additional events in debug message
- fixed glEnable(GL_DEBUG_OUTPUT)
* Reviewed OpenGL Debug Context
2021-10-19 12:43:27 +02:00
raysan5
6ac3043e88
WARNING: REMOVED: glTF loading
...
Actually, it was broken and it that code has no maintainer.
2021-10-18 14:11:56 +02:00
raysan5
2ec8ce649a
ADDED: EncodeDataBase64() and DecodeDataBase64()
2021-10-18 14:10:51 +02:00
raysan5
1c9093fd24
Avoid GRAPHICS_API_OPENGL_* defines
...
Those defines are only used inside `rlgl` module
2021-10-18 13:25:59 +02:00
raysan5
b28e353626
Reviewed glDisableVertexAttribArray() issue #2068
2021-10-18 13:22:52 +02:00
raysan5
a3f9ba8704
Removed useless GL calls #2068
2021-10-18 13:16:07 +02:00
Ray
ccf4329792
Review comments
2021-10-18 00:23:26 +02:00
Uneven Prankster
a6fb2dafc6
Fix rlLoadComputeShaderProgram define ( #2067 )
...
Now uses correct version.
2021-10-17 23:11:42 +02:00
raysan5
7a16834124
UPDATE: Officially support OpenGL 4.3
2021-10-17 21:41:19 +02:00
raysan5
f437f7b405
Reviewed makefile and examples building
2021-10-17 21:00:52 +02:00
raysan5
cf12992b6a
Remove trailing spaces
2021-10-17 21:00:20 +02:00
Sage Hane
16d015d81e
build.zig: Use addCSourceFiles ( #2066 )
2021-10-17 19:04:08 +02:00
warzes
d47d7c0001
Fixing the error of loading VOX models. ( #2065 )
...
* - Fixing the error of loading VOX models.
* - fixed spaces
2021-10-17 10:22:58 +02:00
michaelfiber
c87e91d27a
Update SetupViewport so that it doesn't subtract offset from render dimensions when calling rlViewport ( #2064 )
...
Co-authored-by: Michael <michael@cubeofb.org>
2021-10-17 10:21:51 +02:00
Ray
99f6707e2c
Support OpenGL 4.3
...
- Support Compute Shaders by rlgl API
- Support SSBO by rlgl API
2021-10-16 23:49:31 +02:00
Ray
e36dc01b91
Support GRAPHICS_API_OPENGL_43
2021-10-16 23:39:21 +02:00
Ray
8523d13683
Update rlgl.h
2021-10-16 23:30:30 +02:00
Astie Teddy
dba29e4405
Compute shaders support ( #2061 )
...
* Add basic compute shader and ssbo support in rlgl.
* Add rlBindImageTexture (untested), now requires SUPPORT_COMPILE_SHADERS
* Delete glad.c
* Delete glad.h
* Delete khrplatform.h
* Revert to previous glad.h
* Remove "glad.c"
Co-authored-by: Ray <raysan5@gmail.com>
2021-10-16 23:26:25 +02:00
Ray
0aefe256d0
REVIEWED: rlLoadDrawQuad() description #2058
2021-10-16 22:39:22 +02:00
Ray
1b793e76dc
Reviewed memory usage
2021-10-16 22:36:47 +02:00
Ray
226c0e362c
Merge branch 'master' of https://github.com/raysan5/raylib
2021-10-15 11:25:28 +02:00
Ray
84edd22612
Reviewed unsigned int issue (discussion #2054 )
2021-10-15 11:25:17 +02:00
raysan5
2a6bd973bd
Review some comments
2021-10-14 15:38:50 +02:00
Ray
9ac5a96408
Update rmodels.c
2021-10-14 10:52:24 +02:00
Ray
8a5bc933de
Starting to review glTF loading -WIP-
2021-10-14 10:43:29 +02:00
Ray
3e604a8645
Remove trailing spaces
2021-10-14 00:11:37 +02:00
Ray
83b3478fe4
Reviewed some TODO
2021-10-13 23:45:57 +02:00
raysan5
4390d3a122
Avoid raylib dependency
2021-10-13 20:47:57 +02:00
raysan5
a77afd5c8f
Reviewed some MSVC warnings
2021-10-13 20:47:42 +02:00
raysan5
32c9d411b2
REVIEWED LoadVOX() -WIP-
...
It seems vox loader is not working properly...
2021-10-13 20:28:58 +02:00
raysan5
1350361f58
Reviewed formatting
2021-10-13 19:34:37 +02:00
Horrowind
e545286369
Fix issue with empty cylinder ( #2050 )
...
* Add DrawCylinderEx and DrawCylinderWiresEx
* Modify examples/models/models_geometric_shapes.c to show the
usage of DrawCylinder(Wires)Ex
* Simplified DrawCylinder and DrawCylinderWires to use the -Ex versions.
* This reverts commits f49b2598dd and
4542b32e4e .
* Fixed formatting.
Renamed base_angle to baseAngle.
Remove most of the raymath.h calls.
* Added check for empty cylinder.
* Added check for empty cylinder.
* Fix bug.
Co-authored-by: Horrowind <you@example.com>
2021-10-13 19:32:30 +02:00
raysan5
4e88160e78
Update raylib.h
2021-10-13 19:22:47 +02:00
Ray
a1db0220a1
REVIEWED: LoadFontFromImage()
...
Avoid crash on wrong sprite font
2021-10-12 23:00:00 +02:00
raysan5
f1659d78d3
Reviewed models examples paths
2021-10-12 21:01:49 +02:00
raysan5
252bd22738
Merge branch 'master' of https://github.com/raysan5/raylib
2021-10-12 20:22:12 +02:00
raysan5
0b0711027a
Remove unimplemented function
2021-10-12 20:21:56 +02:00
Horrowind
526e68afa8
Add DrawCylinder(Wires)Ex ( #2049 )
...
* Add DrawCylinderEx and DrawCylinderWiresEx
* Modify examples/models/models_geometric_shapes.c to show the
usage of DrawCylinder(Wires)Ex
* Simplified DrawCylinder and DrawCylinderWires to use the -Ex versions.
* This reverts commits f49b2598dd and
4542b32e4e .
* Fixed formatting.
Renamed base_angle to baseAngle.
Remove most of the raymath.h calls.
Co-authored-by: Horrowind <you@example.com>
2021-10-12 19:36:06 +02:00
raysan5
599d6e810f
REVIEWED: models resources structure
2021-10-12 12:47:50 +02:00
raysan5
4a1bd12e2d
REVIEWED: DrawCubeTextureRec() formatting
2021-10-12 12:08:12 +02:00
Ray
282ec9bb76
Formatting tweak
2021-10-10 23:48:16 +02:00
Ray
a91f61262e
Review RLAPI to avoid warnings
2021-10-10 23:24:05 +02:00
Ray
f8719e7ec3
Reviewed latest PR formatting
2021-10-10 22:38:58 +02:00
Arnaud Valensi
7c36f3f6b8
Fix dpi issues ( #1987 )
2021-10-10 22:34:56 +02:00
Jeffery Myers
3d6d5558c9
Add CheckCollisionPointLine to the header, it appears to have been missed ( #2042 )
2021-10-10 17:06:15 +02:00
Jeffery Myers
62554db48d
Add missing #endif to windows API defines ( #2038 )
2021-10-08 19:12:21 +02:00
Ray
94650f0def
Simplified RLAPI preprocessor branching
2021-10-08 17:22:58 +02:00
Jeffery Myers
33ed452439
Fix dll exports so that raylib builds in visual studio again. ( #2037 )
2021-10-07 20:17:45 +02:00
raysan5
3e71232a04
WARNING: BREAKING: REMOVED: GenImagePerlinNoise()
...
raylib was using `stb_perlin.h` library to generate perlin noise, it seems that recently this library has been flagged as it could be infringing some algorythm patent. For security, it has been removed from raylib.
2021-10-06 21:20:36 +02:00
raysan5
700d448d75
Updated external libraries
2021-10-06 21:13:17 +02:00
raysan5
8722ff7043
REVIEWED: RLGL.State.vertexCounter (See detailed comment)
...
`RLGL.State.vertexCounter` is a generic counter and it's reused for all `rlRenderBatch`, actually, once render batch is filled, required vertex count is provided through the draw calls, so, the total accumulated count of vertices is not directly registered inside the rlRenderBatch.
`RLGL.State.vertexCounter` keeps that count but one possible improvement(?) could be moving the `vertexCounter` inside `rlRenderBatch` to always keep a register of the total accumulated vertices in that batch (despite that info is provided by the accumulated `draws[i].vertexCount`.
Simplifying, `RLGL.State.vertexCounter = SUM(draws[i].vertexCount)`
The decision to move the counter out of `rlVertexBuffer` is to keep only the data that I think should belong to `rlVertexBuffer` and make it more generic, aligned with raylib `Mesh` structure.
The decision to not add it to `rlRenderBatch` is because it could contain multiple `rlVertexBuffer` and it would be confusing (because it would only register the count of the last filled one).
2021-10-06 11:44:57 +02:00
Ray
8d7f97ee04
Remove trailing spaces
2021-10-06 01:20:46 +02:00
Ray
9a4fb25285
REDESIGNED: Simplify vertex data recording
...
Instead of registering vertex texcoords and colors on every call, we keep the last defined value and we record everything on `glVertex*()`. Actually that behavior is aligned with OpenGL 1.1 standard.
2021-10-06 01:17:20 +02:00
raysan5
7439c7547b
Review functions specifiers
2021-10-05 19:20:21 +02:00
raysan5
b972b8d324
REVIEWED: API functions specifiers
2021-10-05 18:33:41 +02:00
mausimus
6541895901
Revert "reset resizedLastFrame on web platform ( #2020 )" ( #2032 )
2021-10-04 09:47:41 +02:00
tomarigr
5d8c477d12
[rcore] fix rpi4 Failed to get DRM resources ( #2031 )
...
* [rcore] fix rpi4 Failed to get DRM resources
card1 is not always the the correct card to use on rpi4
rpi os finds the correct card and links it to /dev/dri/by-path/platform-gpu-card during boot.
this fix makes sure that we always point to the correct card on rpi4
* Update rcore.c
2021-10-04 01:59:59 +02:00
Ray
79f36799e7
REVIEWED: Avoid raymath dependency
...
Still, it depends on Matrix type... rcamera module should be completely reviewed...
2021-10-03 14:08:21 +02:00
Ray
369cb0a3c5
Format tweak
2021-10-03 13:51:53 +02:00
Ray
9b3d74db6b
ADDED: GetImageColor() #2024
2021-10-03 12:55:52 +02:00
Ray
92417c4485
Update raylib.h
2021-10-03 12:33:40 +02:00
Ray
22345ff62a
Minor format tweak
2021-10-03 12:17:15 +02:00
SAOMDVN
3fc4a4c974
Added DrawLineBezierCubic() ( #2021 )
...
Co-authored-by: SAOMDVN <saomdvn@users.noreply.github.com>
2021-10-03 12:15:56 +02:00
Laurentino Luna
9fce26bb06
Supress most warnings on rmodels.c ( #2029 )
...
* Supress most warnings on rmodels.c
NOTE: unused symbols have been deleted and the following report will show in what location they were previously.
Unused symbols:
- ArrayInt - vox_loader.h: line 84
- initArrayInt - vox_loader.h: line 168
- insertArrayInt - vox_loader.h: line 175
- freeArrayInt - vox_loader.h: line 186
- offsetX, offsetY, offsetZ - vox_loader.h: line 610
- chunkTotalChildSize - vox_loader.h: line 623
Other warnings:
- initialization discards 'const' qualifier - vox_loader.h: line 572
- incompatible types for VoxVector3 and Vector3 - rmodels.c: line 5748
- incompatible types for VoxColor and Color - rmodels: line 5749
* Remove ToVector3 and ToColor functions and assign values directly
2021-10-03 12:11:20 +02:00
Ray
f869229b7f
Minor format tweaks
2021-10-03 12:09:59 +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
Chris
9882796df0
Rename BRDG typo to BDRF ( #2028 )
2021-10-02 14:07:42 +02:00
mausimus
93efa565f9
reset resizedLastFrame on web platform ( #2020 )
2021-09-29 23:27:10 +02:00
mausimus
dfbb134bfe
RLGL: restore draw batch state after limit check ( #2018 )
2021-09-29 23:26:29 +02:00
Ray
2474d50dba
Update raylib.h
2021-09-27 17:52:15 +02:00
Ray
e40ece55d5
Update raylib.h
2021-09-27 17:51:57 +02:00
raysan5
18c92b3104
ADDED: Vector3Angle()
2021-09-27 13:57:06 +02:00
raysan5
dd7d65a6b4
Remove tabs
2021-09-27 13:55:45 +02:00
Tommi Sinivuo
206e1def6f
Add Zig build file ( #2014 )
...
The build file builds Raylib as a static library for either
Windows or Linux.
2021-09-25 19:24:48 +02:00
Tristan Schulz
b7063ab879
[models] Animation System Fix Part 1 ( #2009 )
...
* Fixed gltf missing transforms on load
mend
* extracted Matrix calculation in to static method and added skinning check
* fixed formatting
* Fixed write to access to nullptr when animation has no normals
* Refactored UpdateModelAnimation to only update changed vertices when needed (allows for multi animation playing)
* add check for models that were missed during BindGLTFPrimitiveToBones to not segfault the program
* fixed id mismatch between animation and model
* draft on fixing the mesh to skin mapping
* dont look at this
* removing debug info
2021-09-23 21:06:51 +02:00
raysan5
10d7718011
UPDATED: raylib resource files
2021-09-23 20:53:31 +02:00
raysan5
ddc1fdf6d5
REVIEWED: SeekMusicStream() formating
2021-09-23 18:11:24 +02:00
Uneven Prankster
7fa521fae4
Fix + Return if attempting to seek on a module format ( #2008 )
2021-09-23 17:38:37 +02:00
Ray
08ea5e419e
REVIEWED: LoadImageAnim() #2005
2021-09-23 00:23:57 +02:00
Ray
00a763ea44
Reviewed some TODO comments
2021-09-23 00:18:47 +02:00
Laurentino Luna
dcd289d931
Modify TODO to NOTE on Makefile ( #2007 )
...
'# TODO: see 'install' target.' should be a note rather than something
to do.
2021-09-22 23:49:11 +02:00
Timon de Groot
025246620f
Add function DrawCubeTextureRec ( #2001 )
...
* Add function DrawCubeTextureRec
* Add EOF newline
* Remove unneeded example
2021-09-22 21:56:38 +02:00
Uneven Prankster
19ef765382
SeekMusicStream initial implementation (#2006 )
2021-09-22 21:55:13 +02:00
Ryan Roden-Corrent
9607ea5c0a
Use unsigned int for animation count. ( #2002 )
...
LoadModelAnimations takes an `int` for the animation count parameter.
The animation count should never be negative, so it makes sense to
specify it as unsigned in the API. This matches the API for
UnloadModelAnimations, which expects an unsigned int. Both GLTF and IQMM
also store the animation count internally as unsigned, and we were
casting to a signed int for no reason.
GLTF actually uses `size_t` internally, so we're technically risking
overflow, but having 2^32 animations seems unlikely.
2021-09-22 13:04:10 +02:00
Ray
8a434b4fd4
Update rmodels.c
2021-09-22 13:02:44 +02:00
Ray
0e037555fe
Update raylib.h
2021-09-22 12:59:40 +02:00
Ray
de173a93c8
Update rmodels.c
2021-09-22 12:19:25 +02:00
Ray
37c047eabc
Update rmodels.c
2021-09-22 11:28:52 +02:00
Ray
c1432386a5
Update Makefile
2021-09-22 11:13:10 +02:00
Ray
99ab4d6cb8
WARNING: MODULES RENAMING!!!
...
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.
The renamed modules are:
- `core` -> `rcore`
- `shapes` -> `rshapes`
- `textures` -> `rtextures`
- `text` -> `rtext`
- `models` -> `rmodels`
- `camera` -> `rcamera`
- `gestures` -> `rgestures`
- `core` -> `rcore`
All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00
Ray
8b3d054408
Minor reviews
2021-09-21 23:49:42 +02:00
raysan5
7d995d95eb
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-21 15:31:35 +02:00
raysan5
a09311a8fc
Tweaks
2021-09-21 15:31:26 +02:00
Uneven Prankster
339fdf4c31
Add up argument to DrawBillboardPro ( #1941 )
...
* Add `up` argument to `DrawBillboardPro`
* Replace tab with proper spaces
2021-09-21 15:22:30 +02:00
raysan5
c96de3a23a
ADDED: GetTouchPointId(index) #1972
2021-09-21 15:11:33 +02:00
raysan5
1627f34032
Reviewed some compilation issues #1997
2021-09-21 15:06:06 +02:00
Chris
89f031673b
Fix mappings.h issue from glfw update ( #1995 )
...
- Ran GenerateMappings.cmake to restore mapping changes
2021-09-19 20:33:18 +02:00
Tommi Sinivuo
3c55f067a8
Add SetRandomSeed(unsigned int seed) function ( #1994 )
...
Specifying a fixed seed for the random number generator is often
used in games for various reasons.
By adding an api function for seeding the random number generator
we solve two different problems regarding the seeding:
1) The underlying RNG implementation does not leak to client code
(as would be the case if we called srand directly from the
client code)
2) Seeding the RNG would be simple from other programming languages
(especially in cases where calling libc functions is non-trivial)
2021-09-17 21:26:21 +02:00
MrSwedish
23fabb1d67
Prevent INVALID_SOCKET to be defined twice on linux ( #1993 )
...
i got an error because of this lol
2021-09-17 01:05:38 +02:00
Neil Barkhina
e9d3d4fa1f
Implemented GetGamepadName() for emscripten ( #1986 )
...
* implemented GetGamepadName for emscripten
* updated gamepad to use existing name as arary
* removed unnecessary platform_web check
2021-09-12 18:02:54 +02:00
raysan5
72983d4e20
Typo
2021-09-10 19:01:24 +02:00
raysan5
b63c2619e3
Update Makefile for web compilation
...
Some flags are only for the linker, not the compiler
2021-09-10 19:01:09 +02:00
Ray
40ec7a6236
Update core.c
2021-09-10 17:23:48 +02:00
Ray
352ea80a1f
REVIEWED: Vox loader
2021-09-10 15:37:31 +02:00
procfxgen
a422d2fc8b
Vox loaded ( #1981 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
* * vox_loader.h -> Support custom memory allocators
* vox_loader.h -> Reverse Y<>Z for left to right handed system
* models/models_magicavoxel_loading.c -> fix model center
* * vox_loader.h -> Removed Raylib dependencies
* * Changed Vox_LoadFileName to Vox_LoadFromMemory
2021-09-10 15:24:01 +02:00
Ray
803094f41f
REVIEWED: Touch input system #1975 #1960
...
- ADDED: `GetTouchPointCount()` to core module, removed from gestures module.
- Support multiple touch points: `MAX_TOUCH_POINTS`.
2021-09-10 15:19:12 +02:00
Ray
2c13e43c32
Review font loading log info
2021-09-10 15:16:34 +02:00
Nikolay Krasheninnikov
18d73eef19
Fixes target direction for first person camera mode. ( #1977 )
...
Co-authored-by: Nikolai Krasheninnikov <nikolai.krasheninnikov@kronshtadt.ru>
2021-09-10 11:51:59 +02:00
Tristan Schulz
7bf31dd468
Fixed loading obj models with no materials ( #1984 )
2021-09-09 18:14:15 +02:00
Steven Schveighoffer
1a6adc5f74
Fix dynamic library issues on Macos ( #1978 )
2021-09-06 23:17:12 +02:00
raysan5
b15715ca80
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-05 21:49:49 +02:00
raysan5
8d3ff3fda8
Updated Makefile for latest Android NDK r32 LTS
...
It seems now it's required to use archiver `llvm-ar`
2021-09-05 21:49:47 +02:00
Tristan Schulz
24a38dbd3f
[models] LoadGLTF fixed missing transformations and nonroot skinning problem ( #1964 )
...
* Fixed gltf missing transforms on load
mend
* extracted Matrix calculation in to static method and added skinning check
* fixed formatting
2021-09-05 21:15:40 +02:00
raysan5
4120f12375
REVIEWED: Vox loading, mostly formating
2021-09-05 20:39:34 +02:00
procfxgen
dfc465ca6d
new models_magicavoxel_loading example ( #1940 )
...
* new models_magicavoxel_loading example
* Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example.
* models_magicavoxel_loading example added to CMakeLists.txt and Makefile
* fix models_magicavoxel_loading example for linux.
* * vox_loader into "src/external/vox_loader.h"
* vox file support for "models.c"
* updated example "models/models_magicavoxel_loading.c"
* * Fix Vox_FreeArrays (removed memory leak)
* * removed magicavoxel_loader.h
* * Revert vs2019 solution
2021-09-04 19:55:09 +02:00
raysan5
93168304cd
Update shell.html
2021-09-03 15:24:05 +02:00
Ray
9ff8ad853c
Update raygui.h
2021-09-02 00:39:47 +02:00
Ray
fa79ae8a3d
Merge branch 'master' of https://github.com/raysan5/raylib
2021-09-01 23:41:00 +02:00
Ray
9362eaf9c6
REVIEWED: Naming: length vs size
2021-09-01 23:40:51 +02:00
atticus
dfadb3ee37
fix various memory leaks ( #1969 )
2021-09-01 23:15:32 +02:00
Ray
6e76baa6a9
WARNING: BREAKING: RENAMED: Font struct variables
...
RENAMED: GetCodepointsCount() -> GetCodepointCount()
RENAMED: GetTouchPointsCount() -> GetTouchPointCount()
2021-09-01 23:11:31 +02:00
Ray
a0f8682905
REVIEWED: <name>Count for consistency
...
Following english rules, it should be singular name before Count.
2021-09-01 23:09:30 +02:00
Tristan Schulz
e8fa7ceb79
[models] Fixed counting loop for face amount per material ( #1967 )
2021-09-01 21:29:20 +02:00
raysan5
d98e61c6eb
Minor format tweaks
2021-08-28 12:01:16 +02:00
Ray
936199d8de
Review dates
2021-08-27 18:50:02 +02:00
Ray
18af18479f
REVIEWED: ExportWaveAsCode()
2021-08-27 18:49:03 +02:00
Ray
b7ae0df3d9
REVIEWED: Decouple DrawMesh() and DrawMeshInstanced() #1958
2021-08-27 12:13:44 +02:00
Richard Smith
cac856119c
Change GetColor to take unsigned int ( #1954 )
2021-08-26 17:31:01 +02:00
Ray
14e443afba
REVIEWED: OpenGL 1.1 compilation issue
2021-08-25 23:41:33 +02:00
Ray
7749a2805c
UPDATED: raygui to latest version -WIP-
...
Note this new raygui version embeds ricons and `GuiTextBoxMulti()` is not working properly
2021-08-25 00:51:37 +02:00
Laurentino Luna
6575d31379
Fix tcc not finding emmintrin.h ( #1947 )
...
* Fix tcc not finding emmintrin.h
This allows to compile raylib with tcc with no errors.
* Remove __TINYC__ check from stb_image.h
This will be placed under textures.c
* Move tcc check to textures.c
Avoiding to change stb_image.h
2021-08-24 16:34:52 +02:00
raysan5
7c1889c282
REVIEWED: Support mouse wheel on x-axis #1948
2021-08-24 15:26:59 +02:00
Ray
b154bc33f5
Added note on GLFW custom allocators for the future
2021-08-22 01:08:11 +02:00
Ray
d98779abef
Minor tweak to avoid false error logs
2021-08-22 01:07:37 +02:00
Ray
aefdb9f9cf
REMOVED: Old function names defines
...
As far as next raylib version will be 4.0, no backward compatibility hacks will be maintained.
2021-08-21 23:57:41 +02:00
Ray
ff523d55ac
Updated raygui #1939
2021-08-20 11:56:25 +02:00
atticus
6d20430ccc
add NULL check ( #1925 )
2021-08-20 11:47:51 +02:00
Ray
a5beb940f8
Remove trailing spaces
2021-08-16 23:23:16 +02:00
Ray
f3385b6ad2
Update rlgl.h
2021-08-16 19:52:57 +02:00
Ray
ef8526ae36
Update rlgl.h
2021-08-16 19:26:10 +02:00
Ray
92a13878dc
Add some comments
2021-08-16 19:23:06 +02:00
Ray
1b4c58b66f
WARNING: BREAKING: Use frameCount on audio
...
This is a big change for optimization and a more professional understanding of audio. Instead of dealing with samples, now we deal with frames, like miniaudio does, so, avoiding continuous conversions from samples to frames.
2021-08-16 11:06:31 +02:00
raysan5
462e7aec52
Updated RAYLIB_VERSION to 4.0-dev
...
Several breaking changes have been done lately so I think it's better to mark raylib for next release as 4.0.
2021-08-15 13:25:14 +02:00
raysan5
aae60e1e44
REVIEWED: extern "C" definition position for consistency
...
Note that `extern "C"` calling convention only affects objects that need to be seen by the linker, in our case only functions... but it would also be required by global variables exposed, if any.
2021-08-15 13:02:53 +02:00
raysan5
848cdb267a
Support C++ usage as standalone library
2021-08-15 12:58:34 +02:00
raysan5
760cfd361e
REVIEWED: PHYSACDEF definition and C++ issues #1918
2021-08-15 12:52:12 +02:00
630Studios
092435d51c
[Models] Fix for issue #1809 ( #1917 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
* rlUpdateVertexBuffer - bufferId is an unsigned int
* Fix for issue#1809 - Obj with more materials then mesh caused crash
* Fix for issue#1809 - Formatting Update
2021-08-12 21:01:40 +02:00
raysan5
1dff5814be
ADDED: rlUpdateVertexBufferElements() #1915
2021-08-12 21:01:09 +02:00
raysan5
26db391576
ADDED: rlActiveDrawBuffers() #1911
...
- ADDED: rlEnableColorBlend()/rlDisableColorBlend()
2021-08-12 20:38:57 +02:00
630Studios
ce3214b82d
[rlgl] rlUpdateVertexBuffer ( #1914 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
* rlUpdateVertexBuffer - bufferId is an unsigned int
2021-08-12 09:47:00 +02:00
raysan5
621a8766a8
WARNING: BREAKING: Renamed CharInfo to GlyphInfo and more...
...
This commit introduces some breaking changes for library consistency, hopefully not too dramatic... Here the full list:
- RENAMED: struct `CharInfo` to `GlyphInfo`, actually that's the correct naming for the data contained. It contains the character glyph metrics and the glyph image; in the past it also contained rectangle within the font atlas but that data has been moved to `Font` struct directly, so, `GlyphInfo` is a more correct name.
- RENAMED: `CodepointToUtf8()` to `CodepointToUTF8()`, capitalization of UTF-8 is the correct form, it would also require de hyphen but it can be omitted in this case.
- RENAMED: `TextToUtf8()` to `TextCodepointsToUTF8` for consistency and more detail on the functionality.
- ADDED: `GetGlyphInfo()` to get glyph info for a specific codepoint
- ADDED: `GetGlyphAtlasRec()` to get glyph rectangle within the generated font atlas
- Some additional tweaks for consistency
2021-08-11 21:16:39 +02:00
raysan5
b6541b7a55
REVIEWED: DrawTextPro()
...
WARNING: DrawTextPro() requires including `rlgl.h`, before it was only dependant on `textures` module.
2021-08-11 19:02:15 +02:00
raysan5
7e27c2ffa8
TODO: DrawTextPro() rotation not working?
2021-08-11 18:53:06 +02:00
raysan5
b55418effd
ADDED: DrawTextPro() with text rotation support
2021-08-11 18:31:56 +02:00
raysan5
5a259fa10f
WARNING: REMOVED: DrawTextRec() and DrawTextRecEx()
...
- DrawTextRec() and DrawTextRecEx() have been moved to example, those functions could be very specific depending on user needs so it's better to give the user the full source in case of special requirements instead of allowing a function with +10 input parameters.
2021-08-11 18:31:32 +02:00
Ryan Roden-Corrent
ef9fdd0fa5
Document Get{Key,Char}Pressed return value. ( #1909 )
...
I think it is useful to know what the empty behavior is in cases where
you are enumerating key presses (e.g. implementing "press any key to
continue").
2021-08-10 18:38:32 +02:00
raysan5
311fe8f35b
Replaced TABS by spaces
2021-08-08 21:09:11 +02:00
raysan5
a135d9c25d
REVIEWED: Avoid conflict with bool
2021-08-08 13:23:04 +02:00
raysan5
ee72497eef
REVIEWED: Some warnings...
2021-08-08 13:02:51 +02:00
raysan5
5e63cd3c97
ADDED: GenMeshCone() #1903
2021-08-08 11:29:24 +02:00
raysan5
aa67903f96
Improve rlgl description
2021-07-31 19:58:30 +02:00
raysan5
5b6d83b533
REVIEWED: rlgl defines for consistency
2021-07-31 19:46:44 +02:00
raysan5
3e75a2109d
REVIEWED: rlgl module header info
2021-07-31 19:08:13 +02:00
raysan5
559f1919c6
REVIEWED: Improved font loading info
2021-07-31 18:41:44 +02:00
raysan5
b805754aa1
REVIEWED: Avoid bool type collisions
2021-07-31 18:10:26 +02:00
raysan5
dffd1435e9
Revert "REVIEWED: Avoid UBSAN warnings #1891 "
...
This reverts commit a8e9e1387f .
2021-07-30 13:50:33 +02:00
raysan5
a8e9e1387f
REVIEWED: Avoid UBSAN warnings #1891
2021-07-30 13:47:21 +02:00
raysan5
1613057881
Update raudio.c
2021-07-30 13:45:01 +02:00
raysan5
b4fddf146b
REVIEWED: Added new mechanism to avoid data types collision between modules that share same data types and can be used in standalone mode
2021-07-30 13:44:52 +02:00
raysan5
aeb1a0da84
REVERTED: Removed the need for rlMatrix
...
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like
`#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-30 12:54:54 +02:00
raysan5
1cc25d1a2d
Review include path that was breaking the build
2021-07-30 12:14:31 +02:00
raysan5
bd70a22412
Review some issues
2021-07-30 11:56:14 +02:00
raysan5
8b7f43f89b
WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-
...
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed.
- REMOVED: `Texture2D`, `Shader` structs dependency
- REMOVED: `Vector3`, `Matrix` structs dependency
- REMOVED: raymath functions dependency, all required math is implemented in rlgl
- ADDED: `rlMatrix` custom rlgl type
- ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types
- ADDED: `rl` prefix to all `rlgl` structs
- Other small tweaks here and there
2021-07-29 21:57:50 +02:00
raysan5
58e9a0894f
Reviewed some functions to avoid calling other functions
2021-07-29 21:50:50 +02:00
iskolbin
6ef3ab3d3a
impoves raylib_parser: makes it generic, adds -d key for functions define (RLAPI for raylib.h), increases maxiumum number of fields in structs and values in enums, doubles max length of struct field names; split float3/float16 struct typedefs in raymath to allow parser to process the file ( #1901 )
2021-07-29 20:37:44 +02:00
raysan5
a9f6ff6fe3
Add external folder to build (just in case)
2021-07-29 20:32:30 +02:00
Kyle Appelgate
d8ca13f4c6
fixed DisableCursor() on web by registering an empty mouse click event function in emscripten ( #1900 )
2021-07-28 21:38:31 +02:00
raysan5
96aadec503
REVIEWED: Info on image loading failure
2021-07-28 19:47:53 +02:00
raysan5
69a82c7a0d
ADDED: raygui to extras libraries for convenience
2021-07-28 13:15:43 +02:00
raysan5
0c3902b543
ADDED: GetModelBoundingBox()
...
Reorganized models functionality, it still needs some review...
2021-07-28 13:15:10 +02:00
raysan5
7c7ee1cdc8
REVERTED: Mesh indices issue #1891
2021-07-28 13:12:16 +02:00
raysan5
0c17d1e14f
Minor formatting tweak
2021-07-28 12:58:43 +02:00
Jeffery Myers
c706b33b30
Don't normalize zero length vectors. ( #1896 )
2021-07-28 08:59:39 +02:00
raysan5
e9c7ab925f
REVIEWED: rlDrawVertexArrayElements() #1891
2021-07-27 23:35:54 +02:00
raysan5
70ed52dd5d
REVIEWED: QuaternionFromAxisAngle() #1892
2021-07-27 23:30:08 +02:00
Uneven Prankster
4e363b5479
Remove unused UWP defines ( #1894 )
...
* Unused UWP define removal
* Further removal of unusued UWP defines
2021-07-26 17:40:10 +02:00
Ray
00911b0842
Reviewed ImageDrawLine() formating
2021-07-23 23:32:20 +02:00
Alexander Buhl
ff2b8d6db1
Fixes #1873 Implemented remaining 7/8 of ImageDrawLine ( #1874 )
...
* Implemented remaining 7/8 of ImageDrawLine
The existing code was correct for one octant, it now works for all 8
Added two internal functions, _ImageDrawLineHorizontal and _ImageDrawLineVertical, whithout which it would've been 4 times as much code.
* ImageDrawLine: Replaced 3 functions with 1
Removed both freshly added internal functions
Crammed it all into one
* ImageDrawLine shortened significantly using maths
Substituted X and Y, then wrote one abstract loop instead of 4 specific loops.
Lots of comments to explain what I'm doing for future maintainers.
* Now conforms with style conventions
Also reworded a comment to sound more... fomal.
2021-07-23 23:17:04 +02:00
Ray
0fa295c72d
Review formating to follow raylib style conventions
2021-07-23 18:16:08 +02:00
Luiz Pestana
5c76c33d7d
Raspberry RPI/DRM keyboard fix ( #1879 )
...
Legacy keyboard support was blocking the render loop, also it was keeping the last key status until the next key.
2021-07-17 20:27:48 +02:00
630Studios
53bb87c8fb
[Models] Better Fix for GenMeshTangents issue #1876 ( #1878 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
* Code Style Changes Final 2
* GenMeshTangents better handling for issue #1876
* GenMeshTangents better handling for issue #1876
* GenMeshTangents: Better fix for issue #1876
* vboId location fix
2021-07-17 01:33:49 +02:00
630Studios
9aaf7a8057
GenMeshTangents Fix ( #1877 )
...
* GenMeshTangents Fix
* GenMeshTangents Fix - Comment Update
* GenMeshTangents Fix - Comment Update final
* Code Style Changes
* Code Style Changes Final
2021-07-16 22:14:13 +02:00
raysan5
c4804c4c0c
REVIEWED: Wrong normal matrix calculation #1870
2021-07-16 17:12:22 +02:00
raysan5
85dc2cc03a
Minor format tweaks
2021-07-16 16:10:53 +02:00
GoldenThumbs
59acb6dbea
Updated models.c ( #1871 )
...
- fixed issue where vertex positions being passed in place of vertex normals.
2021-07-13 12:18:52 +02:00
Humberto Yeverino Jr
8277597bcf
Fix Android multi-touch ( #1869 )
2021-07-13 12:17:47 +02:00
raysan5
ae230dae46
Update Makefile
2021-07-09 18:49:36 +02:00
raysan5
7062415aec
WARNING on emscripten_set_fullscreenchange_callback()
2021-07-09 18:49:29 +02:00
raysan5
5ed814e950
Minor tweaks and comments
2021-07-09 17:36:20 +02:00
Ray
3a74534c39
Added a note
2021-07-07 21:41:45 +02:00
raysan5
4d438ed68d
REVIEWED: RPI: Keyboard stdin input #1769
2021-07-06 18:25:00 +02:00
raysan5
bfff2c432c
Minor tweaks on DRM system
2021-07-06 17:16:50 +02:00
raysan5
9aedfbec69
Review formatting
2021-07-05 18:45:17 +02:00
raysan5
c0ca8a74bc
WARNING: BREAKING: REMOVED PLATFORM_UWP support
...
After lot of investigation, I'm afraid I'm removing official UWP support from raylib, I'll keep the current implementation in a separate branch (UWP), just in case. It seems Microsoft is trying to replace UWP in the long term, they announced lack of support for the new WinUI 3 and they seem to be moving to Windows App SDK.
Also, on current implementation, the code is divided between raylib and the example, requiring multiple callback hooks, making it difficult to follow and maintain.
And realistically speaking, raylib is probably not the best option for anyone willing to target UWP, neither Xbox consoles.
2021-07-05 12:34:23 +02:00
raysan5
d432d03aea
REVIEWED: Infinite loop on closing #1861
2021-07-04 20:29:20 +02:00
raysan5
c15d08d6ec
Review some comments
2021-07-03 21:48:35 +02:00
raysan5
f8753bda01
Update core.c
2021-07-03 21:31:52 +02:00
raysan5
652b17d68d
Review variables initialization
2021-07-03 21:25:30 +02:00
raysan5
efba81442a
Update link address for miniaudio
2021-07-03 21:25:05 +02:00
raysan5
f81dfce19f
Minor tweaks
2021-07-01 21:43:13 +02:00
raysan5
a6728a2203
REVIEWED: emscripten versions
2021-06-30 17:12:58 +02:00
raysan5
9e7ca41f58
Remove trailing spaces
2021-06-30 16:39:07 +02:00
masterex1000
ee24d17895
Fix DecompressData() pointer issue ( #1856 )
2021-06-29 23:06:09 +02:00
raysan5
da8d76d826
Review issue with pointer #1854
2021-06-29 11:26:34 +02:00
raysan5
6f30a19dd7
Update uwp_events.h
2021-06-28 14:23:55 +02:00
raysan5
2911cf2a48
Reviewed comments
2021-06-28 14:23:45 +02:00
Ray
e5cf3f9555
WARNING: BREAKING: Functions renamed for consistency
...
RENAMED: GetTextureData() -> LoadImageFromTexture()
RENAMED: GetScreenData() -> LoadImageFromScreen()
2021-06-28 09:39:31 +02:00
raysan5
5f03201616
Minor tweaks
2021-06-26 22:43:20 +02:00
raysan5
8eb7cf1fee
REVIEWED: Enum values descriptions
2021-06-26 22:13:45 +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
00c8795385
Minor tweaks to follow code conventions
2021-06-26 13:45:39 +02:00
Ray
89708edf7f
REVIEWED: Latest PR to follow raylib code conventions
2021-06-26 13:45:15 +02:00
Hristo Stamenov
71700254b4
Major revamp gltf ( #1849 )
...
* Added my own model and license to Raylib exclusively created by me and provided for use in the examples (and other projects if anyone decides to)
* Use animation vertices on initial load if possible.
* Added girl model to model example
* Revamped GLTF model loading as it was wrong by default. Also updated some comments.
GLTF models were loaded only by mesh but they should be loaded recursively by hierarchical nodes because tehre are some static node transformations that are to be applied to the vertices. It also resulted in more meshes being included in some models.
It is the correct way of loading GLTF and what is suggested in the official examples.
Currenlty limiting to only one scene but more can be included later.
* Refactored the new names and structure of extracted functions.
* Safer and easier read value.
* Made reading easier for accessor->bufferView->buffer in GLTF.
Now there is no need to check for supported types or anything.
* Correct inclusion of limits.h in the cases of MSVC based compilers vs the world
* Removed weird example file
2021-06-26 13:22:00 +02:00
Ray
aa86e9d399
REVIEWED: Minor tweaks on log messages
2021-06-26 13:18:39 +02:00
Ray
4b6e6ce20e
REVIEWED: Improved log info on image/textures laoding
...
ADDED: rlGetPixelFormatName()
2021-06-26 13:07:14 +02:00
Ray
7cbfca8bd1
REVIEWED: Simplified code to avoid extra functions calls
2021-06-26 13:06:22 +02:00
Ray
e0720a0a55
WARNING: REVIEWED: Default shader uniform names
...
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25 13:35:43 +02:00
Ray
d4c03b47ec
REVIEWED: LoadShader() and default locations
...
Reviewed locations descriptions
2021-06-25 00:46:14 +02:00
Ruminant
f3eff740ce
fix to LoadShaderFromMemory ( #1851 )
...
- the shader.locs now match the LoadShader function
Without this change, the lighting sample looks incorrect when
using LoadShaderFromMemory
Co-authored-by: Ruminant <psp5150+git@gmail.com>
2021-06-24 18:48:48 +02:00
Ray
953882e86f
REVIEWED: CORE.Storage.basePath
...
Simplified some code
2021-06-24 18:13:25 +02:00
Ray
46ad7b87e8
Update text.c
2021-06-24 18:11:48 +02:00
Ray
4e9afac2a5
REVIEWED: WaitTime() #1841
...
Avoid global variables dependency, now the function is self-contained.
2021-06-24 11:01:44 +02:00
Nikhilesh S
f7a6b94f46
Allow SetWindowSize() on web ( #1847 )
2021-06-23 10:02:18 +02:00
Ray
3db26f82ea
WARNING: BREAKING: Functions renamed!
...
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer.
ADDED: UnloadCodepoints() to safely free loaded codepoints
RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-23 09:58:49 +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
429c5a9a9a
Review and un-expose InitTimer()
...
Actually it's not required for SUPPORT_CUSTOM_FRAME_CONTROL
2021-06-22 20:26:59 +02:00
Ray
7f2a071c51
Formatting review
2021-06-22 20:14:44 +02:00
Sky
9095dd9e82
Add support for resizing Emscripten canvas ( #1840 )
2021-06-22 18:25:52 +02:00
Diesirae
30a0f6f292
Fix DrawTextRec ( #1843 )
...
* fix text wrapping
* fix indent
* fix indent
* fix indent
* fix DrawTextRec
2021-06-22 18:16:04 +02:00
Guillaume DEVOILLE
52f1c7df6d
Fix missing fclose in tinyobj loader ( #1842 )
...
Missing fclose in tinyobj loader.
2021-06-22 18:12:42 +02:00
Ray
115cc7dede
Review GetFPS()
2021-06-21 00:46:30 +02:00
Adrian Guerrero Vera
96d5dd24aa
core: added GetMouseDelta() ( #1832 )
...
* core: added `GetMouseDelta()`
Thanks to previousPosition added by raysan it is now possible to create the GetMouseDelta() function.
Returns a Vector2 with the difference between the current and previous position of the mouse in a frame.
Useful for creating camera scrolling, among others.
* Added changes noted by raysan
2021-06-21 00:11:27 +02:00
raysan5
28093c46a8
Disable SUPPORT_EVENTS_AUTOMATION by default
2021-06-19 19:54:36 +02:00
Ray
1dd9fbae94
Merge branch 'master' of https://github.com/raysan5/raylib
2021-06-17 18:18:26 +02:00
Ray
8be5ec2288
Avoid SUPPORT_MOUSE_CURSOR_POINT
2021-06-17 18:18:16 +02:00
Sirvoid
1a420b77e3
Fixed: Binding vertex position twice ( #1835 )
2021-06-17 15:42:37 +02:00
Ray
e07054d0d4
RENAMED: SwapBuffers() -> SwapScreenBuffer()
...
Avoid possible symbol collisions
2021-06-17 12:47:03 +02:00
Ray
b733e76c86
Update physac.h
2021-06-17 12:26:33 +02:00
Ray
19b71f5f13
WARNING: Exposed SUPPORT_CUSTOM_FRAME_CONTROL #1729
2021-06-17 12:17:50 +02:00
Ray
ab032919df
RENAMED: Wait() -> WaitTime()
2021-06-17 11:47:05 +02:00
Ray
68e408474d
Renamed SUPPORT_MOUSE_CURSOR_NATIVE -> SUPPORT_MOUSE_CURSOR_POINT
2021-06-17 11:17:39 +02:00
Ray
942657fc7c
Remove Color struct requirement
2021-06-17 00:28:51 +02:00
Ray
4decbb2586
RENAMED: MeshTangents() -> GenMeshTangents()
...
RENAMED: MeshBinormals() -> GenMeshBinormals()
2021-06-17 00:04:24 +02:00
Ray
f3d38018cd
Comment tweak
2021-06-17 00:03:24 +02:00
Ray
4b93feb172
Remove trail spaces
2021-06-13 17:08:30 +02:00
Ray
213c990eda
Reviewed issue
2021-06-13 12:08:32 +02:00
Ray
de7b8ad551
NEW CRAZY FEATURE: EVENTS AUTOMATION!
...
https://youtu.be/3dZenkpmRzM
2021-06-11 12:27:46 +02:00
Ray
0b8e0f05a7
Register mouse previous position
2021-06-10 18:03:25 +02:00
Ray
b188008a1c
Review code formatting
2021-06-10 18:00:44 +02:00
Ray
7bc2e922c9
Review some comments
2021-06-10 17:49:55 +02:00
Ray
b0dcdf688f
Reviewed functions description
...
Replaced: Returns -> Get
2021-06-10 17:43:58 +02:00
Ray
d3387c952a
Reviewed Input variables and comments
2021-06-10 17:11:31 +02:00
Ray
3643974949
Corrected bug on enum
2021-06-10 11:38:02 +02:00
Ray
8980bcfe4b
Added some enum comments
2021-06-10 11:31:34 +02:00
Ray
97b074ac26
Update GLFW to latest version #1817
2021-06-08 21:02:24 +02:00
Ray
76a907bb79
Remove tabs
2021-06-08 21:01:17 +02:00
raysan5
246798a0ba
Update Makefile
2021-06-05 20:15:03 +02:00
raysan5
e95d8bc655
Minor format tweaks
2021-06-05 12:33:05 +02:00
raysan5
6445200a93
Removed GetAudioStreamBufferSizeDefault()
2021-06-05 12:32:52 +02:00
Ray
e00d2439b9
WARNING: BREAKING: Consistency renamings
...
RENAMED: InitAudioStream() -> LoadAudioStream()
RENAMED: CloseAudioStream() -> UnloadAudioStream()
2021-06-03 23:36:47 +02:00
Ray
121c689b78
Review code formatting
2021-06-03 20:25:28 +02:00
Crydsch
edeaff4bd4
Better collisions ( #1803 )
...
* review collisions ray-box and ray-sphere
* Applied raysan's refactor
Improved GetRayCollisionBox
* Replace GetRayCollisionGround with GetCollisionQuad
* Update example core_3d_picking
* Update example models_loading
* Fixed issues after merge
* remove debug stuff
Co-authored-by: Cry dsch <chris.obo@gmx.net>
2021-06-03 20:15:27 +02:00
isaac553876299
d1ac38171c
Update raymath.h ( #1802 )
2021-06-01 17:00:40 +02:00
Marco G. Maia
1a7dace57e
Update docs for supported blend modes ( #1801 )
2021-06-01 15:00:19 +02:00
Ray
0870295a7c
RENAMED: enum Gestures -> Gesture
...
Consistency tweak
2021-05-31 20:40:27 +02:00
Ray
5e3cf28642
Update raudio.c
2021-05-31 19:32:48 +02:00
Ray
8f4261e9d4
Remove unused declarations
2021-05-31 12:58:49 +02:00
Ray
2760304d66
Update CMakeLists.txt
2021-05-31 12:27:26 +02:00
Ray
9bd3d78374
WARNING: Moved some **extra** raylib libraries to /extras/ directory
2021-05-31 11:43:56 +02:00
Ray
1c5de9721a
WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781
...
- RENAMED: RayHitInfo to RayCollision
- RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-31 11:41:56 +02:00
Ray
7bcb2ad4f1
Update uwp_events.h
2021-05-31 11:39:20 +02:00
Ray
89e734de6b
Review config flags #1784
2021-05-30 22:31:14 +02:00
Julianiolo
cc4de1d1f9
note ( #1797 )
2021-05-30 18:33:38 +02:00
Ray
71995d52b3
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
2021-05-30 18:02:06 +02:00
Ray
0369ec9adf
Some code tweaks
2021-05-30 11:50:32 +02:00
Ray
c828e481fb
Review code format
2021-05-29 13:56:08 +02:00
Ray
e3ba11bead
Review some comments
2021-05-29 13:54:05 +02:00
Hristo Stamenov
beeac18eb1
Fix QuaternionToMatrix returning transposed result. ( #1793 )
2021-05-29 13:53:00 +02:00
Hristo Stamenov
470574517a
Implement vertex color attribute for GLTF and IQM ( #1790 )
...
Added a simple cube with vertex colors for testing both.
2021-05-26 20:23:13 +02:00
Ray
7959d95db0
Review raylib structs comments
2021-05-25 23:19:03 +02:00
Ray
9f45fea31e
Remove line break in DrawTextRecEx()
2021-05-25 11:59:34 +02:00
Ray
03710c9d8e
Some code tweaks for consistency
2021-05-22 16:54:04 +02:00
Ray
cb698dd37d
Update Makefile
2021-05-22 16:51:51 +02:00
Ray
5765b7895c
Minor comments tweaks
2021-05-22 14:35:10 +02:00
raysan5
60ca8acd0a
Update version to 3.8-dev to note breaking changes
...
Some breaking changes were introduced lately, it's better to note that current version is not 3.7 anymore...
2021-05-21 22:59:00 +02:00
Ray
4a099c3658
Review ExportImage() to use SaveFileData() #1779
2021-05-20 20:37:46 +02:00
Ray
23a08a483e
WARNING: RENAMED: IsMusicPlaying() -> IsMusicStreamPlaying()
2021-05-20 19:27:04 +02:00
Ray
f33cec64aa
Use output->boneCount instead of nodes_count
2021-05-20 19:25:09 +02:00
Ray
e401d5c48e
WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()
...
Renamed for consistency with other function in raylib.
2021-05-20 19:24:28 +02:00
Ray
9360e4e2c1
Comment minor tweak
2021-05-20 19:14:42 +02:00
Guillaume DEVOILLE
b90ac7bd31
Fixed over-allocation of buffer ( #1772 )
...
output->framePoses[frame] is over-allocated.
framePoses is a 2D array:
- first dimension: frames (allocated l. 4717)
- second dimension: nodes (allocated l. 4731)
Second dimension should be allocated of nodes_count transformations only.
2021-05-15 00:41:33 +02:00
Ray
232378ed2d
Merge branch 'master' of https://github.com/raysan5/raylib
2021-05-14 14:01:51 +02:00
Ray
3baba7ffe8
Review some VS warnings and messages
2021-05-14 14:01:42 +02:00
Guillaume DEVOILLE
45b0dc63cd
Fixed GLTF boneWeights uint32 loading ( #1768 )
...
boneWeights uint32 were loaded in normals instead of boneWeights.
2021-05-13 13:58:51 +02:00
Ray
6c56fe2670
Update shell.html
2021-05-12 19:51:29 +02:00
Ray
6bd63de8d0
Reviewed latest PR
...
REMOVED: DrawBillboardEx()
2021-05-11 01:02:53 +02:00
nobytesgiven
ac204a11f7
Redesigned billboards - added rotation/pro functions ( #1759 )
...
* Redesigned billboards - added rotation/pro functions
* updated parameters
Co-authored-by: nobytesgiven <nobytesigiven@github.com>
2021-05-11 00:55:43 +02:00
Lambert Wang
e39e45824d
Add RenderPolyLinesEx routine ( #1758 )
...
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-10 20:08:58 +02:00
ProphesorIks
1d0767022d
~Updated project version ( #1761 )
...
Updated to fix versioning and linking issues.
Old version would cause examples to not be linked on fresh raylib install or linked with an old library version on updated raylib install.
2021-05-10 00:51:37 +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
Antonio Jose Ramos Marquez
2565c01158
check for vao extension ( #1757 )
2021-05-08 18:24:14 +02:00
Jeffery Myers
133e6f097d
Convert the half sleep to a sleep that is a fraction of the target FPS (Default 95%) to reduce CPU use. ( #1756 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-05-07 19:49:44 +02:00
Ray
b62c86572e
REVIEWED: raudio_standalone #1752
2021-05-07 15:38:13 +02:00
Astie Teddy
c82d9cb89a
Unset CORE.Window.ready on CloseWindow ( #1749 )
...
Window shouldn't be considered ready when CloseWindow has been called.
2021-05-05 19:08:15 +02:00
Ray
a41ed986bd
Expose RAYLIB_VERSION in raylib.h #1747
2021-05-04 11:20:47 +02:00
Ray
e5708a8f36
Comment tweak
2021-05-03 19:05:53 +02:00
Ray
2015828fc6
Security check in case of not valid font
2021-05-03 19:05:43 +02:00
Ray
a3e7664dcf
Fixed bug that overrides other flags
...
This issue prevented enabling MSAA on several platforms
2021-04-29 00:07:28 +02:00
Ray
ffadeeeb84
Decoupling rlgl from platform layer
...
Now rlgl only depends on OpenGL and it's completely decoupled from platform layer libraries (EGL)
2021-04-28 23:57:46 +02:00
Ray
f516f4099b
Corrected issue #1742
2021-04-28 19:27:50 +02:00
Ray
a113d3326b
Disable raylib code
2021-04-27 23:12:04 +02:00
Rabia Alhaffar
399894ac90
Fixed definition of UNCOMPRESSED_R8G8B8A8 ( #1740 )
2021-04-27 20:17:47 +02:00
Ray
6ebe76cba7
Minor tweaks
2021-04-27 11:05:05 +02:00
Ray
1aa8a4ff90
REVIEWED: rlLoadExtensions()
...
On PLATFORM_ANDROID, PLATFORM_RPI, PLATFORM_DRM and PLATFORM_UWP glfwGetProcAddress() is not defines, actually those platforms use egl platform windowing system.
2021-04-27 11:04:48 +02:00
Ray
bb33033389
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-26 00:36:22 +02:00
Ray
a44815e939
REMOVED: GenMeshDefault()
2021-04-26 00:36:13 +02:00
raysan5
0e2845ec26
Review OpenGL 1.1 building #1732
...
It works compiling with MinGW
2021-04-25 13:32:24 +02:00
Ray
7ad17386f6
Update raylib.h
2021-04-23 17:24:25 +02:00
Ray
03815ec4fe
RPI4: Improve DRM card check #1723
2021-04-22 21:01:48 +02:00
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +02:00
Ray
ac79d22a9b
Reviewed file comments
2021-04-21 00:41:55 +02:00
Ray
1e65817d05
Update models.c
2021-04-20 12:19:04 +02:00
Ray
bb743e8c6e
ADDED: UpdateMeshBuffer()
2021-04-20 12:16:16 +02:00
Ray
63a1bf373c
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-19 19:41:41 +02:00
Ray
899afcbdca
Minor tweaks
2021-04-19 19:41:32 +02:00
nathants
1c45a882f7
use bone weights for animation ( #1728 )
2021-04-19 18:26:40 +02:00
Ray
581bd0eb02
Remove trailing spaces
2021-04-18 23:50:32 +02:00
Ray
223091f44c
Review extensions issue on macOS
2021-04-18 20:33:49 +02:00
Ray
d4ccca81db
WARNING: REDESIGNED: rlLoadExtensions() #1295
...
Added config flag: SUPPORT_GL_DETAILS_INFO
2021-04-18 20:24:19 +02:00
Ray
640fc4d0a0
Minor tweaks
2021-04-16 21:19:28 +02:00
Ray
45823a36eb
Added some OpenGL extensions comments
2021-04-14 21:07:04 +02:00
Ray
37f523fdeb
Update external libraries
2021-04-14 21:06:00 +02:00
Ray
d289085ce3
Reviewed DrawLine3D() limits #1721
2021-04-13 01:08:39 +02:00
Ray
06f16f199a
REVIEWED: DrawLine3D() #1721
...
Increased batch limit check to compensate internal buffers alignment for lines drawing
2021-04-13 00:05:21 +02:00
Ray
afb254b985
Update rlgl.h
2021-04-11 00:58:04 +02:00
Ray
d2cb628a66
Some defines simplification
2021-04-11 00:55:45 +02:00
Jon
c74230a9ea
Enable DRM platform cross compilation support ( #1717 )
...
* Log a warning if chdir failed, use agnostic CHDIR instead of chdir
* Only include libdrm directory explicitly when not cross compiling
2021-04-09 19:57:14 +02:00
Jeffery Myers
f6f9a3d925
use xm streams in the same sample sample size as the output device ( #1716 )
2021-04-09 11:00:21 +02:00
Chris
3cdac3e11e
Fix off by one bug with GetGamepadAxisCount on PLATFORM_DESKTOP ( #1715 )
...
- Found testing core_input_gamepad. The last axis was not drawn.
- GLFW_GAMEPAD_AXIS_LAST is defined to the last axis which is 5
not the total number which is 6.
2021-04-09 00:55:47 +02:00
Ray
8a8948780e
REVIEWED: GetKeyPressed() #1712
2021-04-09 00:21:56 +02:00
Ray
49e17044c9
Update resource files
2021-04-09 00:20:43 +02:00
Ray
6719c3a1cd
REVIEWED: OpenGL 2.1 compilation
2021-04-07 09:39:41 +02:00
Ergoold
85ef9d8f2e
Fix ImageClearBackground ( #1711 )
...
- Dividing by height instead of width results in missing parts of the image.
2021-04-07 00:02:37 +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
Saikyun
fd663024ea
added import in order for alloca to work on macos ( #1710 )
2021-04-06 21:42:00 +02:00
Ray
6d3c66a179
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-06 21:40:05 +02:00
Ray
68124599e1
Corrected issue on RPI
2021-04-06 21:39:54 +02:00
frithrah
b2545e053a
Minimum number of segments in circle sector functions changed from hard-coded to based on degree range. ( #1707 )
...
Co-authored-by: Simon <simon@frithrah.com>
2021-04-06 14:29:58 +02:00
Ray
109d00cb14
Reorganized shaders functions
2021-04-06 13:10:12 +02:00
Ray
551944e15b
Minor comment tweaks
2021-04-06 13:04:15 +02:00
Ray
0a34a35403
Update miniaudio.h
2021-04-06 11:57:51 +02:00
Ray
802ca161d3
REVIEWED: Some rlgl cleaning on unused types
2021-04-06 00:43:38 +02:00
raysan5
a8dd4127f3
Added security check to avoid internal render batch overflow
2021-04-05 13:59:52 +02:00
raysan5
0e04ae561e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-05 13:48:03 +02:00
raysan5
7b37caa96c
REVIEWED: Model scale #1700
2021-04-05 13:47:52 +02:00
m4ntr0n1c
abf481023b
Update to the xm player routine and support functionalities ( #1701 )
...
* Update jar_xm.h
Major bug fixes and refactoring
* Update jar_xm.h
update to version 0.31
2021-04-05 13:46:09 +02:00
raysan5
c2c141f941
Update version to raylib 3.7
2021-04-05 13:36:23 +02:00
raysan5
b52cd8f605
Reorganized functions by module
2021-04-05 13:35:59 +02:00
raysan5
5fd441969d
REVIEWED: rlLoadShaderDefault()
...
Operate over global variable
2021-04-05 13:35:42 +02:00
raysan5
14aa29d18b
Update rlgl.h
2021-04-04 15:10:39 +02:00
raysan5
4c9d2e719e
Merge branch 'master' of https://github.com/raysan5/raylib
2021-04-04 14:59:29 +02:00
raysan5
66f3434571
REDESIGNED: Shapes texture/rec moved to shapes module
2021-04-04 14:59:17 +02:00
Rob Loach
d58b7b509e
Make SaveFile* callbacks return a boolean ( #1697 )
2021-04-03 08:56:42 +02:00
raysan5
c21baf0d92
ADDED: GenMeshDefault() #1556
2021-04-02 15:56:35 +02:00
raysan5
ccdf7ff335
REDESIGN: Move GenTexture*() functions to PBR example #721
...
Removed functions from rlgl module.
2021-04-02 14:29:33 +02:00
raysan5
67dda62867
REVIEWED: GenTexture*() functions #721
...
Avoid RLGL data dependency to allow moving the functions somewhere else
2021-04-02 14:01:30 +02:00
raysan5
7e2531fe35
REVIEWED: ToggleFullscreen() on web #1241
...
After some investigation, I came to the conclusion it's impossible to get a solution that works for all situations. Fullscreen mode on web depends on the browser, the canvas and also the desired scaling strategy of the user. Just choose a solution that fits me needs for now and let the user manage the canvas on their webs (hopefully not requiring ToggleFullscreen() call).
Also removed several useless related callbacks.
2021-04-02 13:46:56 +02:00
raysan5
38df0760cc
Review compress/decompress logs
2021-04-02 13:43:10 +02:00
raysan5
d64f27bad1
Remove old flag
2021-04-02 13:42:07 +02:00
raysan5
2b6e7c8632
Update Makefile
2021-04-02 13:41:54 +02:00
raysan5
b54d96205f
Review libc dependency
2021-04-01 21:22:18 +02:00
raysan5
aed0fee2ca
Remove trailing spaces
2021-04-01 20:24:33 +02:00
raysan5
b4975619ed
Review comments
2021-04-01 20:23:05 +02:00
raysan5
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
raysan5
2488d361b6
Review formatting
2021-03-31 20:15:04 +02:00
raysan5
c772de702b
REVIEWED: DrawMeshInstanced() matrix computations
...
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31 19:59:23 +02:00
raysan5
434a3a276d
REVIEWED: Define instancing API entry points for RPI
2021-03-31 18:41:03 +02:00
raysan5
8e51e6d1df
REVIEWED: CheckCollisionPointLine()
...
Use fabsf() instead of abs()
2021-03-31 18:40:33 +02:00
raysan5
fd3e2fda00
RENAMED: example: shaders_mesh_instancing
...
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31 18:40:04 +02:00
raysan5
8f1d81df0f
Review code formatting
2021-03-31 17:55:46 +02:00
mkupiec1
3d1a05d588
[shapes] CheckCollisionPointTriangle (fix), CheckCollisionPointLine (new routine) ( #1695 )
...
* CheckCollisionPointTriangle
* New feature proposal to existing collision detection routines.
It checks if point [point] belongs to line created between two points [p1] and [p2] with defined margin in pixels[threshold].
1693
2021-03-31 16:50:05 +02:00
raysan5
98a2e16d4d
REVIEWED: RPI instancing checks #1679
2021-03-31 16:44:14 +02:00
raysan5
b5aaf33058
Review matrix multiplication
2021-03-28 22:04:04 +02:00
raysan5
aaf0d8b839
REVIEWED: rlgl: Stereo render is working again
...
As a bonus, stereo render is compatible with mesh instancing now!
2021-03-28 21:35:58 +02:00
raysan5
6a24dd8945
REVIEWED: tinyobjloader #1568
2021-03-28 20:51:29 +02:00
raysan5
23a764190e
ADDED: LoadShaderFromMemory() #1690
2021-03-28 20:12:48 +02:00
raysan5
bc6b16beb2
REVIEWED: DrawTexturePoly()
2021-03-28 20:07:59 +02:00
Carlos Hernandez Barbera
7eaeffc8d9
GetCollisionRayMesh makes use of triangle count ( #1688 )
...
Co-authored-by: Carlos Hernandez Barbera <carloshdezbarbera@gmail.com>
2021-03-27 18:24:39 +01:00
Maksymilian Mika
f38ced15e7
Fixing pointer arithmetic to avoid error [-Werror=pointer-arith] ( #1685 )
2021-03-27 07:54:44 +01:00
Dan Bechard
b6ca524bdd
Preserve floating point values in DrawRectangleLinesEx ( #1683 )
2021-03-26 20:15:19 +01:00
Ray
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
Ray
fb9a437f8a
REVIEWED: OpenGL 1.1 working again
2021-03-25 20:35:48 +01:00
Ray
cba412cc31
WARNING: BREAKING: rlgl redesign -WIP-
...
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements:
- [models] OpenGL 1.1 mesh rendering: DrawMesh()
- [models] Mesh Instancing: DrawMeshInstanced()
- [models] Stereo rendering: DrawMesh()
- [models] GL_FLOAT, GL_UNSIGNED_INT exposed
- [models] GenMeshCustom()
- [rlgl] GenTexture*() functions removal?
2021-03-25 14:28:12 +01:00
chriscamacho
9569d6a802
Add DrawTexturedPoly and example ( #1677 )
...
* adds DrawTexturedPoly with example
* the actual example ... ahem
* moved DrawTexturePoly to textures function and example
NB function name changed to fit with other DrawTextureXXX functions
(no "d" )
Co-authored-by: codifies <you@example.com>
2021-03-25 14:22:10 +01:00
Jeffery Myers
13f97471a2
Change the color of the FPS display if the FPS is low (orange for <30, red for < 15). ( #1676 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-24 17:59:05 +01:00
Ray
bb73a8089a
Reviewed DrawFPS() comment
2021-03-24 17:06:32 +01:00
Ray
9bea64b5e4
REMOVED: DrawGizmo()
...
This is a very simple and specific implementation that should be better addressed by the users
2021-03-24 17:02:40 +01:00
Ray
9047025ab7
Update textures.c
2021-03-24 00:41:01 +01:00
Ray
c2bc3d22a1
REVIEWED: DrawRectangleRounded() performance #1523
...
Function analyzed using RenderDoc. It's a complex function and could require many triangles for the corners but it seems overall it's quite optimized!
2021-03-24 00:25:53 +01:00
Victor
c5b0a1f005
Fix activeTextureId to have MAX_BATCH_ACTIVE_TEXTURES elements instead of the hardcoded 4 ( #1674 )
2021-03-23 20:17:23 +01:00
Chris
2532c396ed
Fix 90 degree bug with DrawTexturePro and DrawRectanglePro ( #1673 )
...
- The vertices did not map to where I expected causing rotation to be
off by 90 degrees. I reorganized the vertices making it easier to
reason about which fixes this.
- The order for drawing is now topLeft, bottomLeft, bottomRight,
topRight.
2021-03-23 14:40:26 +01:00
Ray
3e6ee028e5
Update rlgl.h
2021-03-23 12:15:52 +01:00
Ray
6f5a4a9351
REVIEWED: rlgl_standalone usage
2021-03-23 11:51:09 +01:00
Dan Bechard
5325d8d2ba
Don't call sqrtf when axis already normalized ( #1672 )
2021-03-23 11:32:25 +01:00
Davidson Francis
81738bfa98
Fix PATH for other PLATFORM_OS's ( #1671 )
...
The Raylib root Makefile for PLATFORM=PLATFORM_WEB is assumed to
run in Windows environments, which makes it incorrectly set the
PATH variable, so Linux (and possibly other) environments are not
able to find binaries from EMSDK_PATH.
Fix this by checking which PLATFORM_OS and configure PATH
accordingly.
2021-03-23 07:53:25 +01:00
Jeffery Myers
c6dd41495b
typecast warning fixes. ( #1667 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-22 20:45:46 +01:00
Ray
2ce28f75ad
WARNING: BREAKING: REDESIGNED: rlgl module
...
- Many functions renamed to follow rl*() convention
- Some internal functions exposed in the API
- Some functionality moved to other modules
- Reorganized all functions by categories
- Make sure it keeps working with OpenGL 1.1 and 2.1
2021-03-22 20:45:04 +01:00
Ray
24dae29a03
Review latest PR and some formatting
2021-03-22 20:41:33 +01:00
Jeffery Myers
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
Jeffery Myers
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
Ray
c37f61d31f
REVIEWED: rlgl module #1523
2021-03-21 20:31:35 +01:00
Ray
2f943aaff0
Reverting align change #1658
2021-03-21 18:32:05 +01:00
Ray
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
Ray
f4f6f665f7
Fixed possible issue with memory alignment #1658
2021-03-20 21:02:20 +01:00
Ray
dcde99bbb8
Corrected issue with HighDPI on macOS
2021-03-20 20:58:24 +01:00
Ray
95f9a6171b
Review HighDPI macOS support #1510
2021-03-20 20:06:38 +01:00
Sean Heber
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
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
5049137715
Added KEY_NULL #520
2021-03-20 13:08:13 +01:00
Ray
4fb6f4af75
Merge branch 'master' of https://github.com/raysan5/raylib
2021-03-20 13:02:53 +01:00
Ray
95282edaf9
REVIEWED: HighDPI support on macOS retina #1510
2021-03-20 13:02:44 +01:00
Rabia Alhaffar
96e5e0dfb2
Fixed funny typo mistake... ( #1657 )
2021-03-20 01:18:44 +01:00
Ray
442abaab72
Updated example assets
2021-03-19 22:39:39 +01:00
Ray
5967c1ba1a
REVIEWED: BeginMode3D()
2021-03-19 21:55:47 +01:00
Ray
9909068714
Removed trailing spaces
2021-03-19 19:43:44 +01:00
Ray
e28f754fbe
Reviewed latest PR: formatting and some comments
2021-03-19 19:42:36 +01:00
Chris
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
frithrah
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
Ray
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
2021-03-19 18:24:12 +01:00
Ray
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
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
d4e2c331b1
REVIEWED: BeginMode3D()
...
Simplified some code
2021-03-19 13:20:23 +01:00
Ray
a1d9987e7c
WARNING: BREAKING: REVIEWED some enums naming
...
Now enum names are more consistent between them.
2021-03-19 13:19:54 +01:00
Ray
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
Ray
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
2021-03-18 13:47:18 +01:00
Ray
8b0574a217
REVIEWED: DrawLine3D() #1643
2021-03-18 13:41:58 +01:00
Ray
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
2021-03-18 13:38:56 +01:00
Ray
1cc838cef4
Update textures.c
2021-03-17 19:37:03 +01:00
Ray
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
Ray
3c76b5cc8e
Update to latest emscripten
2021-03-17 13:53:31 +01:00
Hristo Stamenov
bc9194690c
Implement UnloadModelAnimations ( #1648 )
2021-03-14 19:30:18 +01:00
Ray
f7e48c95cd
Added some comments on libc dependencies
2021-03-14 14:14:51 +01:00
Ray
1afd56dbf6
Use UnloadFileData()
2021-03-14 14:14:31 +01:00
Hristo Stamenov
f9b79403d1
Improve gltf support ( #1647 )
...
* Implement a load values from accessor function.
Added some more value types for the different GLTF attributes.
Fixed crash when loading animated triangle.
* Split GLTF model loading into separate functions for readability.
* Fixed the already working models that I broke when introducing GLTFReadValue.
Improved the example for gltf models to be able to switch between a few models.
* Removed license from screen. It is pu inside a license file anyway.
* Small improvements on the naming of functions
Removed (*model). and replaced it with model->
2021-03-14 12:09:31 +01:00
Ray
01e28263be
WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency
...
Some enums values have been renamed to be more consistent and also provide a more detailed description:
- ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION
- ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2
- MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO
- PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-14 11:05:51 +01:00
Ray
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00
Ray
0872365938
Add config flag: SUPPORT_WINMM_HIGHRES_TIMER #1641
...
Useful to avoid WinMM requirement and useful to avoid possible performance issues.
2021-03-12 17:18:48 +01:00
Ray
755ed388b2
Minor tweak to avoid warning
2021-03-12 17:17:53 +01:00
Hristo Stamenov
5c2983f510
Gltf model and animations exploring problems ( #1635 )
...
* Added bone binding to whole mesh and not only set vertices.
+ Also added missed setting of the animation count.
+ Removed double ; on one line
* Added more of the gltf sample models
https://github.com/KhronosGroup/glTF-Sample-Models
We need to make it working for all of them.
* Binding to initial bind pose added.
* Fix cube disappearing bug because lerpPercent could be Inf.
* Fixed for rigged figure also
2021-03-09 00:11:08 +01:00
Ray
f0ab4723b9
Merge branch 'master' of https://github.com/raysan5/raylib
2021-03-09 00:07:19 +01:00
Ray
b7f2059dc3
Update miniaudio.h
2021-03-09 00:07:08 +01:00
Hristo Stamenov
ef9f67749a
Fix fullscreen resolution ( #1637 )
...
* Always try to set vsync.
Use the internal monitor function to correctly get the display for windows.
* Modified how fullscreen gets toggled.
- Removed the unsetting and setting of the resize callback function. Instead of that I moved the fullscreen flag setting into a more correct place before setting the fullscreen so that this flag can be used in the callback.
- In the resize callback now window size is only set when it is not fullscreen resulting in preserving the window size.
- When going fullscreen the larges resolution is used so that there are no problems of the type when you minimize the window you cannot use anything else in your desktop because the resolution might be too low. If a low res effect is desired one should use render texture (this is the approach all game engines use).
* Set correct return to window in case of fail to get monitor.
* Set the refresh rate on the mode.
* Made changes based on review from @raysan5
Co-authored-by: Jeffery Myers <JeffM2501@gmail.com>
2021-03-08 22:51:10 +01:00
Ray
8a30a2408c
ADDED: Required callbacks
...
Removed memory allocation callbacks
2021-03-08 18:48:27 +01:00
Jeffery Myers
3e6f0d7372
Always try to set vsync. ( #1636 )
...
Use the internal monitor function to correctly get the display for windows.
2021-03-08 18:08:37 +01:00
Ray
0d096b43c2
Update some comments to warn users about callbacks
2021-03-04 20:44:22 +01:00
Ray
b084552808
ADDED: Config flag: SUPPORT_STANDARD_FILEIO
...
This new flag allows omitting stdio.h library in case of a custom implementation is used.
2021-03-04 20:36:04 +01:00
Ray
7ad1370193
Some naming tweaks
2021-03-04 20:22:58 +01:00
Ray
1ed72b7812
Minor struct organization tweak
2021-03-04 12:08:54 +01:00
Ray
c4a7c702b4
FEATURE: Several callbacks added -WIP- #1523 #1329
...
NOTE: This feature is still under consideration and not complete.
2021-03-04 12:06:28 +01:00
Ray
ca22a87949
REVIEWED: TextFormat() #1626
2021-03-03 19:55:09 +01:00
Ray
c938d71d15
Corrected issue with enums renamed
2021-03-03 19:51:23 +01:00
Ray
0b108c2087
Corrected bug
2021-03-03 19:49:10 +01:00
Ray
dfe797060a
WARNING: BREAKING: RENAMED: enums values
...
RENAMED: TextureFilterMode values
RENAMED: TextureWrapMode values
2021-03-03 19:47:37 +01:00
Ray
408f5aedb8
WARNING: BREAKING: RENAMED enum values
...
RENAMED: CubemapLayoutType and NPatchType
2021-03-03 19:36:28 +01:00
hristo
81908f7960
Removing +1 on comparing extesnions because this way it checked the file extension without the . against the file extension with the . resulting in always false. ( #1629 )
2021-03-03 15:41:15 +01:00
Ray
ab36fbf24a
Reviewed defines, try to avoid elif statements
2021-03-02 12:45:23 +01:00
Ray
2a5ce96047
REVIEWED: Wait() to support FreeBSD #1618
2021-03-02 12:44:53 +01:00
Ray
01b3c97c42
Some misc tweaks
2021-03-02 02:03:52 +01:00
Ray
8df56c5843
REVIEWED: rlUnloadMesh()
2021-03-02 01:41:30 +01:00
Ray
c514431e79
REVIEWED: rlUnloadMesh()
2021-03-02 01:35:30 +01:00
Ray
bcc4418ff0
REVIEWED: GetFileExtension() to include the dot #1523
2021-03-02 01:07:08 +01:00
Ray
2ff5fa73e9
REVIEWED: rlUnloadMesh() #1615
2021-03-02 00:34:10 +01:00
Ray
742206c1f2
Review formatting
2021-03-02 00:31:04 +01:00
masterex1000
4e6253b546
Add check to flip quaternion ( #1624 )
2021-03-02 00:29:48 +01:00
Ray
5902cc6d9b
REVIEWED: GetScreen*() #1570
...
Now GetScreenWidth() and GetScreenHeight() return the current fbo width and height.
2021-03-01 23:51:32 +01:00
Ray
3f6a08535f
REVIEWED: CheckCollisionLines()
2021-03-01 23:39:08 +01:00
Jeffery Myers
0f10c44578
Fixes gl state after HDR texture functions. ( #1621 )
...
Updates skybox demo to show how to do both HDR and non HDR skyboxes
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-02-28 23:31:25 +01:00
Ray
58e4efbba8
Review bug on OpenGL 1.1
2021-02-26 13:40:43 +01:00
Agnis "NeZvērs" Aldiņš
ead339fa96
LoadMusicStreamFromMemory OGG support ( #1613 )
2021-02-25 11:55:08 +01:00
Agnis "NeZvērs" Aldiņš
24839c7cfb
jar_xm_create_context_safe requesting const char* ( #1611 )
...
Fixing compiler warning for passing (unsigned char*) to (const char*)
2021-02-24 12:23:39 +01:00
Chris Sinclair
84ab4ce007
Patch up GLTF Skeleton loading ( #1610 )
...
* Add support for u8 bone indicies when loading glTF
* Fix segfault for glTF animations not keyframed at 0
When loading glTF animations we lerp between keyframes, and previously
assume that if the frame we are considering has a later keyframe, there
must be a previous keyframe. This is not true if the animation's first
keyframe is some time into the animation. In this case we now
effectively clamp to that first keyframe for any time prior to it.
* Respect parent bones tranform when loading glTF animations
We previously assumed that when loading glTF animations, the bones were
ordered with those higher up the skeleton tree (i.e. closer to the root)
came first in the list of nodes. This may not be true, so now we
repeatedly loop, preparing each level of the skeleton tree one after the
other, starting at the root level. This ensures that any parent
transforms are applied before transforming any child bones.
We also ensure that we have forced the loading of animation data before
attempting to interpolate to generate the animation frames for use
later, without this no animations are applied.
Finally we remove the check that assumed the first node in the nodes
list is the root, and use an invalid index value as the sentinal value
for when a node has no parent. Previously this was 0, which made
distinguishing between root nodes and children of the first node
impossible.
2021-02-24 09:25:20 +01:00
Agnis "NeZvērs" Aldiņš
0cb748f30b
LoadMusicStreamFromMemory wav mp3 flac support ( #1609 )
2021-02-24 09:22:21 +01:00
Agnis "NeZvērs" Aldiņš
209445ccde
LoadMusicStreamFromMemory ( #1606 )
...
* define SUPPORT_FILEFORMAT_MOD in config.h
* RLAPI LoadModuleFromData() definition in raylib.h
* LoadModuleFromData() definition in raudio.h
* LoadModuleFromData implementation in raudio.c
* Rename API to LoadMusicStreamFromMemory & default unload.
* raudio.c tabs to spaces
* Styling curly bracket and removing dev debugging TRACELOG
Co-authored-by: nezvers <agnis16@inbox.lv>
2021-02-22 19:45:52 +01:00
Ray
ef8318f5e3
[models] Move vboId ALLOC/FREE to rlgl module #1603
...
Actually, it seems more logical that rlgl takes care of OpenGL data than the models module...
Also, models module loaded vertex data is unloaded by models module.
2021-02-21 12:09:52 +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
Paul Jurczak
82cdd88ffe
Fixed DrawLineEx ( #1598 )
...
* Fixed DrawLineEx
Corrected the issue https://github.com/raysan5/raylib/issues/1596
* Removed raymath dependency for DrawLineEx
2021-02-20 23:35:43 +01:00
Jeffery Myers
0726491ef8
Fixes to make rnet and it's examples build on Windows in visual studio 2019. ( #1602 )
...
Mostly typecasts, and some int to unsigned short changes, and including the windsock 2 library in the examples.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-02-20 21:13:20 +01:00
Jeffery Myers
eb47cc5e93
Fix warnings generated by Visual Studio 2019 in new model loading code. ( #1600 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-02-20 19:42:32 +01:00
Jeffery Myers
2375464213
[Physics] Fix typecast warnings generated by visual studio 2019 ( #1599 )
...
* More warning fixes for physics and math
* fix a crash introduced with the warning changed.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-02-20 11:15:40 +01:00
Jeffery Myers
0f5aab3a1c
check to make sure parent bone is not null before trying to compute its offset from the root ( #1594 )
2021-02-16 10:29:00 +01:00
Chris
ccb083af52
[raudio] Fix load and unload issues with Music ( #1588 )
...
* Add MUSIC_AUDIO_NONE to MusicContextType and format fixes
- Useful to check the context type to see if the format is recognized. Defaulting to wav causes issues where formats are assumed to
be wav.
* Fix memory issues with LoadMusicStream and UnloadMusicStream
- Set ctxType and ctxData even if the format fails to load.
- Set ctxData to NULL if it fails and check for null inside UnloadMusicStream.
- Change RL_MALLOC when loading formats to RL_CALLOC to prevent undefined behavior.
- Add NULL check when unloading xm file.
2021-02-14 17:37:34 +01:00
jpe230
c7476f0aa5
Fix support of touchscreens for RPI ( #1586 )
...
-Checks for absolute pressure in absolute events to simulate a touch or a left mouse click.
-Updates touch position on absolute events.
2021-02-14 17:36:24 +01:00
raysan5
f3df64210b
Update physac.h
2021-02-14 16:47:47 +01:00
raysan5
7035435948
Update core.c
2021-02-14 16:47:19 +01:00
raysan5
0c63c7c907
Possible callbacks -WIP-
2021-02-14 16:47:08 +01:00
raysan5
2b1ec5d8d2
Review some comments
2021-02-14 16:46:33 +01:00
BrokenKeyboard
d93b8f6544
Fix spelling mistake ( #1581 )
...
Sorry if this is a bit of a useless pr
2021-02-09 22:29:01 +01:00
raysan5
9619e5cbf8
Review some warnings and formatting
2021-02-09 13:23:06 +01:00
raysan5
4e68524871
REMOVED: GetGamepadButton() internal func
2021-02-09 12:14:50 +01:00
masterex1000
52d0e86cc6
Poll inputs after frame sleep ( #1573 )
2021-02-08 16:57:19 +01:00
hristo
70965f20d5
Disabling WindowSizeCallback around fullscreen toggle. ( #1480 )
...
* Disabling WindowSizeCallback around fullscreen toggle.
#1294 fixed the issue that toggle fullscreen changes the screen size because of the WindowSizeCallback. The proposed edit by @raysan5 was to comment out WindowSizeCallback which I essentially simplified to disable the callback around the set window monitor functions.
The developers using the ToggleFullscreen function should be aware that they need to size the screen correctly on that same frame. Otherwise they should check if fullscreen and size properly using the GetMonitorWidth and GetMonitorHeight functions.
* Update core.c
Fix issue from merge
2021-02-07 20:55:27 +01:00
raysan5
67206a5415
Review latest PR formating
2021-02-07 20:52:11 +01:00
Gil Barbosa Reis
9081defd46
Fix initialize GLFW's Joystick subsystem before window is created on Desktop platforms ( #1554 ) ( #1572 )
2021-02-07 20:49:37 +01:00
raysan5
090c790e50
Review formating for latest PR
2021-02-07 20:47:40 +01:00
hristo
6be1be4573
Fix wrong values shown for monitor width and height in pixels when fullscreen is toggled. ( #1479 )
...
This solves issue #1322 which in my opinion was prematurely closed. As the monitor resolution is expected to be the maximum that the monitor supports. My change is that as per GLFW documentation you can get all current video modes sorted by max resolution. When you toggle fullscreen the first video mode returned would be the current screen resolution setup but that doesn't help if you want to know the maximum supported.
2021-02-07 20:44:38 +01:00
raysan5
c49ce58f02
REVIEWED: Multichannel sound system #1548
...
I don't like this solution but I think it's valid in the meantime....
2021-02-07 19:20:30 +01:00
raysan5
b2215cf017
REVIEWED: Replace GetImageData() by LoadImageColors()
2021-02-06 13:29:22 +01:00
raysan5
0f309b9b16
REMOVED: MeshNormalsSmooth() #1421
...
Current implementation is probably wrong and it should be reimplemented from scratch, in the meantime, I prefer to remove the function.
2021-02-05 19:49:05 +01:00
raysan5
edb54c6cb1
REVIEWED: CloseAudioBufferPool(), uninit buffers properly #1548
2021-02-05 19:45:13 +01:00
raysan5
5663c81803
REVIEWED: raudio: Some LOG_ERROR -> LOG_WARNING #1562
2021-02-05 19:19:44 +01:00
raysan5
56ff944def
Update miniaudio to v0.10.32 #1562
2021-02-05 19:18:44 +01:00
raysan5
62ccec0ac5
REMOVED: SetTraceLogExit()
...
I feel nobody has ever used this function...
2021-02-05 14:36:28 +01:00
raysan5
421e5d4829
REVIEWED: DecompressData()
2021-02-05 14:35:43 +01:00
kernelkinetic
e831bf02c5
removed redundant call to eglGetConfig ( https://github.com/raysan5/raylib/issues/1550 ) ( #1567 )
2021-02-05 13:55:09 +01:00
raysan5
97a7875648
REVIEWED: Gamepad issues on Android
2021-02-05 13:52:25 +01:00
raysan5
4407533a41
REVIEWED: DecompressData(), memory reallocation
2021-02-05 13:52:01 +01:00
Ray
3431d58586
Designing some callbacks -WIP-
2021-02-05 10:17:21 +01:00
raysan5
005bc4c414
REVIEWED: LoadShaderProgram() #1563
...
Try to avoid a possible false-positive memory leak...
2021-02-02 12:33:01 +01:00
raysan5
ed9c10a3e6
Update raudio.c
2021-02-02 11:42:49 +01:00
hristo
c8e427ad23
Update loading of gltf animation. ( #1561 )
...
This is to account for GLTF info being more like instructions on how to build your animation instead of verbose description of each pose.
2021-02-02 10:49:42 +01:00
raysan5
96db787657
REVIEWED: Gamepad system, specially for RPI
2021-01-31 03:07:26 +01:00
Jeffery Myers
e818dc27cd
Use local (") includes for GLFW since it is included with the source tree. ( #1557 )
...
This change helps some platforms produce fewer errors/warnings.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-01-30 22:22:14 +01:00
raysan5
bc332018f6
REVIEWED: SetGamepadMappings()
...
return value for all platforms
2021-01-28 18:37:52 +01:00
hristo
731ab15d57
Gltf animation support ( #1551 )
...
* Added example for gltf animation and split some functions for loading model animations into IQM and GLTF similar to how models are being loaded.
* Removed wrongly duplicated function
* Bone loading for gltf model (not working at this point)
* Loading info about vertex to joint connection but animation is still not working
* Skeleton and pose is correctly loaded. Need to communicate about interpolation in GLTF
* The model almost looks like a real person on animation.
* Fixed model loading with bones.
Also updated license info on the model.
* Cleaned up some code and updated examples.
* Fix identation issues
* Fix identation issues
* Fix identation issues
2021-01-28 11:29:06 +01:00
hristo
88a6f16c9a
Documentation cmake ( #1549 )
...
* Documenting the compiler flags
* Moved some android compiler flags and added documentation on them too.
* Some more restructuring.
Removed unnecessary comments that were self described by the code.
Added some more explanations around certain parts of CMake and especially around compiler flags.
2021-01-26 14:34:27 +01:00
hristo
f3ce3a6f74
Removing config.h.in file ( #1546 )
...
CMake relied on this file for configurations and also was interfering in the regular config.h by having a separate definition if building with CMake. This was not entirely correct so instead we will define compile time definitions separately through CMake (CompileDefinitions.cmake) and also will use the provided EXTERNAL_CONFIG_FLAGS that I found that will not use config.h in through the build process.
I also introduced a new compiler option (CUSTOMIZE_BUILD) that when OFF will use the default config.h and when ON will show other options for redefining your own options.
Fixed an error in rlgl.h where if you have both RLGL_STANDALONE and SUPPORT_VR_SIMULATOR you get a compile time error.
2021-01-25 10:47:53 +01:00
hristo
4bf7b00013
Removing test file. ( #1545 )
...
This test file is just testing compilation with the library works correctly but is no longer needed because:
- it is not cross platform
- it taps into the CTest system which is better suited for real unit/integration tests
- it can be incorporated into the pipeline of github actions instead in the future
2021-01-25 10:44:30 +01:00
Ray
f4f208c4ae
ADDED: UploadMesh() #1529
...
Upload mesh data to GPU and get VAO/VBO identifiers
2021-01-22 12:16:19 +01:00
Ray
721768bdb0
Remove automatic pointer lock on mouse click #1513
2021-01-22 11:57:57 +01:00
Ray
f2c0981c57
Review typo
2021-01-22 11:57:18 +01:00
hristo
05dfbf3cd4
Remove STATIC and SHARED variables. ( #1542 )
...
As described in the official documentation https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html this flag is global by default and controls if the library will be built as a shared or a static library allowing us to define only one call to the add_library function (without specifying its type). It is also added as an option to be visible in CMake GUI applications.
2021-01-22 00:07:22 +01:00
Ray
18ab694f70
ADDED: SetGamepadMappings() #1506
2021-01-21 14:39:03 +01:00
Ray
677f420bf0
REVIEWED: physac module and examples #1525
2021-01-20 20:55:12 +01:00
Ray
d20efde49d
Merge branch 'master' of https://github.com/raysan5/raylib
2021-01-20 17:07:06 +01:00
Ray
01b7509a39
Review screen capture / gif recording #1540
2021-01-20 17:06:53 +01:00
hristo
6cc27e9797
Fix cmake build error dirent ( #1536 )
...
* Better ignore support for idea projects.
Added a wildcard at the end because different configurations would have a diffeerent build directory.
* Removed external from being a relative include directory for target raylib.
Fixes #1533
2021-01-16 14:04:01 +01:00
Gil Barbosa Reis
1866be0475
Fix absolute path handling in GetFileName and GetDirectoryPath ( #1534 ) ( #1535 )
2021-01-16 10:33:13 +01:00
Ray
eb7820b2b0
Review comment
2021-01-15 00:20:35 +01:00
Ray
b7f275efb3
Review warning
2021-01-15 00:20:23 +01:00
Ray
186e52c4d8
REVIEWED: DecompressData()
...
Corrected bug!
2021-01-14 20:42:01 +01:00
hristo
9821725c6b
Big cmake changes ( #1514 )
...
* Delete emscripten.cmake
This file is not needed at this point. EMSDK provides a toolchain file that has a lot more things in it and is better supported. Project currently works fine with the documentation provided in Emscripten SDK on how to build projects.
* First pass file separation.
The main two files are cleaner now. Only important things can be seen. Major changes include:
- raylib_static is now the alias instead of raylib
- Repeating segments are removed and pulled into separate files into <root>/cmake
- File is reordered to make more sense
- Installs are better structured
- Library is build into an output directory "raylib" instead of "src"
- All public header files are now set as a public header file
- Source files need to be listed (it is a bad practice to capture them using wildcards and file globs)
- CMakeLists are better commented
* Second pass on the example dirs.
They are quite complex so I'm more hesitant to do major changes. Also it works pretty well. Noticed that I forgot one of the seperated files and added it into src/CMakeLists.txt.
* Returned the header copy as it was convenient to have the public headers copied.
* A better description to the variable RAYLIB_IS_MAIN
Co-authored-by: Rob Loach <robloach@gmail.com>
* Remove debug message
Co-authored-by: Rob Loach <robloach@gmail.com>
* Improvements based on review.
* Simplify the install condition to not be platform specific as it was before.
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
* Remove some CMAKE variables as they don't affect the build in any way
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
Co-authored-by: Rob Loach <robloach@gmail.com>
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
2021-01-13 23:10:02 +01:00
Ray
a0a840101c
Update miniaudio to v0.10.30 #1518
2021-01-12 22:51:26 +01:00
Ray
5d1d590692
REDESIGN: Compresion API
...
Now it compresses/decompresses valid DEFLATE streams instead of zlib streams. It uses the minimal and efficient libraries: sdefl/sinfl.
2021-01-12 21:15:11 +01:00
Ray
dfa11e22cf
Add comments
2021-01-12 20:25:09 +01:00
Ray
c256b26629
Reorder function
2021-01-12 20:24:58 +01:00
Dmitry Matveyev
04a1bb1390
Reorder typedefs in physac.h to be in header part ( #1528 )
2021-01-12 20:12:14 +01:00
Ray
bbc09288bd
rlOrtho() reverted change
2021-01-09 12:37:21 +01:00
Jeffery Myers
b76dc06297
It's top-bottom not bottom-top in GL space. ( #1517 )
2021-01-07 23:13:44 +01:00
badlydrawnrod
49f9bff260
Fix keyboard state change detection on RPI ( #1488 )
...
* Fix keyboard state change detection on RPI
* Rework RaspberryPi evdev keyboard input.
- Extract evdev keyboard handling into PollKeyboardEvents()
- Move keyboard polling to main thread
- Rename EventThreadSpawn() to ConfigureEvdevDevice() as it doesn't necessarily spawn threads
- Remove unused code (KeyEventFifo and lastKeyPressed)
* Replace tabs with 4 spaces.
2021-01-06 20:46:12 +01:00
Kirottu
22da9087b1
Include SUPPORT_DATA_STORAGE flag for building with CMake ( #1515 )
...
* Update CMakeOptions.txt
* Update config.h.in
2021-01-06 20:45:32 +01:00
Victor Gallet
a6cd6eedbe
Remove unused condition in 'GenerateMipmaps' function for GRAPHICS_API_OPENGL_11 ( #1496 )
2021-01-06 13:27:32 +01:00
raysan5
7bd33e4406
Review rlOrtho() to avoid return in the middle of the function
...
I usually try to avoid any return in the middle of functions, I try to keep them always at the end of the functions.
2021-01-06 13:26:55 +01:00
Jeffery Myers
5d4aada526
Don't create an ortho matrix when the viewport is 0 in any axis. ( #1504 )
...
* Don't create an ortho matrix when the viewport is 0 in any axis.
Not all compilers divide by 0 and return inf, some segfault.
The matrix is not used by anything when minimized, so it just needs to not be called.
* Better fix that always ensures the rlgl matrix is always valid
* Better fix that always ensures the rlgl matrix is always valid
2021-01-06 13:21:58 +01:00
hristo
551597d579
Removed a repeating allocation of memory ( #1507 )
...
Resolves #1495
This line allocated some memory that was already allocated in the beginning of the function and was essentially creating a leak.
2021-01-03 22:43:09 +01:00
Chris
320732ae6b
Update mappings.h in glfw using GenerateMappings.cmake ( #1505 )
2021-01-02 21:46:39 +01:00
raysan5
d7b4b9e485
Update year to 2021
2021-01-02 18:15:13 +01:00
Victor Gallet
57fef97433
Modify the check condition for the screen window height and width. It can't be less than zero because it's an unsigned int ( #1497 )
2020-12-31 13:29:35 +01:00
Victor Gallet
03278a74bf
Avoid dereferencing a null pointer in the 'LoadMaterials' function in the models module ( #1498 )
2020-12-31 13:28:53 +01:00
Victor Gallet
9fe153ae29
Avoid dereferencing a null pointer in the 'LoadSounsFromWave' function if the audioBuffer is null ( #1499 )
2020-12-31 13:28:16 +01:00
Jeffery Myers
4c8bebc0d7
Add a current monitor function for window mode windows. ( #1492 )
2020-12-30 17:29:39 +01:00
Jeffery Myers
24b6dcf29f
lookup the returned monitor in the list of monitors to get an index. ( #1490 )
2020-12-30 00:08:56 +01:00
raysan5
9ed29725a0
Review code formatting
2020-12-29 20:42:29 +01:00
Jeffery Myers
59bb759855
Faster version of ImageClearBackground and ImageDrawRectangleRec ( #1487 )
...
* Don't use DrawRect to clear an image, a pixel loop is an order of magnitude faster.
* Update ImageDrawRectangle to be faster too.
2020-12-29 20:39:53 +01:00
hristo
75c6fd047b
Monitor utilites ( #1485 )
...
* Added a new utility function to get the current monitor.
Some of the other functions rely on passing on a monitor id but we only have a function for querying the count of monitors available.
* Updated the comment to correctly reflect the function action
2020-12-29 13:37:08 +01:00
hristo
d3db690c42
I noticed that toggle fullscreen always gets the primary monitor when its more intuitive to use the monitor that the window is currently in. ( #1486 )
...
This monitor should even probably be passed as an id instead to make it more consistent with the rest of the API but this would break existing applications so I am hesitant to change the function signature directly.
2020-12-29 13:35:47 +01:00
raysan5
521ed1cef0
Review DrawLineBezierQuad(), formating and aprameters order
2020-12-26 13:09:34 +01:00
Violet White
de13fca3b1
Add Quadratic Bezier drawing ( #1468 )
...
* Add quadratic bezier to shapes.c
* Add DrawLineBezierQuad to header
2020-12-26 13:04:38 +01:00
raysan5
ea0f6c7a26
Replace TABS by 4 spaces
2020-12-24 23:07:52 +01:00
raysan5
ec3845fa9f
Review some RPI4 tracelogs
2020-12-24 19:09:05 +01:00
raysan5
3e041a27b1
Update Makefile
2020-12-24 19:08:02 +01:00
raysan5
5ffce8f230
Review tracelog messages for DRM platform
2020-12-24 17:56:08 +01:00
raysan5
d9a9bacb48
Review formatting
2020-12-23 20:30:00 +01:00
raysan5
7e459dc38b
Review Android Makefiles to required version
2020-12-23 17:05:51 +01:00
raysan5
f8a2903cec
Review issues when compiling for Android
2020-12-23 17:05:07 +01:00
raysan5
0a9e080998
Remove trailing spaces
2020-12-23 15:03:26 +01:00
raysan5
59949bf848
Update resource file
2020-12-23 13:48:43 +01:00
raysan5
aa38532cc3
Remove unused variable
2020-12-23 13:03:13 +01:00
raysan5
9216e96315
Corrected typo
2020-12-23 13:02:40 +01:00
raysan5
0da827d754
Corrected small issue
2020-12-23 12:54:57 +01:00
raysan5
b78ee13791
ADDED: CheckCollisionLines()
...
Removed function from raymath
2020-12-23 12:45:53 +01:00
Victor Gallet
668b3e4cfb
[Math Feature]: Add two functions for Vector2 to know if two lines intersect and two segments intersect ( #1466 )
...
* Add a function to know if two lines intersect each other and if yes, get the intersection point
* Remove indents
* Rework the declaration of the 'Vector2LineIntersect' function, and add the 'Vector2SegmentIntersect' function
* Remove bad indents
* Fix compilation issues
* Fix compilation error
* Fix compilation error
* Replace keyword '_Bool' by 'bool'
2020-12-21 21:04:02 +01:00
Ray
976932e05e
Set version for raylib 3.5
2020-12-19 20:38:49 +01:00
Ray
d82113ec34
Camera funcs, review params names
...
Just for a better consistency
2020-12-19 20:14:34 +01:00
Ray
9097d0b4ef
REVIEW: CheckCollisionSpheres() params naming
2020-12-19 20:05:32 +01:00
Ray
f30354fc35
Minor tweak
2020-12-19 20:01:07 +01:00
Ray
d2d72b1dfb
ADDED: MemAlloc() / MemFree() #1440
...
Exposing internal memory allocator/free, useful for advance users when required
2020-12-19 19:43:25 +01:00
Ray
cbf7369a3d
Update raylib.h
2020-12-19 19:28:06 +01:00
Ray
2374281204
Avoid *Rec suffix in some variables
...
Pefixing/Suffixing some data type identifier in the variables is not a convention used in raylib, just reviewed it for consistency...
Still, I kept the *Rec suffix in some functions.
2020-12-19 19:27:31 +01:00
Ray
015e715278
Corrected DrawTextRecEx() bug
2020-12-19 19:12:51 +01:00
Ray
e404a18226
Support font chars padding on drawing #1432
...
Previous implementation did not consider any padding while drawing the characters on screen (despite being available on the font atlas), so, only minimum character area was drawn.
If some text effect shader was required (shadow, glow, outline...), there was no space in the drawn quad to draw that pixels effect.
This commit corrects that issue.
2020-12-19 12:16:23 +01:00
Ray
51e8f37688
Minimal tweak
2020-12-19 00:22:58 +01:00
Ray
c36a6f3d9f
Update textures.c
2020-12-19 00:01:14 +01:00
Ray
e07bc372a1
WARNING: RENAMED several functions for consistency #1440
...
This is a BREAKING CHANGE!
To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory:
- RENAMED: GetImageData() -> LoadImageColors()
- RENAMED: GetImagePalette() -> LoadImagePalette()
- RENAMED: GetWaveData() -> LoadWaveSamples()
- ADDED: UnloadImageColors()
- ADDED: UnloadImagePalette()
- ADDED: UnloadWaveSamples()
2020-12-18 21:03:08 +01:00
Ray
5dd142beb6
Added some Web checks for missing GLFW functions
2020-12-18 19:32:52 +01:00
Ray
96542269d0
WARNING: GetKeyPressed() <-> GetCharPressed() #1336
...
Previous GetKeyPressed() method was actually returning unicode codepoints equivalent values instead of the key-code of the pressed key. So, it has been replaced by GetCharPressed(), returning unicode codepoints and GetKeyPressed() now returns key-codes.
2020-12-18 18:58:02 +01:00
hristo
0987507ef5
Add headers to install cmake ( #1462 )
...
* Changed extension for web from .bc to .a
I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc
Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency.
* Added headers to install targets to fix vcpkg usage
Currently vcpkg works by installing the cmake target into its packages directory. The problem is that install only copies the public header at this point so we need to add the others to the install targets.
2020-12-16 19:11:21 +01:00
Andrea Fontana
ef0dcaabf9
Changing JPG compression ( #1463 )
...
Since I don't think the purpose of raylib is to save space compressing image, I think it could be a good idea to keep quality from 90 to 100.
2020-12-16 19:07:18 +01:00
Ray
f5b4656801
Added additional charsPadding initialization #1432
2020-12-14 23:51:55 +01:00
Ray
5f690819e7
REVIEWED: Font struct, added charsPadding #1432 -WIP-
...
Not implemented usage of this variable yet but already setup for the future... some functions require review to consider it on drawing...
2020-12-14 23:47:11 +01:00
Ray
e69f2f0c26
REVIEWED: DrawGrid(), issue with buffer limits check #1417
2020-12-14 23:39:12 +01:00
Ray
d360a49f36
ADDED: UnloadFileData() / UnloadFileText() #1440
2020-12-14 20:47:58 +01:00
Ray
cd3eb3d8bd
Added some security checks on GenMesh*() #1454
2020-12-14 20:41:58 +01:00
Jeffery Myers
7a0e73331d
Add mesh collision function so we can check meshes directly instead of having to put them in a model. ( #1459 )
...
Make model collision function call the mesh function.
2020-12-14 19:26:32 +01:00
hristo
a840d8a77d
Changed extension for web from .bc to .a ( #1461 )
...
I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc
Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency.
2020-12-14 19:24:56 +01:00
hristo
6e79476650
Fixed the build for web using CMake. ( #1452 )
...
* Fixed the build for web using CMake.
I found that the build for me was failing and I added some if defined checks in the core.c file where the glfwSetWindowAttrib was used. (error: implicit declaration of function 'glfwSetWindowAttrib' is invalid in C99 [-Werror,-Wimplicit-function-declaration])
I also changed some values in the toolchain file so that it correctly uses the .bat files when on windows.
* Cleaned up the additional variables (they are not important)
* Added more improvements to cmakelists
Added the option to use the system provided Emscripten toolchain to be more uniform with other libraries.
Fixed and issue which prevented example being built from cmake and also building with html extensions properly.
* Fixed ENUM to STRING because of a missed warning
2020-12-13 20:29:47 +01:00
Jeffery Myers
342d4faf14
Add options to set line width and aliasing to rlGL layer. ( #1457 )
...
* Add options to set line width and aliasing to rlGL layer.
* Don't do line smoothing in OpenGLES
2020-12-13 10:58:24 +01:00
Ray
e6ae4879f6
Added security check to pitch change #1450
2020-12-12 13:07:46 +01:00
Ray
459c4754dc
Reviewed SetAudioBufferPitch() #1450
2020-12-12 13:01:31 +01:00
Jeffery Myers
039503e7c2
Add functions to enable/disable depth writes to go with functions for depth tests. ( #1451 )
2020-12-05 21:53:19 +01:00
Jeffery Myers
03df593263
Add function to get the position of a monitor (and fix some comments) ( #1449 )
2020-12-05 21:51:20 +01:00
Ray
62406259d7
Corrected minor windows flags issues
2020-12-03 20:33:46 +01:00
Ray
d1119816d7
Review comment
2020-12-03 20:16:46 +01:00
Ray
0540f0ad32
Review window flags
2020-12-03 20:16:35 +01:00
Ray
63d33d7a7a
Update CMakeLists.txt
2020-12-02 08:27:43 +01:00
Ray
60928ec82c
ADDED: UnloadModelKeepMeshes() #1441
2020-12-01 23:44:10 +01:00
Ray
0481053dad
Review for issue #1446
2020-12-01 23:23:30 +01:00
Ray
59be7b9c29
Update CMakeLists.txt
2020-12-01 23:21:35 +01:00
Ray
83916bd3c2
Updated GLFW to latest 3.4 (github master - 16Nov2020)
...
WARNING: Some CMake files not changed
WARNING: glfw_native.h contains custom changes
2020-11-30 09:11:22 +01:00
Ray
23ed67cce0
Review some config options
2020-11-30 09:00:40 +01:00
Jeffery Myers
df249f5513
Fix typecast warnings in raylib code as reported by visual studio 2019 ( #1443 )
2020-11-30 08:14:11 +01:00
Random
0322fc28d4
optimized MatrixLookAt ( #1442 )
2020-11-29 10:08:22 +01:00
raysan5
d6f4f3ee88
REMOVED: GetImageDataNormalized()
...
Let the advance users manage it as they want...
2020-11-28 19:11:31 +01:00
raysan5
14c1ee2681
ADDED: UnloadFontData()
2020-11-28 19:07:41 +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
a560fe9a1e
Added some comments
2020-11-22 10:56:17 +01:00
Ray
bb9d734f69
Exposing some file access results to user layer #1420
2020-11-22 00:10:16 +01:00
Ray
36dc302c25
Reverted to previous working version #1434
2020-11-21 14:14:25 +01:00
Ray
4eae76302f
REPLACED: rgif.h by msf_gif.h
...
The improvement in performance is considerable!
2020-11-20 00:34:18 +01:00
Ray
7f6cd93d62
WARNING: Multiple funcs reviewed!
...
There were some problems about frameCount vs sampleCount that could cause some breaks.
raylib audio structs stores sampleCount = frameCount*channels.
Most libraries return framesCount instead of sampleCount.
stb_vorbis seems to refer to framesCount as samples.
All required functions have been reviewed.
2020-11-19 20:11:11 +01:00
Ray
72e51cd6de
Review formating
2020-11-19 20:06:35 +01:00
Ray
700bff5fd8
Version tweak
2020-11-19 20:01:40 +01:00
Ray
9471794449
Update to latest tiniobjloader
...
WARNING: OBJ loading is broken at this point...
2020-11-17 00:30:12 +01:00
Ray
a54d9f734b
rlUpdateTexture(): Corrected issue
2020-11-16 15:18:05 +01:00
Ray
f448542dd2
Review issues with FLAC loading
2020-11-16 12:20:50 +01:00
raysan5
4d5ee7953c
Updated tinyobjloader
2020-11-15 14:31:43 +01:00
raysan5
cb517d0050
Update tinyobj_loader_c.h
2020-11-15 14:19:55 +01:00
raysan5
a3d33d9222
Update tinyobj_loader_c.h
2020-11-15 14:18:59 +01:00
raysan5
82d61a5875
Updated stb_image v2.26 and stb_image_write v1.15
2020-11-15 14:11:36 +01:00
raysan5
66f9fbaa88
Update cgltf.h
...
v1.8
2020-11-15 14:06:39 +01:00
raysan5
321f55bce1
Update audio libraries #1423
...
miniaudio -> v0.10.25
dr_wav -> v0.12.14
dr_mp3 -> v0.6.19
dr_flac -> v0.12.22
2020-11-15 14:04:28 +01:00
raysan5
8ff2b387f9
Review code formating
2020-11-15 13:17:11 +01:00
Ilya3point999K
bd287efa4c
Fixed zero-window upscaling ( #1428 )
...
There is no zero-check, so window upscales to nothing.
SetupFramebuffer() is kinda wrong, it uses not its params, but global variables. I won't touch it, maybe it has purpose
2020-11-15 13:13:21 +01:00
raysan5
9b2b660f91
Commented new feature
2020-11-15 13:10:12 +01:00
raysan5
55dc8171f8
[text] Consider characters padding -WIP- #1432
2020-11-15 12:39:59 +01:00
Ray
3e1cd487df
Remove trailing spaces
2020-11-03 23:47:33 +01:00
kernelkinetic
f46514b855
Fixed keyboard stuttering but for cmake only ( #1422 )
...
* fixed mouse movements are bound to the screen resolution (https://github.com/raysan5/raylib/issues/1392 )
* fixed keyboard stuttering on PLATFORM_RPI and PLATFORM_DRM (https://github.com/raysan5/raylib/issues/1392 )
* fixed keyboard stuttering on PLATFORM_RPI and PLATFORM_DRM (https://github.com/raysan5/raylib/issues/1392 )
2020-11-03 23:39:56 +01:00
Ray
05ab39ed9f
REVIEWED: SaveFileText() error checking
2020-11-01 19:42:50 +01:00
Ray
5ac9cb04c2
Reverted ChangeDirectory() redesign
...
It returns true on success again
2020-11-01 19:06:21 +01:00
Ray
01d9af12f7
REDESIGNED: ChangeDirectory()
...
Not returning error code (or success), just log if it fails
2020-11-01 18:14:55 +01:00
Ray
8e15dae5ed
Review contributed examples
2020-11-01 13:39:48 +01:00
Dominus Iniquitatis
fc1fc250e7
A couple of little comment fixes ( #1416 )
2020-10-31 14:40:35 +01:00
Ray
fbc51e822b
REDESIGNED: Multiple sampler2D usage on batch system
...
New implementation allow enabling additional textures per batch only.
2020-10-31 11:48:44 +01:00
Ray
8a16348131
Support multiple sample2D on batch drawing #1333
2020-10-29 20:22:52 +01:00
Ray
60d874caf8
REVIEWED: GetWindowScaleDPI() #1086
2020-10-29 19:29:59 +01:00
Ray
d99ac093d4
Support additional texture units for default batch system #1333
...
This path requires some testing...
2020-10-26 20:13:08 +01:00
Ray
d9e591f235
Review some comments
2020-10-26 20:11:58 +01:00
raysan5
482b8a5e7e
Some tweaks
2020-10-24 10:37:15 +02:00
Ray
f12db180cd
Reviewed PR #1407
2020-10-21 11:08:37 +02:00
Chance Snow
9833fe45eb
Added desktop cursor getter and setter functions ( #1407 )
...
* [core] Added desktop cursor getter and setter functions
* Example: Set mouse cursor in text input box
* Setup standard cursors _after_ GLFW window initialization
* Remove old `int GetMouseWheelMove` declaration
2020-10-21 10:55:52 +02:00
kernelkinetic
3c9f7263e5
fixed mouse movements are bound to the screen resolution ( https://github.com/raysan5/raylib/issues/1392 ) ( #1410 )
2020-10-13 22:26:40 +02:00
raysan5
c62c4df749
Updated miniaudio #1402
2020-10-10 19:25:23 +02:00
chriscamacho
6ebf6b4e72
allow for multiple materials in obj files ( #1408 )
...
* allow for multiple materials in obj files also fix obj_loader hash map issues
* minor fix for warning
Co-authored-by: codifies <nospam@antispam.com>
2020-10-08 20:31:59 +02:00
Ray
41192c6d4a
Replace 0.f by 0.0f
2020-10-05 20:19:18 +02:00
Doyle
b29311c7ca
mouse: Return float movement for precise scrolling where possible ( #1397 )
2020-10-05 20:16:23 +02:00
Ray
a4ea9f872f
Review "aggregate initializations" #1403
2020-10-05 20:04:33 +02:00
Daniel-Junior Dubé
a8685ee4fd
Add Vector2Reflect to raymath.h ( #1400 )
...
Vector3Reflect exists but not Vector2Reflect. The code is pretty much the same.
I'm not sure what RMDEF does, but I added it to match other function definitions (haven't done much C programming, maybe I'm missing something). Can someone explain to me what it does?
2020-10-04 12:12:52 +02:00
Tobias Jammer
0c29ca8166
Fix 1393 ( #1395 )
2020-09-29 17:57:28 +02:00
Ray
a850246030
Review Texture type
...
Texture type also maps to Texture2D and TextureCubemap
2020-09-28 00:40:32 +02:00
raysan5
446f9fff00
Added note
2020-09-27 11:14:49 +02:00
seanpringle
4bcddc3b15
[wip] rlDrawMeshInstanced ( #1318 )
...
* rlDrawMeshInstanced first attempt
* rlDrawMeshInstanced OpenGL 3.3 and VAO checks
* rlDrawMeshInstanced GetShaderAttribLocation; comments
* example instanced shader
* RLGL_STANDALONE RAYMATH_STANDALONE Vector4
* apply suggested naming changes; add instanced mesh example
* remove orphan variables
2020-09-27 10:29:05 +02:00
kernelkinetic
e90b4d8915
Platform DRM ( #1388 )
...
* updated README.md
* fixed CMakeLists.txt to allow building and debugging with Visual Studio Code and CMAKE Tools extension
* added PLATFORM_DRM
contains mouse pointer code from https://github.com/chriscamacho
* removed redundant cleanup in InitGraphicsDevice
* fixed DRM connector mode selection
* added choosen DRM connected mode to log output
* added respecting TargetFPS on DRM mode selection, default to 60
* added support for GetMonitorRefreshRate
* changed SUPPORT_MOUSE_CURSOR_RPI to SUPPORT_MOUSE_CURSOR_NATIVE
* changed avoidProgressive to allowInterlaced
* cleanup, function extraction and improved mode selection
* README reverted to original for PR
* line endings fixed for core.c
* removed old code
* mouse pointer reverted to small square
* replaced SetGraphicDeviceName() by DEFAULT_GRAPHIC_DEVICE_DRM
Co-authored-by: kernelkinetic <kernelkinetic@outlook.com>
2020-09-27 10:18:43 +02:00
raysan5
c2e56f2604
REVIEW: GenTextureCubemap(), avoid using models.c functions
...
- DrawCube() belongs to models.c -> rl*() alternative should be used
2020-09-26 11:51:42 +02:00
raysan5
b9053eebe7
Added new GIF recording library (not used yet)
2020-09-26 11:41:49 +02:00
raysan5
eef82b04ac
REVIEW: Replace rlglDraw() calls by DrawRenderBatch() internal calls
2020-09-25 18:19:19 +02:00
raysan5
fe8bf2fa55
REVIEWED: GenTextureCubemap(), use rlgl functionality only
...
Function has been reviewed to avoid any direct OpenGL call and use rlgl functionality, also, GenDrawCube() has been replaced by the internal batch system with DrawCube().
WARNING: rlEnableTexture() call must be issued after enabling the current framebuffer when using batch mechanism because it includes a set of security checks to avoid batch overflow and push/pop matrix operations.
2020-09-25 18:14:46 +02:00
Adam Griffiths
b9ece86ffd
Add join_paths and join prefix with include/lib dirs ( #1383 )
...
Fixes #1380 : incorrect usage of CMake paths which causes issues
on some more complicated environments (NixOS especially).
2020-09-25 16:20:49 +02:00
raysan5
032b2db398
REVIEWED: GenTextureCubemap()
...
Added some tracelog messages
2020-09-21 13:18:53 +02:00
coderoth
c05dbb4581
Updated joystick mappings with latest version of gamecontrollerdb (executed GenerateMappings.cmake), so that raylib can identify more joysticks ( #1381 )
2020-09-19 21:51:32 +02:00
raysan5
789c5fbdf9
Updated build script to generate .a on WebAssembly
...
This is the recommended way
2020-09-18 20:53:57 +02:00
raysan5
4a242c2889
Updated library build script for HTML5 (emscripten 2.0.4)
2020-09-18 20:48:25 +02:00
raysan5
b5d50ee51a
EXAMPLE: models_skybox works on OpenGL ES 2.0
2020-09-18 20:47:39 +02:00
raysan5
79d63e6ca1
Review comment
2020-09-18 16:44:28 +02:00
raysan5
152665ff48
REDESIGNED: GenTexture*() #721
...
Functions have been redesigned to use rlgl and allow to externalize them (aka removing them from rlgl because they use custom shaders...).
2020-09-18 13:50:51 +02:00
raysan5
ccda320be4
REVIEWED: rlFramebufferAttach() to support texture layers
...
Required to attach multiple color textures and multiple cubemap faces
2020-09-18 11:37:57 +02:00
kernelkinetic
6038c8fdd5
fixed wrong error message for input device on RPI ( #1379 )
...
* fixed wrong error message for input device
* error message without errnofor input device on RPI
to prevent from including additional header
Co-authored-by: kkl <klingenberger@bfmc.de>
2020-09-18 08:52:52 +02:00
raysan5
04406c0f1a
Corrected minor framebuffer issue on OpenGL ES 2.0
2020-09-18 02:14:05 +02:00
raysan5
cdc8850e68
WARNING: REDESIGN of rlgl framebuffers API #721
...
This redesign allows more flexibility when creating RenderTexture and a simplification (and hopefully removal) of `GenTexture*()` functions, that should not belong to this model but the user code, due to the use of custom shaders.
Also, this new API opens the door for a possible GBuffers type and advance rendering possibilities...
Some functions of the API have been also simplified or even removed.
rlgl module can be used as an standalone library, so, a version for the library has been added: v3.1.0, matching current raylib version.
2020-09-18 02:11:49 +02:00
raysan5
fa2c114636
WARNING: struct RenderTexture2D: Removed depthTexture
...
Not required anymore, attachment type is queried when required
2020-09-17 13:44:03 +02:00
raysan5
cbdb9bfe42
REVIEWED: UnloadShader() issue
...
Avoid unloading default shader, raylib will take care of it
2020-09-16 16:33:17 +02:00
raysan5
b870b9f828
Minor: remove tabs
2020-09-16 13:17:31 +02:00
raysan5
90befff4b8
Make sure to detach data before deleting
...
Before deleting certain objects, they must be detached from their parents. That's the case for shader objects after linkage to shader program and also for the texture/cubemaps/renderbuffers attached to framebuffers. If objects are deleted before detached, they are kept in memory to avoid accessing deleted data.
2020-09-16 13:17:16 +02:00
raysan5
11fbd49b73
Avoid GETCWD() warning #1371
2020-09-16 11:44:48 +02:00
raysan5
43d82c1f21
Add security checks when loading data from memory
2020-09-16 11:33:56 +02:00
raysan5
c5c156d65e
Review GenDrawCube() and GenDrawQuad()
...
Better organized and commented
2020-09-15 13:44:04 +02:00
raysan5
2d96196d25
REVIEWED: SaveWAV() to use memory write insted of file
2020-09-15 13:17:10 +02:00
raysan5
0983d7b45c
Solved issues when compiled for OpenGL 1.1
2020-09-15 11:30:20 +02:00
Ray
8cf0be4b6c
Review memory loading functions signesness
2020-09-14 19:20:38 +02:00
raysan5
5073619962
REVIEWED: GetTextureData(), allow retrieving 32bit float data
2020-09-14 16:03:45 +02:00
raysan5
43b9113c0c
Reverted some previous changes...
2020-09-14 15:55:31 +02:00
raysan5
d7853127db
Reviewed some structs to reduce size and padding
...
Also updated raylib Wiki about struct sizes in 32bit and 64bit
2020-09-14 15:36:50 +02:00
Ray
c196b09d33
Remove function declaration added by error
2020-09-13 16:43:19 +02:00
Ray
db652daf42
ADDED: LoadFontFromMemory() (TTF only) #1327
2020-09-13 16:42:31 +02:00
Ray
88c5deac87
WARNING: REDESIGNED: LoadFontData()
2020-09-13 16:41:52 +02:00
Ray
250a0e3592
Minor tweak
2020-09-13 16:40:34 +02:00
Ray
63b739bbfa
Corrected issue on log
2020-09-13 16:01:51 +02:00
Ray
dace2172d1
Update cgltf library to v1.7
2020-09-13 15:55:48 +02:00
Ray
5b60a743bd
ADDED: LoadWaveFromMemory() #1327
2020-09-13 15:38:57 +02:00
Ray
768b29dd74
ADDED: LoadImageFromMemory() #1327
2020-09-13 15:37:15 +02:00
Ray
cb8cbb038b
WARNING: RENAMED: GetExtension() to GetFileExtension()
2020-09-13 14:07:08 +02:00
raysan5
f1ed8be5d7
REDESIGNED: ColorFromHSV()
...
Replaced Vector3 by direct values, easier to use and understand
2020-09-07 19:33:06 +02:00
raysan5
85d5744679
REVIEW: glfwSetWindowMaximizeCallback() not available on web
2020-09-07 15:34:21 +02:00
raysan5
1134024985
Update rlgl.h
2020-09-01 21:27:47 +02:00
raysan5
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
2020-09-01 21:08:45 +02:00
raysan5
a1422ba1c1
Review custom blend modes mechanism
...
rlBlendMode() has been added to rlgl to be used on BLEND_CUSTOM. This functionality is exposed to advance users.
In any case, new blending modes could be added if required.
2020-09-01 21:02:19 +02:00
cedemax
bfafb80cde
Multiple blendmodes ( #1324 )
...
Co-authored-by: max <max.cedercreutz@cetopo.com>
2020-09-01 20:33:49 +02:00
Juan Medina
dcbe481a28
adding new windows functions ( #1357 )
2020-09-01 20:29:13 +02:00
raysan5
ffe2364334
Update miniaudio to version 0.10.18
2020-08-30 20:01:38 +02:00
raysan5
8b5485f822
Remove unused variable
2020-08-30 20:00:56 +02:00
raysan5
945a02798b
DrawTextEx(): Minor tweak
2020-08-29 13:57:59 +02:00
raysan5
d0ebeb1713
Reorder some functions
2020-08-23 21:18:39 +02:00
raysan5
ea832628c4
Review last PR formatting to follow raylib standards
2020-08-23 21:10:59 +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
816856eb75
Corrected compiling issue
...
When using USE_PTHREADS=1 on libraylib.bc compilation, program requires --shared-memory passed to the linker and despite it compiles, it fails on execution (at least for me).
2020-08-23 21:01:10 +02:00
raysan5
e785ca73b5
Review compilation parameter for objective C code on GLFW
2020-08-20 19:37:03 +02:00
raysan5
06ff1ce2aa
Minor tweak for consistency
2020-08-20 19:31:54 +02:00
raysan5
b499b50154
Avoid architecture selection on gcc, use correct gcc version instead
...
Review raylib resource file for DLL compilation
2020-08-20 17:37:01 +02:00
raysan5
249708dbb8
Support externally provided library name
...
It can be useful in some cases qhen compiling for multiple architectures
2020-08-19 19:11:18 +02:00
raysan5
1e9de0f9ff
Review Android arch names to lowercase
2020-08-19 16:51:43 +02:00
raysan5
44dd1fc7f5
Trying to configure android_native_app_glue target compilation
2020-08-19 16:30:33 +02:00
raysan5
48f0dfa18e
Update Makefile
2020-08-19 16:25:51 +02:00
raysan5
ac0362d30e
Update Makefile
2020-08-19 16:17:27 +02:00
raysan5
34c8f4c39c
Update Makefile
2020-08-19 16:13:16 +02:00
raysan5
cc8626f6bb
Update Makefile
2020-08-19 15:47:36 +02:00
raysan5
1316183b3a
Trying to automate Android building...
2020-08-19 15:21:20 +02:00
raysan5
3416858d1c
Update Makefile
2020-08-19 14:04:53 +02:00
raysan5
0d05004468
Added resource file for DLL compilation info
2020-08-19 11:59:50 +02:00
raysan5
d98c471883
Add LDFLAGS when required
2020-08-19 11:25:13 +02:00
raysan5
05b3ca0a83
Update Makefile
2020-08-19 10:38:53 +02:00
raysan5
ab8ec9adad
Support multiple build architectures (x86, x64)
2020-08-17 23:23:42 +02:00
raysan5
090490389e
Improved Makefile clean on Windows
2020-08-17 22:41:26 +02:00
raysan5
921f0c02e2
Update Makefile
2020-08-17 22:27:22 +02:00
raysan5
2d0811d94c
Update Makefile
2020-08-17 20:38:06 +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
Ray
7b346dbbe1
Review issue with .fnt -> .png path #1351
...
When .fnt file is in the .exe path, image path was wrongly calculated
2020-08-15 11:32:23 +02:00
raysan5
ad1b3330b7
Support mulstiple WAV sampleSize for MusicStream #1340
...
24bit per sample is not supported internally and automatically converted 16bit
2020-08-11 19:08:07 +02:00
Ahmad Fatoum
6108ba89df
CMake: don't use raylib_static name for MinGW on Windows
...
There are no *.lib files that could overwrite each other when building
both static and shared versions of raylib at once. So just use the
normal library name without _static suffix.
2020-08-08 01:11:45 +02:00
raysan5
2c7dc70878
Reset close status for next frame #1339
2020-08-06 11:47:46 +02:00
Rfaile313
9e75f870bb
Update Makefile for web ( #1332 )
...
When you install emsdk out of the box, the directory is no longer `$(EMSDK_PATH)/python/33.7.4_64bit` but rather `$(EMSDK_PATH)/python/3.7.4-pywin32_64bit` noting the `3.7.4-pywin32_64bit` change on the last file.
Thus, without adjusting this in the raylib Makefile it will throw an error:
```
PS C:\raylib\raylib\src> make PLATFORM=PLATFORM_WEB -B emcc -c core.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=gnu99 -Os -s USE_GLFW=3 -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 '"python"' is not recognized as an internal or external command, operable program or batch file.
```
However, changing this line in the Makefile compiles raylib for web as expected
`"raylib library generated (libraylib.bc)!"`
2020-08-02 20:21:59 +02:00
raysan5
6e9e7bd6bc
LoadSound(): Use memory loading (WAV, OGG, MP3, FLAC) #1312
2020-07-31 12:13:04 +02:00
seanpringle
1d895616f7
rlCheckErrors ( #1321 )
...
* rlglCheckErrors
* rlglCheckErrors LOG_WARNING
* rename to rlCheckErrors; improve messages; revert core.c
2020-07-30 12:50:20 +02:00
raysan5
9c2ff464b0
Support pthreads on PLATFORM_WEB compilation
2020-07-28 20:36:10 +02:00
raysan5
20301d1e5d
Corrected issue with framebuffer size storage #1298
2020-07-28 11:44:45 +02:00
Ray
b5eb104b08
Consider empty title for window #1323
2020-07-24 18:20:37 +02:00
Ray
14d37464ad
DrawTriangleFan(): Add a comment about vertex order #1316
2020-07-22 11:12:04 +02:00
seanpringle
cebcdea80f
[wip] MeshNormalsSmooth() ( #1317 )
...
* MeshSmoothNormals() by average
* wrong comment
* spelling
* use correct function naming convention
2020-07-20 11:05:18 +02:00
raysan5
6ec847a93f
Find a better mechanism to avoid FBO on OpenGL 2.1 if required #1290
2020-07-17 19:41:38 +02:00
raysan5
feedf332a8
Issue with render size assignment on RPI/Android #1314
2020-07-17 18:39:31 +02:00
raysan5
642f42bb4f
Reviewed comment in LoadIQM() #1315
2020-07-17 18:22:09 +02:00
seanpringle
bdd253a66a
clamp ray hit y position to ground plane height ( #1311 )
2020-07-15 11:13:03 +02:00
Random
7760575d3f
fix emcc warning (-Wparentheses-equality) ( #1310 )
2020-07-14 21:25:21 +02:00
raysan5
dd5f448f25
Update Makefile Android
2020-07-14 19:09:58 +02:00
raysan5
0b52c57a24
Update Makefile emsdk paths
2020-07-14 19:07:51 +02:00
raysan5
d2d50bc60f
Update miniaudio to v0.10.14
2020-07-14 18:59:00 +02:00
seanpringle
a9d676a5fd
scale perspective top calc for near culing plane ( #1309 )
2020-07-14 10:36:22 +02:00
raysan5
bf429a0058
Remove conditional __EMSCRIPTEN__
...
Not required anymore
2020-07-13 18:57:46 +02:00
Random
4de362b405
Updated miniaudio to v0.10.13, fixes emscripten compilation error ( #1306 )
2020-07-13 18:56:17 +02:00
raysan5
0db0e6acd8
WARNING: REMOVED: LoadImageEx()
...
Reason for removal: This function forces a specific Image data format, it copies data internally (it could be confusing and lead to memory leaks), it's redundant, there is a simpler alternative and raylib promotes using structures directly
2020-07-10 19:18:29 +02:00
raysan5
7199dd570f
REVIEW: Pointer lock emscripten API does not work #1241
...
It seems some internals change recently due to web security reasons and some emscripten HTML5 funtionalities like pointerLock or fullscreen modes behave very weird or just don't work as expected
2020-07-10 18:23:17 +02:00
raysan5
3f4c6fee11
Correct issue when not supporting GIF format
2020-07-10 17:24:37 +02:00
raysan5
c57323f29c
ADDED: LoadImageAnim() to load animated sequence of images
2020-07-10 13:59:01 +02:00
raysan5
fa7799143e
Update miniaudio to v0.10.12, solves #1288
2020-07-10 13:29:42 +02:00
raysan5
57dc8a91dd
Disable FBO support on OpenGL 2.1 #1290
2020-07-10 13:14:56 +02:00
Random
86a8f1d5d5
Chromium needs a larger audio buffer ( #1300 )
...
* Chromium needs a larger audio buffer: https://github.com/dr-soft/miniaudio/issues/150
* changed PLATFORM_WEB to __EMSCRIPTEN__
2020-07-10 12:34:35 +02:00
raysan5
0877019fb6
Review comment
2020-07-10 12:15:52 +02:00
Terry Nguyen
871cd1a76a
Free leaked allocations from render objects ( #1302 )
2020-07-09 20:42:20 +02:00
Doyle
00fda3be65
Fix incorrect color transform to 255 space ( #1297 )
2020-07-05 20:02:32 +02:00
Ray
5986eee6ab
Expose additional configuration options
...
Some internal defines have been exposed in config.h
2020-06-30 11:05:09 +02:00
Vlad Adrian
4d71e9b44f
Added new function DrawTextureTiled() ( #1291 )
...
* Implemented DrawTextureTiled()
* Example added
2020-06-27 23:59:14 +02:00
Ray
eae6e6a828
Minor format tweak
2020-06-27 14:11:21 +02:00
Ray
5b294b7cff
Corrected issue with OpenGL 1.1 support
2020-06-27 14:10:53 +02:00
Ray
ba39a1b304
ADDED: UpdateTextureRec()
2020-06-25 16:26:59 +02:00
Shylie
25fb24ba7d
[add] GetMonitorRefreshRate(int monitor); ( #1289 )
2020-06-24 18:28:57 +02:00
Ray
38530ebf12
REVIEWED: ToggleFullscreen(), issue #1287
2020-06-23 00:39:06 +02:00
Ray
bd13d4a471
Add missing include
2020-06-23 00:33:51 +02:00
raysan5
e18c4c1158
REVIEWED: ColorAlphaBlend(), support tint color
2020-06-20 23:32:32 +02:00
raysan5
7ed7116e27
REVIEWED: ColorAlphaBlend(), integers-version, optimized #1218
2020-06-20 19:57:09 +02:00
raysan5
5a862bce29
REVIEWED: ImageDraw(), consider negative source offset properly #1283
2020-06-20 18:49:15 +02:00
raysan5
da582e2eec
REVIEWED: ImageDraw() #1283
2020-06-20 18:10:21 +02:00
raysan5
c078640fa5
Commented Fade() macro
2020-06-16 10:37:31 +02:00
raysan5
afcc584fb6
RE-ADDED: Fade() function to avoid multiple breaking changes
...
Probably there is a better way to do this but this is a temporary solution for backward compatibility
2020-06-16 10:36:05 +02:00
raysan5
589d606000
REDESIGNED: ImageDraw(), optimized #1218
...
After multiple tests and lot of redesign, current implementation is the fastest one. It also considers several fast-paths for maximum speed!
2020-06-15 12:06:41 +02:00
raysan5
32c0a7a135
Small code optimization
2020-06-15 12:05:03 +02:00
raysan5
bfa6544030
REDESIGNED: ImageResize(), optimized #1218
2020-06-15 12:04:18 +02:00
raysan5
691c1f9391
REDESIGNED: ImageFromImage(), optimized #1218
2020-06-15 12:03:33 +02:00
raysan5
ad954dc7ab
WARNING: BIG CHANGE: Move Color functions to texture module
...
WARNING: Some functions ADDED and some RENAMED:
- RENAMED: Fade() -> ColorAlpha() [Added #define for compatibility]
- ADDED: ColorAlphaBlend()
- ADDED: GetPixelColor()
- ADDED: SetPixelColor()
2020-06-15 12:02:50 +02:00
raysan5
ec09fea29a
REDESIGNED: ImageDraw(), optimization #1218
...
Trying a new optimization approach, some additional functions added, they will be probably exposed soon.
2020-06-11 22:47:25 +02:00
raysan5
15bfe44e73
REVIEWED: ImageDraw(), optimizations test #1218
...
Despite all the effort put on function optimization, dealing with alpha blending is complex, considering src and dst could have different pixel format...
2020-06-11 12:47:47 +02:00
raysan5
a6e6a99cb6
REDESIGNED: ImageAlphaClear(), optimized #1218
2020-06-10 23:10:16 +02:00
raysan5
4745ebeed5
REVIEWED: ImageResizeCanvas(), optimization #1218
...
Optimized to avoid ImageCrop() calls, now we define the source image rectangle and we just copy that data over the new canvas.
2020-06-10 21:21:37 +02:00
raysan5
dea0279a74
REVIEWED: ExportImage(), optimized
2020-06-09 19:52:10 +02:00
raysan5
7ef0fb4192
REVERTED: ExportImage() changes
...
Always using RGBA for now.
2020-06-08 21:18:42 +02:00
raysan5
82f7dd017e
REVIEWED: ImageAlphaPremultiply(), optimization
2020-06-08 18:24:53 +02:00
raysan5
40bc6afdbd
REVIEWED: ImageAlphaClear(), minor optimization
2020-06-08 18:23:59 +02:00
Chang Si Yuan
6264c4901b
Fix wrong height used when using scissor mode with render texture of different height from window ( #1272 )
2020-06-08 10:32:23 +02:00
Chang Si Yuan
73cc33b493
Fix extra memory allocated when updating color buffer in mesh ( #1271 )
2020-06-08 10:31:39 +02:00
raysan5
87592e2625
Update textures.c
2020-06-07 20:32:43 +02:00
raysan5
d0e9228660
REDESIGNED: ImageResizeCanvas(), optimized #1218
2020-06-07 18:33:30 +02:00
raysan5
a9fb0aa207
ImageToPOT() renamed parameter
2020-06-07 18:32:20 +02:00
raysan5
b5174a9990
REVIEWED: ImageCrop() #1218
...
Further optimization, moving data line-by-line
Old optimization left for reference
2020-06-07 12:57:57 +02:00
raysan5
b7d53ce314
REVIEWED: ImageToPOT() #1218
...
Using ImageResizeCanvas()
2020-06-07 12:56:47 +02:00
raysan5
78c3d619f9
REVIEWED: ImageAlphaCrop() #1218
...
Now uses GetImageAlphaBorder()
2020-06-07 12:33:42 +02:00
raysan5
02ff68e1a3
REDESIGNED: ImageCrop(), optimized #1218
2020-06-07 12:16:27 +02:00
raysan5
7cf1e76d53
REVIEWED: ExportImage(), optimized #1218
...
Avoid GetImageData() retrieval and free
2020-06-07 11:57:22 +02:00
raysan5
776e4a37ef
REDESIGNED: ImageRotateCCW(), optimized #1218
2020-06-07 11:53:13 +02:00
raysan5
79e2fbe0c6
REDESIGNED: ImageRotateCW(), optimized #1218
2020-06-07 11:52:55 +02:00
raysan5
d278eae4a3
REDESIGNED: ImageFlipHorizontal(), optimized #1218
...
Added several optimized options for future reference (if required)
2020-06-07 11:52:21 +02:00
raysan5
93d6dd3023
REDESIGNED: ImageFlipVertical(), optimized #1218
2020-06-07 11:51:26 +02:00
raysan5
5d0b2c796e
Remove warning from GetDirectoryPath()
2020-06-07 11:50:03 +02:00
frithrah
e07512e213
Fixed buffer overflow in GenMeshPoly ( #1269 )
...
Co-authored-by: frithrah <simon@frithrah.com>
2020-06-05 19:13:31 +02:00
raysan5
3792951023
REVIEWED: GetPixelDataSize() to consider compressed data properly
2020-06-02 23:08:34 +02:00
raysan5
a4333035c7
Use TRACELOG() macro instead of TraceLog() function
2020-06-02 23:07:42 +02:00
raysan5
b00ab118c6
[examples] text_font_sdf - Corrected bug
2020-06-02 23:07:11 +02:00
branlix3000
0e1d7d6430
Fixing Android build from Linux. Letting ANDROID_NDK to be modified at compile time. Default path to the ANDROID_TOOLCHAIN have changed in the latest Android command-line tools release. ( #1264 )
...
Co-authored-by: Branlix 3000 <branlix@3000.3k>
2020-05-31 21:18:33 +02:00
jvocaturo
6e84120b89
fix bug in QuaternionFromVector3ToVector3 ( #1263 )
2020-05-27 17:52:23 +02:00
raysan5
c43e889e39
Corrected bug on TextJoin()
2020-05-27 13:45:11 +02:00
ChrisDill
aff47d1564
Added bool IsCursorOnScreen(void). ( #1262 )
...
- The Mouse struct already stores cursorOnScreen. This function simply exposes it to the usage code.
2020-05-26 11:59:25 +02:00
raysan5
1c5df677e1
REDESIGNED: ExportWaveAsCode() to use memory buffer
2020-05-24 15:48:07 +02:00
raysan5
b0f245d8c5
Review ExportImageAsCode() comment
2020-05-24 15:47:15 +02:00
raysan5
8120547639
Added LoadWAV()/SaveWAV() memory buffer sample code
...
It could be useful in a future...
2020-05-24 00:20:32 +02:00
raysan5
a6fcd32339
Support WAV music streaming #1198
...
Switched custom WAV laoding/saving funtionality to drwav library, it also provides the required mechanisms to stream wav data.
2020-05-23 23:19:59 +02:00
raysan5
427e543d84
Corrected issue
...
Compression API requires functions provided by stbi_image_write (DEFLATE compression)
2020-05-23 23:17:34 +02:00
raysan5
fe5fe230b9
Update dr_wav.h
2020-05-23 23:16:40 +02:00
raysan5
394bf00ba5
REDESIGNED: ExportMesh() to use memory buffer #1232
...
This change could introduce an issue on dataSize precalculation...
2020-05-23 19:48:40 +02:00
raysan5
4e8e90b6df
Add note comment on ExportImageAsCode()
2020-05-23 19:46:58 +02:00
raysan5
0bcb892975
REDESIGNED: LoadIQM(), LoadModelAnimations() to use mem buffers
2020-05-23 19:24:15 +02:00
raysan5
94789dd24a
Review usage of sizeof(), unify conventions
...
All functions requiring sizeof() now follow the same convention:
NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
2020-05-23 19:23:40 +02:00
raysan5
b95673f701
Use RL_FREE() instead of free()
2020-05-23 19:21:46 +02:00
raysan5
d3dece3343
REDESIGNED: ExportImageAsCode() to use memory buffer #1232
2020-05-23 18:24:53 +02:00
raysan5
c1e0978555
Replaced strncat() by memcpy() in some functions
2020-05-23 18:05:41 +02:00
raysan5
795c079c55
Corrected issues on LoadPKM()
2020-05-23 18:04:58 +02:00
raysan5
c1bb051e61
Avoid some warnings
2020-05-22 02:26:47 +02:00
raysan5
76f8e84901
Reviewed LoadBMFont() to load data from memory #1232
2020-05-22 02:19:45 +02:00
raysan5
70cd2f1edf
Tweak
2020-05-22 02:18:50 +02:00