Ray
bf705a63de
REVIEWED: DrawLineCatmullRom()
2023-08-12 19:31:29 +02:00
Ray
d873d0f173
ISSUE: DrawLineCatmullRom(), needs review
2023-08-12 18:45:59 +02:00
Ray
9161c55d59
REVIEWED: Code formatting
2023-08-12 18:40:18 +02:00
Ray
fc88518067
ADDED: Spline drawing functions ->
...
- `DrawLineBSpline()`
- `DrawLineCatmullRom()`
2023-08-12 14:00:50 +02:00
ubkp
c25b52b1b3
Fix rcamera.h issues ( #3240 )
2023-08-11 10:19:50 +02:00
Ray
93f59a6f59
Review tabs and trail-spaces
2023-08-10 22:47:17 +02:00
Ray
f1c31bee27
Fix #3177 #3109
2023-08-10 22:45:25 +02:00
RadsammyT
0959f6ebf6
fix typos in rmodels, rshapes, rtext modules ( #3236 )
2023-08-10 00:21:14 +02:00
ashn
90f1749965
Ignore unused function warnings from external headers when compiling with GCC and Clang ( #3235 )
2023-08-09 19:17:12 +02:00
Ray
42cfabc670
REVIEWED: Old pragma formating
2023-08-09 10:00:26 +02:00
RadsammyT
03ecf2202e
Fix typos in rcore.c comments ( #3234 )
...
* Fix typos in rcore.c comments
thought i corrected "dettach"
Fix typos in rcore.c comments
* 'fordward' > forward
2023-08-08 20:10:40 +02:00
Nikolas
bef818e210
Fix build for OpenGL 2.1, where half floats are part of an extension ( #3233 )
2023-08-08 20:09:22 +02:00
mohad12211
db55bed72b
fix: check if ctrl modifier is among the currently set modifiers ( #3230 )
2023-08-07 19:51:36 +02:00
Le Juez Victor
c9864d8ac1
Fixed Android app black screen issue when reopening after incomplete closing ( #3227 )
...
* Fixed black screen issue when resuming the app on Android
Partly explained here: https://github.com/raysan5/raylib/issues/3127
* Fix APP_CMD_TERM_WINDOW for Android
2023-08-06 22:04:20 +02:00
yujiri8
b82217eaaa
Tweak build.zig to work with cross-compiling ( #3225 )
2023-08-06 09:25:37 +02:00
Nikolas
dc621ca388
Support 16-Bit HDR textures ( #3220 )
...
* Support 16-Bit HDR textures
* Fix build on emscripten
* Move helper functions
2023-08-05 23:16:26 +02:00
Ray
6094869e3e
Fix material loading #3126
2023-08-04 18:14:47 +02:00
Jeffery Myers
601cadbae6
[AUDIO] Add a function to make an alias of a sound and share it's sample data ( #3219 )
...
* Add a function to clone a sound and share data with another sound.
* rename items based on feedback
* PR Feedback, use custom unload for sound alias, not variant of normal sound unloading
2023-08-04 16:40:10 +02:00
vitopigno
d3058fe589
[CORE] Support for SetWindowTitle and InitWindow for web ( #3222 )
...
* Update raylib.h
Changed SetWindowTitle's description
* Update rcore.c
SetWindowTitle now works on web
* Update rcore.c
InitWindow title now works with web platform too.
2023-08-04 12:04:19 +02:00
ubkp
464e714a2e
Adds BORDERLESS_WINDOWED_MODE for PLATFORM_DESKTOP ( #3216 )
2023-08-02 19:16:35 +02:00
Jeffery Myers
04678bc585
int math done with floats causes warnings. ( #3218 )
2023-08-02 19:12:38 +02:00
Matheus C. França
e7664d5684
build change ( #3214 )
...
ref.: https://github.com/ziglang/zig/pull/16446
2023-08-01 10:46:40 +02:00
ubkp
4fd40f0333
Fixes GetCurrentMonitor() detection inconsistency issue ( #3215 )
2023-08-01 10:42:50 +02:00
ndytts
44659b7ba8
Fix android soname in src/Makefile ( #3211 )
2023-07-29 13:46:04 +02:00
ubkp
962030e70a
Changes SetWindowMonitor() to no longer force fullscreen ( #3209 )
...
* Changes SetWindowMonitor() to no longer force fullscreen
* Readds fullscreen support
2023-07-28 20:08:41 +02:00
Nikolas
5d28bad0ad
Fix LoadTextureCubemap for manual layouts ( #3204 )
2023-07-27 22:41:43 +02:00
ashn
ac6f889dfc
Fix misleading indentation in src/Makefile ( #3202 )
2023-07-26 17:50:07 +02:00
bohonghuang
298f93ef50
Fix DrawBillboardPro to allow source of negative size ( #3197 ) ( #3203 )
2023-07-26 17:46:57 +02:00
ubkp
090b857912
Fix mouse wheel not working in PLATFORM_RPI or PLATFORM_DRM ( #3193 )
2023-07-23 20:35:41 +02:00
ubkp
295e8c2a2f
Optimize and simplify the gesture system ( #3190 )
...
* Optimize and simplify the gesture system
* Decouples GESTURE_SWIPE_* from GESTURE_DRAG
2023-07-22 20:50:04 +02:00
Jakub Václav Flasar
ad2338b994
build.zig: Support for building with PLAFORM_DRM ( #3191 )
...
- Adds an option -Dplatform_drm when using zig build
- When building for linux, checks whether -Dplatform_drm is present and configures the build accordingly.
2023-07-21 14:08:35 +02:00
smalltimewizard
1310617a92
Optimization of ImageDrawRectangleRec() ( #3185 )
...
A significant performance increase can be had by copying the first row to all other rows.
2023-07-20 13:50:56 +02:00
Alberto González Palomo
5635e4214c
Add note about sample format to AttachAudioStreamProcessor() ( #3188 )
2023-07-20 13:41:35 +02:00
Danil
055fd752c2
Fixed GetMonitorName description ( #3184 ) ( #3189 )
2023-07-20 10:56:35 +02:00
Alberto González Palomo
7124a14a60
Document buffer format for audio processors. ( #3186 )
2023-07-19 23:11:29 +02:00
Rokas Puzonas
d6f16b7664
Update usage of 'sinf()' and 'cosf()' to be correct ( #3181 )
...
* Update usage of 'sinf()' and 'cosf()' to be correct
* Update formatting of arithmetic operations
2023-07-19 13:46:14 +02:00
ubkp
954c60100f
Fix GESTURE_DRAG and GESTURE_SWIPE_* issues (mostly) for web ( #3183 )
2023-07-19 11:33:10 +02:00
Ray
52541b4a1f
ADDED: SUPPORT_FONT_ATLAS_WHITE_REC
...
Support creating a 3x3 pixels white rectangle at the bottom-right corner of the generated font atlas image, useful for shapes+text drawing in a single draw call!
2023-07-18 17:57:10 +02:00
Ray
e0c80f5ddd
Revert "Makefile change for cross compiling. ( #3176 )"
...
This reverts commit 70286c7cdc .
2023-07-16 20:18:38 +02:00
Michael Anghelone
70286c7cdc
Makefile change for cross compiling. ( #3176 )
...
Working from wsl and compiling for windows this change makes it much easier to compile a static library for windows on arm.
To compile a static library for windows on arm:
```
make PLATFORM=PLATFORM_DESKTOP TARGET_OS=WINDOWS CROSS_CC=/llvm/bin/aarch64-w64-mingw32-gcc CROSS_AR=/llvm/bin/aarch64-w64-mingw32-ar
```
This does not work to compile a shared library yet, only static.
2023-07-16 13:08:55 +02:00
ubkp
b980268ba7
[example] Core Input Gestures for Web ( #3172 )
...
* [example] Core Input Gestures for Web
* Fix Doubletap for web
* Changes TAP_TIMEOUT and rgGetCurrentTime to seconds
2023-07-16 13:07:29 +02:00
Ray
bc9c063254
Update external sdefl and sinfl
2023-07-12 15:49:38 +02:00
Ray
7f21cf1dcf
Revert "UPDATED: sdefl and sinfl compression libraries"
...
This reverts commit e190b7eee9 .
2023-07-12 10:37:10 +02:00
Ray
2061bfc5e8
Reviewed parameter names to avoid issues #3159
2023-07-10 19:29:10 +02:00
Ray
bc40012ca3
Added missing structure on standalone mode #3160
2023-07-10 19:15:55 +02:00
Ray
b807c590cb
Merge branch 'master' of https://github.com/raysan5/raylib
2023-07-10 19:13:53 +02:00
Ray
0b9fae3c53
Reviewed rcamera/rgestures file-macros for consistency #3161
2023-07-10 19:13:44 +02:00
ubkp
4b6cbd2340
Fix Touch pointCount for web ( #3163 )
2023-07-10 18:58:56 +02:00
Ray
685d47938b
Reverted MeasureTextEx() change #3105
2023-07-06 12:31:01 +02:00
Ray
668b37e111
REVIEWED: GenImageFontAtlas(), make atlas size less conservative
2023-07-06 12:29:28 +02:00
Ray
4f9235f6eb
Merge branch 'master' of https://github.com/raysan5/raylib
2023-07-05 18:36:59 +02:00
Ray
58bd10edb2
Update rtext.c
2023-07-05 18:36:54 +02:00
ubkp
13a26a0fa2
Fix degrees of swipe gestures for web ( #3155 )
2023-07-05 16:43:00 +02:00
Ray
225b4fb3e2
REVIEWED: Vector2Angle()
2023-07-04 16:58:43 +02:00
ubkp
dd2d64e058
Fix pinch gestures for web ( #3153 )
2023-07-04 11:08:58 +02:00
ubkp
ffe4d36e0a
Fix swipe gestures for web ( #3151 )
2023-07-03 09:29:26 +02:00
Ray
fdc28fce80
Reviewed vector2angle example
2023-07-02 20:05:15 +02:00
Ray
d1ab031a27
ADDED: SetWindowFocused() #3142
2023-07-02 17:48:00 +02:00
Ray
5361d498c3
WARNING: REDESIGN: Vector2Angle()<-->Vector2LineAngle() #2887
2023-07-02 17:27:38 +02:00
Ray
4fc5e82e30
REVIEWED: TextToUpper(), TextToLower(), TextToPascal()
2023-07-02 11:10:42 +02:00
Ray
3e4e4b32fd
WARNING: BREAKING: ADDED: SetTextLineSpacing()
2023-07-02 10:52:20 +02:00
Ray
48e2663d03
REVIEWED: Issue #3105
2023-07-02 10:51:39 +02:00
Ray
df90da0b37
Update rcore.c
2023-07-02 10:50:40 +02:00
Ray
e190b7eee9
UPDATED: sdefl and sinfl compression libraries
2023-06-30 09:47:16 +02:00
Ray
ceafbcf9d2
REVIEWED: SetShapesTexture(), allow reseting
2023-06-28 00:37:24 +02:00
Jeffery Myers
0c126af717
casting warnings in rtextures ( #3134 )
2023-06-24 23:38:09 +02:00
Ray
2d518bfbcd
REVIEWED: ProcessMaterialsOBJ() #3125
2023-06-24 13:32:13 +02:00
Ray
77d025ebda
Merge branch 'master' of https://github.com/raysan5/raylib
2023-06-24 13:27:07 +02:00
Ray
974460b072
REVIEWED: rlLoadShaderBuffer() #3104
2023-06-24 13:26:43 +02:00
Le Juez Victor
5e1a81555c
Review android_main() in rcore.c ( #3121 )
2023-06-20 11:01:57 +02:00
Dante Catalfamo
3a90acf08e
Add options to zig compile ( #3115 )
...
* Add options to zig compile options
Support for compiling with raygui, raymath, and physac.
Also outputs the required headers.
Raygui should be located `../raygui` relative to the repo root
Physac should be located `../physac` relative to the repo root
This behavior matches options in the Makefile
* Move Options struct
* Remove physac, explicit raymath, always copy rlgl.h and raymath.h
* Remove unused options from build.zig
* Add srcdir as include path for raygui.h
2023-06-18 11:48:50 +02:00
Ray
830e328df0
Remove trailing spaces
2023-06-17 16:48:18 +02:00
lesleyrs
2209e5b0ca
fix window flags order ( #3114 )
2023-06-16 18:08:10 +02:00
Ray
a0a18384cb
Fix typo
2023-06-16 16:34:47 +02:00
Chema Guerra
f385d0ce1c
Continuation of support for ES3/WebGL2 ( #3107 )
...
* Continuation of support for ES3/WebGL2
* GetTouchPointState()
* Amends to the WebGL2 PR
---------
Co-authored-by: root <root@DESKTOP-GLOV9QV>
Co-authored-by: chemguerra <online@chemaguerra.com>
2023-06-12 08:18:31 +02:00
Charles
2e00d16f3d
GLTF: fix segfault in animNormals memcpy when mesh.normals == NULL ( #3103 )
2023-06-10 22:15:24 +02:00
Le Juez Victor
753c0b3853
Addition of support for vox files in version 200. ( #3097 )
2023-06-05 01:13:08 +02:00
Ray
f8b352f6d9
ADDED: ExportImageToMemory()
...
Only PNG supported for now
2023-06-03 19:51:16 +02:00
Ray
ba802fdd5e
tweaks
2023-06-03 19:50:46 +02:00
Pixel Phobic
b1b6ae3905
Full Movement Added to Right Analog Stick ( #3095 )
...
I Added Analog Stick Support to the rcamera module, However this code only allowed for 4 Directions of Movement, This Changed adds the full range of Movement to the Right Analog Stick.
2023-06-02 10:29:45 +02:00
Peter0x44
2dec56e7b7
Add error if raylib.h is included in a C++98 program ( #3093 )
...
The color macros don't work properly in C++98, because they require
aggregate initialzation, which is a C++11 feature. So, explicitly state
how to fix this issue, instead of letting the compiler give a more vague
error message like:
main.cpp:8:23: error: expected '(' for function-style cast or type construction
ClearBackground(BLACK);
^~~~~
/opt/homebrew/Cellar/raylib/4.5.0/include/raylib.h:179:35: note: expanded from macro 'BLACK'
#define BLACK CLITERAL(Color){ 0, 0, 0, 255 } // Black
NOTE: Don't use this check with MSVC because by default, it reports
199711L regardless of any C++ version passed on command line
Only passing `/Zc:__cplusplus` will make MSVC set this correctly
see: https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus
2023-06-01 09:47:52 +02:00
Ray
e497603678
ADDED: Experimental support for OpenGL ES 3.0 -WIP-
...
Just added the required flags to request the OpenGL ES 3.0 context but it has not been tested...
2023-05-31 18:36:33 +02:00
A Billy
a18667c2e9
cross compilation for PLATFORM_DRM ( #3091 )
...
* added cross compilation options for DRM
* fixed identation
2023-05-30 21:34:08 +02:00
yujiri8
45c00ab9d4
build.zig: Fix cross-compiling from Linux ( #3090 )
2023-05-30 21:33:01 +02:00
Ray
924bb7226b
UPDATED: sdefl and sinfl DEFLATE compression libraries
2023-05-30 21:12:03 +02:00
Ray
5ef50ae139
REVIEWED: ImageRotate() formatting
2023-05-26 14:01:19 +02:00
Dane Madsen
e465ed0850
Added ImageRotate ( #3078 )
...
* Added ImageRotate
* Quick rename of the example
* Update ImageRotate by changing doubles to floats and checking code convention
* Update API
2023-05-24 09:22:51 +02:00
Ray
bf69b38056
Added security check to file reading (memory allocations)
2023-05-22 16:08:14 +02:00
Ray
2937f2010c
Review coding conventions
2023-05-22 16:06:03 +02:00
Dane Madsen
a4a6d4da8a
Add GenImageGradientSquare ( #3077 )
...
* Add GenImageGradientSquare to allow square gradients
* Fix GenImageGradientSquare and add to textures_image_generation example
* Remove params from GenImageGradientSquare
2023-05-22 15:20:28 +02:00
Ray
84ae26cdc0
Update raylib.h
2023-05-21 11:35:25 +02:00
Dane Madsen
e96dc46d38
Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient ( #3074 )
...
* Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient
* renamed GenImageLinearGradient to GenImageGradientLinear
2023-05-21 11:33:47 +02:00
Ray
1b4634702c
Minor tweak
2023-05-21 11:20:42 +02:00
Ray
3a841ac130
REVIEWED: GenImagePerlinNoise(), clamp values #3071
2023-05-21 10:28:04 +02:00
Ray
f31df7521a
REVIEWED: GenImagePerlinNoise(), no change
2023-05-21 00:14:09 +02:00
Ray
51387dfbfb
tweak
2023-05-18 16:14:18 +02:00
Ray
76e39e502c
Update rtextures.c
2023-05-17 23:14:14 +02:00
Ray
3a3e672804
UPDATE: miniaudio v0.11.12 --> v0.11.16
2023-05-17 11:54:32 +02:00
Ray
c3f049fd74
review formatting
2023-05-16 11:02:00 +02:00
Le Juez Victor
675efbda3b
Fix Android app freeze after calling CloseWindow() ( #3067 )
...
Fixed that the Android application was not closed properly after calling `CloseWindow()` and continued to run.
2023-05-16 11:00:44 +02:00
Ray
e17cf9ecd7
REVIEWED: Formating
2023-05-15 11:30:31 +02:00
Pixel Phobic
3f8ef4e05f
Updated (rcamera) To Add Analog Stick Cam Controls ( #3066 )
...
I Noticed While Writing Some code for My Game im Making that there Isn't an Easy way to control the Camera With The Analog Sticks on Controller.
I Added a Couple Lines to the UpdateCamera Function :)
2023-05-15 11:25:44 +02:00
Crynux
3438325e7d
Update rmodels.c; free fileData for LoadModelAnimationsGLTF ( #3065 )
...
fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
2023-05-15 11:24:37 +02:00
Gamer-Kold
6b92d71ea1
Reverted commits that deprecated the build.zig files, and added a note to all of them stating version of zig they were using ( #3060 )
...
* Revert "Fixed broken build.zig files. Now works with latest stable compiler (as of commit, latest is 0.10.1) (#3045 )"
This reverts commit de748dfffe so that zig
build script works with master branch of zig.
* Added a note to build.zig files that denotes what version of zig they have been tested with.
* Standardised the note in the build.zig files
2023-05-15 11:23:36 +02:00
hamyy
26a3536958
GetCurrentMonitor() bugfix ( #3058 )
...
* GetCurrentMonitor() bugfix
* GetCurrentMonitor() bugfix
2023-05-14 21:20:43 +02:00
Michael Scherbakow
cc17a7656c
Update build.zig be be able to build with current zig master ( #3064 )
2023-05-14 21:14:16 +02:00
Ray
452e3b494c
REVIEWED: GetCollisionRec()
2023-05-10 19:25:12 +02:00
manuel5975p
af4b97a301
Update GetCollisionRec ( #3052 )
...
* Update rshapes.c
Add a much more efficient GetCollisionRec implementation
* Update GetCollisionRec
Replace macros with ternary operators
2023-05-10 19:19:59 +02:00
Ray
152262dbfc
Update cgltf.h
2023-05-10 12:48:17 +02:00
Ray
fe595d60f7
Remove trailing spaces
2023-05-08 18:57:36 +02:00
Alfred Reinold Baudisch
53b7b26c45
Added ModelAnimation.name, initially with GLTF animation names loaded ( #3044 )
2023-05-07 10:33:14 +02:00
Gamer-Kold
de748dfffe
Fixed broken build.zig files. Now works with latest stable compiler (as of commit, latest is 0.10.1) ( #3045 )
...
Co-authored-by: Talha Qamar <qamartalha@proton.me>
2023-05-06 12:04:40 +02:00
Ray
a48bb6e1ed
ADDED: Comment to clarify raymath semantics
2023-05-02 20:51:54 +02:00
Ray
fc56940055
REVIEWED: ExportDataAsCode()
2023-05-02 20:40:45 +02:00
Ray
3a21301724
ADDED: Comment about Matrix conventions
2023-05-02 19:29:14 +02:00
Ray
7d68aa6869
REVIEWED: Modules description layout
2023-05-01 14:04:22 +02:00
star-tek-mb
ed2caa1277
fix for latest zig master ( #3037 )
2023-05-01 11:02:34 +02:00
Ray
59596e4266
Update rcore.c
2023-04-29 20:39:36 +02:00
Le Juez Victor
662dfad670
Correction of values used only once in GenMeshCubicmap ( #3032 )
...
* Correction of values used only once in GenMeshCubicmap
The mapWidth and mapHeight values were only used as a limit in the for loop when they could be used throughout the function.
* mapWidth and mapHeight removed from GenMeshCubicmap
mapWidth and mapHeight have been removed from GenMeshCubicmap in favor of using cubicmap.width and cubicmap.height
2023-04-29 17:03:19 +02:00
kolunmi
98cb7a19a1
ensure distance is greater than 0 in CameraMoveToTarget ( #3031 )
2023-04-27 22:17:57 +02:00
Ray
e2996f167e
Update rtextures.c
2023-04-25 20:01:26 +02:00
Ray
64f2f86d32
Update rtextures.c
2023-04-25 15:15:57 +02:00
Ray
6472928cf1
REVIEWED: ImageDrawRectangleRec() #3027
2023-04-25 14:16:48 +02:00
Ray
ac2e9cd00f
REVIEWED: Update CORE.Input.Touch.pointCount #3024
2023-04-23 11:48:01 +02:00
Ray
838fc7e303
REVIEWED: Some old TODOs
2023-04-22 21:17:53 +02:00
Dan Bechard
2d04dd8b88
Fix off-by-one error in CheckCollisionPointRec ( #3022 )
...
Checking `<= x + w` causes off-by-one error where `CheckCollisionPointRec` will return true at the same time for two rectangles rendered right next to each, but which don't overlap (e.g. when making a 2D tile editor). This is clearly not what was intended.
2023-04-22 10:15:19 +02:00
Ray
771957458d
Avoid shader attribute not found log
2023-04-17 17:50:46 +02:00
Ray
9d38363e09
Remove trailing spaces
2023-04-17 12:18:06 +02:00
RadsammyT
e2da32e2da
[raudio] Rewritten ExportWaveAsCode() file saving to be more like rtextures ExportImageAsCode() ( #3013 )
...
* Update raudio.c
Review `raudio.c`: rewritten `ExportWaveAsCode()` to be more like rtextures.c `ExportImageAsCode()'
* no tab november
accidentally inserted a tab somewhere. corrected it.
2023-04-15 10:58:00 +02:00
Ray
709b14180a
Make assets loading extension case insensitive #3008
2023-04-13 23:08:32 +02:00
Ray
9aa71f04f2
Avoid tracelog about not found uniforms #3003
2023-04-10 11:02:00 +02:00
eternalStudent
8f741d894a
Minor fix in DrawLineBezier* ( #3006 )
...
When `i` starts with `0`, `t` is also `0`, which results in `previous == startPos == current`, this segment is not only redundant, but it also causes division-by-zero since `sqrtf(dx*dx + dy*dy)` is zero.
2023-04-09 22:43:06 +02:00
Jeffery Myers
e57ee9c0e8
Fix warnings in raylib for MSVC ( #3004 )
2023-04-09 22:42:15 +02:00
Ray
d8c7b01a3c
REVIEWED: GetGlyphIndex() #3000
2023-04-06 12:49:59 +02:00
chocolate42
8367abad1a
[rtext] Fix GetCodepointNext() to return default value on invalid input with size=0 ( #2997 )
...
* Fix GetCodepointNext to return default value with size=0 on invalid input. Modify LoadCodepoints to work when GetCodepointNext returns a size of 0. All internal use of GetCodepointNext and GetCodepointPrev checked. This fix may break external code dealing with invalid input as the old code erroneously never returned a size of 0, external code that doesn't properly check for size=0 may endlessly loop or overflow a buffer on invalid input.
* Change default behaviour of GetCodepointNext to return a size of 1 instead of 0. This matches existing prod behaviour and guarantees size 1..4 is returned. Simplify internal code that uses GetCodepointNext that previously had to account for size=0.
* Simplified progressing through a UTF-8 string in ImageTextEx and MeasureTextEx. This change matches existing precedent in DrawTextEx
* GetCodepointNext: Add 10xxxxxx checks to multibyte encodings.
---------
Co-authored-by: anon <anon>
2023-04-06 12:34:37 +02:00
Ray
6287f68c0b
Lazy loading of default font for image loading (no InitWindow)
2023-03-22 20:11:36 +01:00
Ray
0925851f89
Update rl_gputex.h
2023-03-22 20:11:03 +01:00
Ray
770e239f73
Minor tweaks to raylib events automation system
2023-03-22 19:47:42 +01:00
Ray
0d4db7ad7f
Update CMakeLists.txt
2023-03-22 12:43:18 +01:00
Ray
19892a3c3a
Update resource arch for 64bit #2978
2023-03-22 11:15:00 +01:00
Ray
ecb6a6af32
Review format
2023-03-22 11:08:46 +01:00
Rico P
8b8eddc8e2
slightly optimize Vector3Normalize ( #2982 )
2023-03-22 11:01:05 +01:00
Hanaxar
e55bdd5d8a
Fix packing logic error in ``GenImageFontAtlas`` ( #2979 )
...
Basic packing algorithm currently follows this order: Copy pixel data -> Move offsetX for current glyph -> Check remaining space for current glyph...
Since X offset already moved according current glyph, remaining space should be checked for next glyph. Because of this, occasionally, current logic causes glyphs wrapping around texture.
Proposed fix accomplishes that by moving offsetX check to the beginning of the loop.
2023-03-22 11:00:13 +01:00
Hanaxar
02a8a49961
Calculate exact image size in GenImageFontAtlas ( #2963 )
...
* Calculate exact image size in GenImageFontAtlas
Calculate exact image size with a method based on total glyph width and glyph row count
Current method seemed a little bit overkill with square root, log and power functions and only approximates image size which can be wonky with some weird fonts like cursive fonts.
Proposed method calculates image size directly with a simpler method and results exact image size needed.
* Update rtext.c
* Update rtext.c
Changed do-while to while loop, and also added an extra step to calculate maximum glyph width and excluding it from image width for extra safety.
2023-03-22 10:59:28 +01:00
Ray
9f7a49bec3
Updated version to avoid confusion with 4.5 release
2023-03-20 18:03:37 +01:00
Ikko Eltociear Ashimine
ace7aef0e6
Fix typo in rmodels.c ( #2976 )
...
Upate -> Update
2023-03-20 16:43:22 +01:00
Webfra
08670ecea1
Add const qualifier to char * path argument in qoaplay_open() ( #2972 )
...
* Add const qualifier to char * path argument
in qoa_open()
* Remove unnecessary cast
2023-03-19 20:34:22 +01:00
Rob Loach
c14c7f0b69
raudio: Fix warning on discarded const qualifier ( #2967 )
...
The `qoaplay_open()` function expects a `char *`, but we are passing in a `const char *`. While this works just fine, it does issue a compiler warning when strict:
```
src/raudio.c: In function ‘LoadMusicStream’:
src/raudio.c:1290:45: warning: passing argument 1 of ‘qoaplay_open’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1290 | qoaplay_desc *ctxQoa = qoaplay_open(fileName);
| ^~~~~~~~
In file included from src/raudio.c:233:
src/external/qoaplay.c:86:34: note: expected ‘char *’ but argument is of type ‘const char *’
86 | qoaplay_desc *qoaplay_open(char *path)
| ~~~~~~^~~~
```
This change casts the argument to a `char *` to fix the warning.
2023-03-19 11:16:52 +01:00
Niels Martignène
76b5959bb5
Fix missing symbol when rglfw.c on BSD platforms ( #2968 )
2023-03-19 09:43:51 +01:00
ashn
fec96137e8
Update Makefile comment to indicate arm64 as a supported Linux desktop platform ( #2965 )
2023-03-18 17:37:04 +01:00
Ray
bf3e527dab
Update config.h
2023-03-15 17:51:23 +01:00
Ray
ad2067340f
REVIEWED: TraceLog(), avoid possible buffer overflow
2023-03-15 13:03:55 +01:00
veins1
cf04425bc2
Spelling ( #2957 )
2023-03-14 19:23:17 +01:00
Ray
975c70d2b7
Update rlgl.h
2023-03-14 13:06:17 +01:00
Ray
5a2c49b954
Updated Makefiles to include all missing new examples
2023-03-13 23:13:02 +01:00
Ray
a7f81b06b9
Remove trailing spaces
2023-03-13 12:08:23 +01:00
Ray
393b0d1a80
Delete rcamera.old.h
2023-03-13 12:06:54 +01:00
Ray
9a115106b4
Update miniaudio.h
2023-03-13 11:48:34 +01:00
Ray
4f38830058
Some tweaks
2023-03-12 20:14:32 +01:00
Ray
520ea94de8
Update version to raylib 4.5
2023-03-12 19:52:24 +01:00
Ray
8ca3212701
REVIEWED: UpdateCameraPro() to use Vector3
2023-03-12 19:40:43 +01:00
Ray
f9c4cc2040
ADDED: UpdateCameraPro() -Experimental-
...
REVIEWED: rcamera module formating
REVIEWED: `core_3d_camera_example`
2023-03-12 19:28:42 +01:00
Ray
b436c8d7e5
ADDED: Security check for emscripten_run_script() #2954
2023-03-12 13:48:11 +01:00
Ray
ee3e40c663
Update rcore.c
2023-03-12 13:47:02 +01:00
Ray
4f7b5ff59f
WARNING: REMOVED: UnloadModelKeepMeshes()
2023-03-07 20:40:45 +01:00
Ray
ab1e246367
REVIEWED: Data types validation
2023-03-07 20:33:45 +01:00
Ray
ae53600d31
WARNING: REMOVED: Multichannel audio support API
2023-03-07 19:54:53 +01:00
Ray
1b873b028f
WARNING: REMOVED: Multichannel audio support API
...
It was quite restrictive and hacky implementation, just load multiple types same sound to play multiple instances.
2023-03-07 19:48:47 +01:00
Sid K
0b18882a94
fix(build): Fix DLL build on Windows ( #2951 )
...
Changes the DLL export condition to apply to platform WIN32 instead of
compiler MSVC
2023-03-06 21:10:18 +01:00
Ray
8f7e2cd179
Replace TABS by 4 spaces
2023-03-06 15:05:57 +01:00
Ray
614e0518a7
Remove trailing spaces
2023-03-06 14:58:58 +01:00
Ray
cf1ebada0e
Tweak WindowDropCallback() #2943
2023-03-06 13:15:13 +01:00
Ray
aae7ab64c7
Update raudio.c
2023-03-06 13:00:30 +01:00
Ray
68ee0bb8dd
ADDED: QOA music streaming (with auxiliar lib)
...
Some format tweaks
2023-03-06 12:33:49 +01:00
Ray
d3f5bc4043
REVIEWED: GetWindowHandle() #2950
2023-03-05 20:06:45 +01:00
Ray
f4f6e25340
Support QOA audio file format by default
2023-03-05 14:07:02 +01:00
Ray
9614d3353b
REVIEWED: QOA audio file export
2023-03-05 13:49:18 +01:00
Ray
ab14ad5d75
Close issue #2949
2023-03-05 11:26:37 +01:00
Ray
0eeb499288
Update qoa.h
2023-03-05 11:17:47 +01:00
Ray
5492f52adc
Change default threading model for COM objects
...
It shouldn't matter much but it could avoid some conflicts with other libraries in the future (like `tinyfiledialogs`).
2023-03-05 00:09:56 +01:00
Ray
1611cd54e7
REVIEWED: GetWindowHandle() #2938
2023-03-04 18:56:04 +01:00
Antonis Geralis
394b31faff
Add GL_MIN GL_MAX blending equations ( #2945 )
2023-02-26 12:01:42 +01:00
Ray
73c9f72c52
Update rtextures.c
2023-02-25 22:32:50 +01:00
Ray
7fd2bf1a32
Minimal tweak
2023-02-25 01:07:52 +01:00
Ray
215eb967e8
Update rcore.c
2023-02-24 18:31:16 +01:00
Ray
cb2ba3675c
REVIEWED: rlUnloadFramebuffer() #2937
2023-02-24 16:19:25 +01:00
Ray
ca98a84d68
Update rtext.c
2023-02-24 15:27:25 +01:00
Ray
d5a31168ce
REVIEWED: Data validation
2023-02-23 18:08:15 +01:00
Ray
d652b95fbf
ADDED: Security checks
2023-02-22 17:28:25 +01:00
Ray
153470d605
REVIEWED: GenMeshTangents(), avoid crash on missing texcoords data #2927
2023-02-21 23:55:55 +01:00
Ray
b4d824d6fc
REVIEWED: GetMonitorWidth() and GetMonitorHeight() #2934
2023-02-21 23:10:03 +01:00
Ray
8169d0eab2
REVIEWED: IsWindowFocused() to consider Android App state #2935
2023-02-21 23:01:23 +01:00
Ray
b2926b2d28
Update rtextures.c
2023-02-21 13:20:52 +01:00
Ray
3cade2a1a0
REVIEWED: IsImageReady() and IsTexureReady()
...
Reordered some functions to avoid config.h issues when disabling some features.
2023-02-21 13:20:04 +01:00
Ray
bcae065c88
REVIEWED: IsShaderReady()
2023-02-21 13:15:11 +01:00
Ray
1347a15539
ADDED: SetWindowIcons() to set multiple icon image sizes
2023-02-21 13:14:51 +01:00
hkc
d26a56d4e1
Added mixed audio processor ( #2929 )
...
* Use RL_QUADS/RL_TRIANGLES for single-pixel drawing
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
* [rtextures] Fixed scaling down in ImageTextEx
Closes #2755
* Added global audio processor
* Renamed struct member to follow naming conventions
* Added example for AttachAudioMixedProcessor
2023-02-20 11:13:24 +01:00
Ray
47dd842e81
Minor format tweaks
2023-02-15 18:11:46 +01:00
Ray
f594f14510
Reviewed typo and formating
2023-02-15 18:01:42 +01:00
Ray
2766835ed4
REPLACE: TABS by 4 spaces
2023-02-15 17:36:31 +01:00
Jeffery Myers
9eaed07b77
Make the oribital camera work like it used to (it is not just a copy of third person) ( #2926 )
2023-02-15 17:17:00 +01:00
Ray
beb44f1dac
Avoid centering mouse when program launches
2023-02-15 13:11:26 +01:00
Ray
903d85e323
Make sure window position always inits in the middle of the current monitor
2023-02-15 12:53:41 +01:00
Ray
5dedb27ce0
REVIEWED: Issue with camera jump on first frame
2023-02-14 22:51:34 +01:00
veins1
ec95aa2e04
Move camera after rotation ( #2923 )
...
Moving camera after rotation is set to avoid 1 frame delay in movement direction
2023-02-14 22:29:32 +01:00
Ray
e843be7ea5
ADDED: rcamera dependencies details
2023-02-14 20:13:13 +01:00
Ray
ea590c44a9
REVIEWED: Camera redesign PR
2023-02-14 20:00:51 +01:00
Crydsch Cube
73989a4981
WIP rcamera redesign vector ( #2563 )
...
* core functionality CAMERA_FREE
* fix example
* add remaining camera modes
* add view bobbing
* view bobbing
* catch curser in SetCameraMode
* adjust examples
* fix compilation on linux
* fix example text_draw_3d
* actually fix text_draw_3d
* Updated camera API
* Improve Vector3RotateByAxisAngle() function
* remove camera.mode dependency from low-level functions
* remove camera.mode from struct
* fixes after rebase
* adjust examples for new UpdateCamera function
* adjust example models_loading_m3d
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-02-14 17:47:21 +01:00
Ray
22287a78c5
Update qoa.h
2023-02-12 13:29:39 +01:00
Ray
96a9b4e1f2
REVIEWED: config.h format and inconsistencies
2023-02-12 13:28:35 +01:00
Ray
21961a786d
REVIEWED: Vertex colors support on M3D loading #2878
2023-02-12 12:10:01 +01:00
Ray
4647441ad8
Update rl_gputex.h
2023-02-12 01:10:54 +01:00
Julio C. Galindo
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
...
* Fixed some grammar mistakes.
* Fixed some typos.
2023-02-09 13:17:47 +01:00
Nikolas
f784961b9c
Enable GetWindowHandle() on macOS ( #2915 )
2023-02-07 22:18:14 +01:00
Ray
e187b693ea
Update raudio.c
2023-02-06 11:02:46 +01:00
star-tek-mb
04ab76b889
zig build: do not use deprecated functions ( #2913 )
2023-02-06 10:28:24 +01:00
Ray
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +01:00
Ray
c91190fc6e
Review QOA sound loading -WIP-
2023-02-05 16:28:04 +01:00
star-tek-mb
ff70a04bf5
update zig build to latest master ( #2910 )
...
also, adds package manager support
2023-02-05 13:03:03 +01:00
Ray
60d0ab418a
some typos review
2023-02-05 11:44:12 +01:00
HKrogstie
8c50da167d
fix DrawMesh using SHADER_LOC_COLOR_SPECULAR as a material map ( #2908 ) ( #2909 )
2023-02-05 11:04:30 +01:00
Ray
589892af07
Support QOA audio format on ExportWave() -WIP-
2023-02-04 20:27:47 +01:00
Ray
901c4553d2
ADDED: QOA audio format support -WIP-
2023-02-04 20:20:21 +01:00
Ray
43e45cbb81
Replace TABS by 4 spaces
2023-02-04 20:19:51 +01:00
Ray
7914332c40
Update qoi.h
2023-02-03 14:54:28 +01:00
Ian McFarlane
b9e49cdca6
rcamera: move y clamp to before 3d projection ( #2905 )
2023-02-03 14:52:15 +01:00
Ray
d827a65e59
Update external libraries
...
Switch to official `stb_vorbis.c` instead of using an outdated fork
2023-02-01 11:45:42 +01:00
Ray
a151cbd37a
ADDED: Vector2LineAngle() #2887
...
REVIEWED: `Vector2Angle()`
2023-02-01 11:18:55 +01:00
Nikolas
89171a2608
Add WASM support for Zig build ( #2901 )
...
* Add WASM support for Zig build
* Improve Web example building
* Remove emscript example building with Zig again
* Readd windows emscripten variables
2023-02-01 11:09:03 +01:00
Ray
c94c666d04
Review formatting for M3D loading vertex colors
2023-01-30 17:05:12 +01:00
Uneven Prankster
929a46cbab
[models] Fix M3D vertex color import. ( #2878 )
...
* Fix vertex color import for .m3d
* Only load vertex colors when color map and/or materials are present
* Only execute when color array is present
---------
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-30 17:00:39 +01:00
Dor Shapira
df5a736c00
fix typo ( #2899 )
...
patrix=>matrix
2023-01-28 19:26:41 +01:00
Rob Loach
7fff1ba0b0
ADDED: IsModelReady(), IsMaterialReady(), IsTextureReady(), IsRenderTextureReady() ( #2895 )
2023-01-28 12:13:09 +01:00
Rob Loach
83ff7b2466
ADDED: IsShaderReady(), IsImageReady(), IsFontReady(), IsWaveReady(), IsSoundReady(), IsMusicReady() ( #2892 )
...
These IsReady() functions provide a method in order to verify whether or not the object was loaded successfully. They're useful to make sure the assets are there prior to using them.
2023-01-27 19:24:03 +01:00
Jeffery Myers
81ca2f0bf3
Fix warnings and bad project settings for 4.5 release ( #2894 )
2023-01-27 19:20:42 +01:00
Ray
0125790801
Update rmodels.c
2023-01-25 23:13:17 +01:00
Jeffery Myers
63da7cdec6
add include guards on config.h ( #2888 )
2023-01-25 22:26:03 +01:00
Antonis Geralis
4adba0d3c3
Add wayland support ( #2883 )
2023-01-25 22:25:25 +01:00
Dor Shapira
7cdffcec52
fixed typo ( #2886 )
...
pilepine=>pipeline
chosing=>choosing
additioanlly=>additionally
attachmment=>attachment
initialize=>inititialize
Binded=>Bound
lattest=>latest
hi @raysan5, I ran rlgl.h into some "typo checking" program(basically a JetBrains IDE), and here are all the things that the program was able to spot and fix. as my English isn't really well I would like it if you could check that I didn't make any mistakes in the typo fixing...
2023-01-24 23:43:09 +01:00
Ray
f68bb8c707
REVIEWED: rlGenTextureMipmaps(), GPU generation only
2023-01-24 17:17:25 +01:00
Ray
5149da5719
Merge branch 'master' of https://github.com/raysan5/raylib
2023-01-24 17:16:44 +01:00
Ray
5b3c5e1a16
REVIEWED: ProcessMaterialsOBJ() available when required
2023-01-24 17:16:35 +01:00
PencilAmazing
542ef8904a
[models] Load bone names from IQM file if available ( #2882 )
...
* Load bone names from IQM file if available
* Formatting and default bone name
2023-01-23 19:55:02 +01:00
Rob Loach
4706891cae
Add RAYLIB_VERSION numbers to raylib.h ( #2856 )
...
Ran into an issue in raylib-cpp where a user was using raylib 4.5-dev, even though the library currently only targets 4.2. With having RAYLIB_VERSION_MAJOR and RAYLIB_VERSION_MINOR, we will be able to target different versions of raylib in different ways, via C preprocessor conditionals.
For example:
``` c
newColor = ColorTint(BLUE, RED);
TraceLog(LOG_INFO, "The color should be tinted, but this isn't supported in ryalib <= 4.2");
```
2023-01-22 15:29:29 +01:00
Rob Loach
d8af76f67c
Fix to use TRACELOG() instead of TraceLog() for internal modules ( #2881 )
...
There were a few raylib modules that continued to use TraceLog() instead of the TRACELOG() macro. This change ensures that all the internal raylib modules use the TRACELOG() pattern consistently.
2023-01-22 11:10:38 +01:00
Ray
78ae3b38a6
minor format tweak
2023-01-21 19:31:47 +01:00
Antonis Geralis
e539aad118
Fix android sound issue #2118 ( #2875 )
2023-01-21 18:52:31 +01:00
Uneven Prankster
19715546b3
Stub out rlCubemapParameters if under GL 1.1. ( #2876 )
...
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-21 18:51:33 +01:00
Jeffery Myers
c649bec26c
Have LoadMaterials call the same code that OBJ loader does so that we can read MTL files ( #2872 )
2023-01-20 16:13:19 +01:00
Jeffery Myers
edaca16d7c
Fix warnings in raylib project from MSVC ( #2871 )
2023-01-20 16:05:19 +01:00
Jeffery Myers
116603e61c
don't try to free a void* buffer as if it's a cgltf_data structure ( #2867 )
2023-01-19 21:21:05 +01:00
Uneven Prankster
76468bb8d8
Add rlCubemapParameters to rlgl.h ( #2862 )
...
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2023-01-19 20:53:30 +01:00
Daijiro Fukuda
c6376acfc4
Set initial window position for display-sized fullscreen ( #2742 )
2023-01-10 12:45:53 +01:00
Ray
3028bffd4c
Minor tweaks
2023-01-10 12:38:21 +01:00
Go Watanabe
f549f67be9
OpenGLES 2.0 support on PLATFORM_DESKTOP ( #2840 )
...
* OpenGLES 2.0 support on PLATFORM_DESKTOP
* exmples raylib_opengl_interop desktop GLES2 support
* rename gles2.h -> glad_gles2.h
2023-01-10 12:34:06 +01:00
Ray
6dd1d2d931
ADDED: Required define on Linux #2729
2023-01-10 12:20:45 +01:00
Ray
bba6ae5622
RENAME: type to projection #2851
2023-01-10 12:16:42 +01:00
Ray
ce8000ee7e
REVIEWED: GetClipboardText() on PLATFORM_WEB
2023-01-04 20:13:44 +01:00
Ray
89755e52bf
REVIEWED: rLoadTextureDepth() fixed issue
2023-01-04 17:35:51 +01:00
Ray
73234d2a28
Avoid trying to setup uniform for invalid locations
2023-01-03 17:44:06 +01:00
Ray
d3c1a04983
REVIEWED: GLTF animations support #2844
2023-01-02 20:46:33 +01:00
Charles
f2e3d6eca7
[models] Add GLTF animation support ( #2844 )
...
* add GLTF animation support
* use correct index when allocating animVertices and animNormals
* early exit LoadModelAnimationsGLTF if the gtlf file fails to parse
* update models/models_loading_gltf.c to play gltf animation
Updated the .blend file to use weights rather than bone parents so it
fits into the framework. Exported with weights to the .glb file.
* fix order of operations for bone scale in UpdateModelAnimation
* minor doc cleanup and improvements
* fix formatting
* fix float formatting
* fix brace alignment and replace asserts with log messages
2023-01-02 20:23:48 +01:00
Ray
62f63f9e48
REVIEWED: Avoid possible gamepad index as -1 #2839
...
WARNING: It could require further review of `GamepadThread()` function where `js_event gamepadEvent.number` detecting current pressed button could generate a missmatch with index 0 (reserved for button unknow). Or maybe `0` could just be `GAMEPAD_BUTTON_NONE`? In that case, consistency with other inputs should be carefully considered...
2023-01-02 17:06:52 +01:00
Ray
0ccc1d3686
Update year to 2023
2023-01-01 19:07:58 +01:00
Ray
e2a8066fca
Update year to 2023
2023-01-01 16:07:51 +01:00
Ray
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
Wytek01
713e26332f
Update year to 2023 ( #2846 )
...
* Update year to 2023
* Update raylib.h year to 2023
2023-01-01 12:55:49 +01:00
Ray
03cc540d5f
Minor tweak
2022-12-18 18:00:21 +01:00
Ray
d7f7c94c4d
REVIEWED: Vector2Angle()
2022-12-18 18:00:14 +01:00
Ray
72b9f3c5de
Minor tweaks
2022-12-17 12:15:19 +01:00
Antonis Geralis
d1a104bba4
Fix vector2angle ( #2832 )
...
* Fix vector2angle
* Fix ;
* use acosf
* need a break
* add comments
2022-12-17 12:13:40 +01:00
Ray
c2b56c583a
Merge branch 'master' of https://github.com/raysan5/raylib
2022-12-14 13:00:29 +01:00
Ray
619331f4a7
REVIEWED: Issue with depth textures on WebGL #2824
2022-12-14 12:57:39 +01:00
Alexander Heinrich
3419aef677
Fix Vector2Angle() ( #2829 )
...
With this fix the function still returns negative values, which is
wrong. But we keep this behaviour to maintain backwards compatibility.
2022-12-13 18:59:00 +01:00
Ray
2c9d116a5c
ADDED: ColorTint(), ColorContrast()
2022-12-07 12:52:42 +01:00
Ray
f1368c36dd
ADDED: ColorBrightness()
2022-12-05 00:24:55 +01:00
Ray
4de64f5750
Expose OpenGL blending mode factors and functions/equations
2022-12-04 13:22:37 +01:00
Ray
5b5dff3f9e
format tweak
2022-12-02 11:59:54 +01:00
Hristo Iliev
387c060006
Fix an issue when compiling for web ( #2820 )
...
It would try to use the glfw on the system but we're cross-compiling for web where the implementation is provided by emscripten's team
2022-11-30 10:36:01 +01:00
Ray
0b6d4b376f
REVIEWED: Image fileformat support: PIC, PNM
2022-11-29 17:28:23 +01:00
Ray
d241ee8516
ADDED: Optional support for PNM images (.ppm, .pgm)
2022-11-29 10:58:27 +01:00
Ray
2edf5a9584
REVIEWED: Issue with shader linkage
2022-11-29 10:45:10 +01:00
jtainer
50a716c0d9
Updated rcore.c, renamed 'time' to 'nanoSeconds' ( #2816 )
...
* Updated rcore.c, renamed 'time' to 'time_nsec'
When PLATFORM_ANDROID, PLATFORM_RPI or PLATFORM_DRM were defined, there is a compilation error to redefinition of the variable 'time', so the second instance of 'time' was changed to 'time_nsec' which both fixes the name collision and more accurately describes what that variable represents.
* Renamed 'time_nsec' to 'nanoSeconds'
2022-11-29 00:46:10 +01:00
Daijiro Fukuda
66a2cdee40
Fix array out of range ( #2814 )
...
This breaks other values of the struct.
2022-11-28 22:35:44 +01:00
Ray
fc5894e734
REVIEWED: Some compilation warnings (for strict rules)
2022-11-28 14:16:59 +01:00
Antonis Geralis
2fd6d7e8c0
Use const for pointer float array ( #2807 )
...
* Use const for pointer float array
* missed a definition
2022-11-24 00:58:56 +01:00
Antonis Geralis
2c77b31e30
Correct types for rlBindImageTexture ( #2808 )
2022-11-24 00:58:31 +01:00
Ray
c0010105c2
REVIEWED: UnloadDirectoryFiles()
2022-11-22 17:09:39 +01:00
Ray
f6558fe6e0
Minor tweaks
2022-11-22 01:02:54 +01:00
Ray
e6306e5e76
REVIEWED: rlCullFace() -> rlSetCullFace()
...
Reviewed formating to follow raylib coding conventions.
2022-11-15 12:34:01 +01:00
jtainer
2761aa40dd
Added function rlCullFace ( #2797 )
...
rlCullFace sets the face culling mode to RL_FRONT or RL_BACK which correspond to GL_FRONT and GL_BACK respectively.
2022-11-15 12:30:32 +01:00
Pere001
c8fd93d356
Warning on GetRandomValue range limit ( #2800 )
...
Added a comment explaining the range limitations of GetRandomValue.
Added a run-time warning TRACELOG when GetRandomValue is called with an invalid range.
2022-11-15 12:29:19 +01:00
Ray
fadc29d811
WARNING: REMOVED: DrawCubeTexture(), DrawCubeTextureRec()
...
Those two functions have been moved to a new example: `models_draw_cube_texture`. The reasons for this decision:
- Function inflexibility: Many users with the need to draw a textured cube could need to customize the texture applied to every face, that function did not allow that kind of functionality.
- rlgl functionality exposure: The implementation exposed will teach users how to implement custom textured triangles drawing.
2022-11-15 12:16:28 +01:00
Ray
025db8f227
Merge branch 'master' of https://github.com/raysan5/raylib
2022-11-10 12:03:26 +01:00
Ray
31edd13a72
Minor formating tweaks
2022-11-10 12:03:17 +01:00
Julianiolo
82e0644195
Fix Makefile emscripten path ( #2785 )
2022-11-10 11:51:51 +01:00
Ray
3888299bf5
WARNING: REMOVED: DrawTextureTiled()
...
This function implementation has been moved to the related example. Current implementation can be probably customized depending on user needs.
2022-11-10 10:17:37 +01:00
Ray
7f68c65406
WARNING: REMOVED: DrawTextureQuad()
...
This function can be easely replicated using `DrawtexturePro()` and actually it was doing some assumptions not transparent to the user. Even the function name was confusing. No example was available for it and actually noone requested one example.
2022-11-10 10:11:28 +01:00
Ray
84a2a88572
WARNING: REMOVED: DrawTexturePoly()
...
Function moved to `examples/textures/textures_polygon.c`, so users can learn from the implementation and create custom variants as required.
2022-11-10 10:05:11 +01:00
Martin Wickham
311a57f9fc
Add frameworks needed on macos ( #2793 )
2022-11-09 07:40:59 +01:00
Ray
ca6f58eed1
Update rcore.c
2022-11-05 00:31:13 +01:00
RGDTAB
dbdfad7ace
Fix ExportDataAsCode() data types ( #2787 )
2022-11-04 20:39:04 +01:00
Ray
28e8b2add3
REVIEWED: Issue with OpenURL()
2022-10-26 18:04:20 +02:00
nobytesgiven
c4abf68351
fixed blur issue on opaque pictures & added example ( #2775 )
...
Co-authored-by: nobytesgiven <nobytesgiven@users.noreply.github.com>
2022-10-26 09:11:14 +02:00
nobytesgiven
dbecb95024
Added Box and Gaussian blurring ( #2770 )
...
* Added Box and Gaussian blurring
* Removed dependence of gaussian blur to box blur & Fixed precision errors
Co-authored-by: nobytesgiven <nobytesgiven@users.noreply.github.com>
2022-10-25 17:56:06 +02:00
nobytesgiven
e5d332dea2
Fix bezier line breaking #2735 ( #2767 )
...
* Fixed bezier line breaking #2735
* converted tabs to spaces
* typo
* Changed doubles to floats
* removed heap allocations\
Co-authored-by: nobytesgiven <nobytesgiven@users.noreply.github.com>
2022-10-24 16:35:47 +02:00
Ray
d5cd5ebd80
Update to latest miniaudio (dev)
2022-10-24 13:37:20 +02:00
InKryption
40cf84e7e5
build.zig: let user decide how to set build mode + fix linker warning ( #2763 )
...
* build.zig: let user decide how to set build mode
This should delegate the responsibility of calling `standardReleaseOptions` and setting the build mode of the `*LibExeObjStep` step to the caller, especially since this might not be the process by which one wants to determine the build mode.
Also changes hides `getSrcDir` to enforce usage of `srcdir`, and asserts that the file is in fact inside a directory.
* build.zig: set root_src param to `null`
Supplying the header file as the root source here appears to cause a linker warning of the form:
```
LLD Link... warning(link): unexpected LLD stderr:
ld.lld: warning: {build_root}/zig-cache/o/{hash}/libraylib.a: archive member '{build_root}/zig-cache/o/{hash}/raylib.o' is neither ET_REL nor LLVM bitcode
```
Passing `null` instead fixes it.
2022-10-20 18:33:12 +02:00
ianband
7e7939e1ad
Add DrawCapsule(Wires) ( #2761 )
...
* Add DrawCapsule & DrawCapsuleWires
* Add DrawCapsule & DrawCapsuleWires to example
Co-authored-by: Ian Band <ian.r.band@gmail.com>
2022-10-17 11:36:53 +02:00
hkc
0b69bc28c6
Fix ImageTextEx and ImageDrawTextEx scaling ( #2756 )
...
* Use RL_QUADS/RL_TRIANGLES for single-pixel drawing
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
* [rtextures] Fixed scaling down in ImageTextEx
Closes #2755
2022-10-14 17:43:12 +02:00
Ray
e61639f6fc
ADDED: GenImageText()
...
Probably useless but interesting for education. It generated a grayscale image directly from text data.
2022-10-14 10:51:43 +02:00
CrezyDud
aa67f7c39a
Fix & Simplify .vox signature check ( #2752 )
...
and make version check be only 150 not over 150
2022-10-12 17:14:18 +02:00
hkc
8ebe62b4dd
Use RL_QUADS/RL_TRIANGLES for single-pixel drawing ( #2750 )
...
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
2022-10-11 18:45:34 +02:00
Dor Shapira
8025b052b3
fixing typo ( #2748 )
2022-10-11 11:20:29 +02:00
Ray
38025362ee
Update version to raylib 4.5-dev to avoid confusions with 4.2
2022-10-07 16:22:44 +02:00
Ray
7a15861d44
Update rlgl.h
2022-10-06 00:56:18 +02:00
Ray
26969c2c38
Added BLEND_CUSTOM_SEPARATE #2741
2022-10-05 13:57:38 +02:00
Ray
25d846aa9a
Avoid early return calls
2022-10-05 13:34:19 +02:00
Ray
9017be3259
Reviewed latest PR formating and variables naming #2741
2022-10-05 13:29:34 +02:00
凌溢狐
2d88958d35
Add rlSetBlendFactorsSeparate and custom blend mode modification checks ( #2741 )
2022-10-05 13:05:44 +02:00
Ray
2e26cf48e8
Merge branch 'master' of https://github.com/raysan5/raylib
2022-10-03 00:07:34 +02:00
Ray
7459d906de
Update rtext.c
2022-10-03 00:07:22 +02:00
_Tradam
62d228346b
Update build.zig to work with last GLFW update ( #2737 )
2022-10-02 20:29:48 +02:00
veins1
2872b2fff5
Clear PCM buffer state when closing audio device ( #2736 )
...
Fix for #2714
2022-10-02 19:30:26 +02:00
Ray
33e7f7cc59
WARNING: DrawLineBezier() implementation needs review #2721
2022-10-02 11:11:13 +02:00
Rob Loach
0daaaddeef
Fix Gestures to use GetTime() if it's available ( #2733 )
2022-10-02 10:47:17 +02:00
Random
03f5fce672
removed glfwSetWindowPos on InitWindow ( #2732 )
...
* removed glfwSetWindowPos on InitWindow
* removed execute permission from CMakeLists
2022-10-02 10:46:33 +02:00
Ray
178a356cb4
minor tweaks
2022-09-30 23:07:29 +02:00
Random
f14955512f
fix issue #2728 ( #2731 )
...
* fix issue #2728
* updated gamecontrollerdb: fixes GLFW warning due to invalid entry
2022-09-30 10:09:49 +02:00
Ray
45da03df23
Reviewed monitor checking order
2022-09-29 12:00:20 +02:00
Ray
4fe6f885f7
Update gamepad mappings with latest gamecontrollerdb, fix #2725
2022-09-29 11:23:25 +02:00
Ray
357f782f4e
Merge branch 'master' of https://github.com/raysan5/raylib
2022-09-29 11:08:02 +02:00
Ray
0ced04f0df
Fix #2722
2022-09-29 11:08:00 +02:00
Dor Shapira
587e61def9
fixing new typoes ( #2727 )
2022-09-28 20:04:59 +02:00
Dor Shapira
5c404c79da
Update raylib.h ( #2726 )
2022-09-28 20:04:41 +02:00
Michael Scherbakow
8f88c61bdf
update build.zig ( #2720 )
...
zig `master` now enforces to use addIncludePath instead of addIncludeDir
2022-09-27 01:27:22 +02:00
bXi
e9ca38fafa
Clarified working of ImageDrawCircle and ImageDrawCircleV ( #2719 )
2022-09-26 12:24:10 +02:00
Ray
7ab056b6ef
REVIEWED: GeneshHeightmap(), fix #2716
2022-09-25 15:41:49 +02:00
Ray
2ef0b064e5
Fix isssue #2718
2022-09-25 14:09:28 +02:00
Ray
ea87491a82
ADDED: Support CAPS/NUM lock keys registering if locked
2022-09-25 00:14:59 +02:00
Ray
810a0330ab
WARNING: Several changes on UTF-8/Codepoints API
...
- ADDED: `GetCodepointPrevious()`
- RENAMED: `GetCodepoint()` -> `GetCodepointNext()`, actually, reimplemented
- `GetCodepoint()` has been kept for the moment, for compatibility and also because implementation is different
- RENAMED: `TextCodepointsToUTF8()` to `LoadUTF8()`, simpler name and more aligned with raylib conventions (functions loading memory start with Load*()), parameters should be descriptive of functionailty.
- ADDED: `UnloadUTF8()`, aligned with `LoadUTF8()` to avoid allocators issues.
2022-09-22 20:35:55 +02:00
Ray
4b1d4b4f6b
Update rcore.c
2022-09-22 20:30:02 +02:00
Ray
4311ffc9e1
REVIEWED: New functions coding conventions
2022-09-19 18:47:16 +02:00
Rob Loach
2093fdcc53
Added: ImageDrawCircleLines, ImageDrawCircleLinesV ( #2713 )
...
This adds `ImageDrawCircleLines()` and `ImageDrawCircleLinesV()` to draw outlines of circles, and updates `ImageDrawCircle()` draw a filled circle to match the effect of `DrawCircle()` and `DrawCircleLines()`.
2022-09-19 18:41:17 +02:00
Ray
5530a3ceb8
REVIEWED: ScanDirectoryFilesRecursively(), fix #2704
2022-09-19 18:20:36 +02:00
Ray
6e8f3b0f45
Update rlgl.h
2022-09-19 10:35:34 +02:00
Ray
12e8cef9cf
REMOVED: Mipmaps software generation for OpenGL 1.1
...
As generation is done in software, it's up to the user to do it. `ImageMipmaps()` is already provided for reference.
2022-09-19 10:31:55 +02:00
Denis Pobedrya
27781a4767
Remove touch points on touch up events on Android ( #2711 )
...
Fixes #2683
Remove elements from touch point related arrays when touch up and
similar events are processed. This makes GetTouchPointCount() always
report the actual count of touch points, and all positions returned by
GetTouchPosition() correspond to positions of currently happening
touches.
2022-09-18 23:01:10 +02:00
Nikolas
42ecd72547
[rlgl] Check for extensions before enabling them ( #2706 )
...
* [rlgl] Check for extensions before enabling them
* Shift to glad on macOS
* #undef CORE_OPENGL_33
* Remove version hack and fix ASTC compression assumption
* Remove loader from glad
* Use GLAD_MALLOC/FREE instead of malloc/free
* More explicit extension checking
2022-09-18 21:08:51 +02:00
Denis Pobedrya
8f597b3cc3
Basic gamepad support for Android ( #2709 )
...
Currently assumes a single gamepad, has no code specific to gamepad
detection (gamepad is "detected" when an event related to gamepad
arrives). Also assumes that all gamepads look roughly like an xbox/ps
controller. Both assumptions are not strictly true, but an
implementation like that probably covers 85% of usecases.
Also it doesn't update previousButtonState so functions
IsGamepadButtonPressed() and IsGamepadButtonReleased() don't work, but
they didn't work previously on Android anyway, and they are flaky on
desktop as they are now, so the mechanism for these two functions
probably should be reworked anyway.
It's certainly an improvement compared to the previous android gamepad
handling code, which put gamepad events into touch related structs.
2022-09-18 19:58:52 +02:00
Denis Pobedrya
ff25402f68
Fix viewport scaling bug on android after context rebind ( #2703 )
...
On android after rebinding context (which happens when you minimize and
navigate back to an app, or when you turn a screen off and back on)
there's a bug that viewport has a wrong scale and part of it is off
screen.
The change fixes it on devices I tried, but the solution feels hacky to
me. However when I attempted instead to call SetupViewport() again which
feels like a more proper solution, it didn't fix it.
2022-09-18 11:28:55 +02:00
Denis Pobedrya
8e57c8ace3
Fix touchscreen input related functions on Android ( #2702 )
...
Fix display -> screen coordinate conversion for android platform and
move it to the platform event handling code, simplifying
GetTouchPosition() function implementation.
Co-authored-by: Denis Pobedrya <denis.pobedrya@gmail.com>
2022-09-17 23:15:11 +02:00
Ray
c328f09efc
Move compressed textures loading to a separate self-contained library
2022-09-17 19:26:23 +02:00
Ray
cb9b8f73c0
ADDED: GenImagePerlinNoise()
2022-09-17 13:39:49 +02:00
Nikolas
a12ddacb7b
Enable DXT compression on __APPLE__ targets ( #2694 )
2022-09-12 12:21:41 +02:00
Ray
853c66baed
REVIEWED: CheckCollisionPointPoly()
2022-09-10 23:56:52 +02:00
Ray
cf24c021a3
WARNING: BREAKING: Reviewed SSBO usage to avoid long long
...
raylib library tries to avoid `long long` usage. Several SSBO functions have been reviewed (including some renames for consistency) to minimize `long long` type usage.
2022-09-09 00:26:47 +02:00
Ray
ac1ffbad1d
REVIEWED: Data type to unsigned
2022-09-07 00:39:38 +02:00
Ray
b09725fa84
REPLACED: rlVertex2i() by rlVertex2f()
2022-09-05 18:45:33 +02:00
Ray
e59442bfab
REMOVED: rlPushMatrix()/rlPopMatrix() from rshapes
...
This simplification will allow the usage of `rshapes` as STANDALONE mode in a future. Only a small set of `rlgl` functions are required and they can be "more" easely replaced if no `rlPushMatrix()`/`rlPopMatrix()` are involved.
More simplification planned for the future, maybe the textures dependencies.
2022-09-05 18:23:25 +02:00
Ray
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
Ray
ad5ffd78d6
REVIEWED: rlgl enums and comments
2022-09-05 11:15:28 +02:00
Ray
0917290e95
REVIEWED: M3D model loading #2688
2022-09-04 18:49:54 +02:00
Ray
f4b4054de5
REVIEWED: CheckCollisionPointPoly()
2022-09-04 10:45:01 +02:00
Jacek
aff98d7f2a
Check collision point polygon ( #2685 )
...
* Update raylib.h
* CheckCollisionPointPolygon()
* typo
2022-09-04 10:39:03 +02:00
Ray
082920eb80
WARNING: RENAMED exported symbol to raylib_version #2671
2022-09-02 21:35:08 +02:00
Ray
de968e3623
WARNING: RENAMED symbol raylibVersion to raylib_version
...
I want to note this is a special symbol exported
2022-09-02 21:32:58 +02:00
Ray
2a798d64a2
Export raylibVersion symbol. Fixes #2671
2022-09-02 21:28:19 +02:00
Ray
fb1037a241
ADDED: Complete support for M3D animations! #2648
2022-09-01 20:46:06 +02:00
Ray
64cca24526
ADDED: RL_TEXTURE_MIPMAP_BIAS_RATIO support to rlTextureParameters() for OpenGL 3.3 #2674
2022-09-01 11:18:22 +02:00
Ray
23cc39a265
Implemented latest .M3D improvements #2648
2022-09-01 10:27:16 +02:00
Ray
0c7ba773ec
Fixed issue with LoadIQM() #2676
2022-09-01 10:14:45 +02:00
Ray
7f5567eec0
Reviewed GLFW compilation requirements on Linux: _GNU_SOURCE
...
Reasons to NOT define `_GNU_SOURCE`:
- access to lots of nonstandard GNU/Linux extension functions
- access to traditional functions which were omitted from the POSIX standard (often for good reason, such as being replaced with better alternatives, or being tied to particular legacy implementations)
- access to low-level functions that cannot be portable, but that you sometimes need for implementing system utilities like mount, ifconfig, etc.
- broken behavior for lots of POSIX-specified functions, where the GNU folks disagreed with the standards committee on how the functions should behave and decided to do their own thing.
2022-08-28 15:48:12 +02:00
Ray
be2328f848
Update Makefile
2022-08-28 15:39:22 +02:00
Ray
568fe42cb1
Reviewed GLFW issue with ppoll() function
2022-08-28 15:37:09 +02:00
Ray
482dbfc52e
Avoid error on implicit-function-declaration
2022-08-28 15:28:57 +02:00
Ray
10ae54379a
Update posix_poll.c
2022-08-28 15:25:34 +02:00
Ray
2236197d49
Update rglfw.c
2022-08-28 15:20:16 +02:00
Ray
9e0e08cba4
WARNING: UPDATED GLFW to latest master branch!
...
WARNING: This could be a BREAKING CHANGE for some platforms! I'm afraid something could be wrong on `rglfw.c` module.
To be able to compile on Windows I had to modify `glfw/src/platform.c` line 74. I couldn't manage to compile without that change, help is welcome!
2022-08-28 14:16:51 +02:00
Ray
f66b1a3136
REVIEWED: Support M3D file loading #2648
2022-08-26 10:04:38 +02:00
Ray
ae745e4fa8
ADDED: -latomic library on Linux (only required for ARM32)
...
This linkage is only required for arm 32bit but I don't know how to detect that specific architecture in the Makefile...
2022-08-22 11:25:35 +02:00
Ray
e92bc8ca4e
REVIEWED: M3D implementation #2648
2022-08-22 11:11:05 +02:00
Rodrigo Escar
aa4111a3b2
Fix PATH for Web target ( #2647 )
2022-08-21 11:45:37 +02:00
Daijiro Fukuda
7bb8ffc29e
Win32: resolve some symbols re-definition of windows.h in glfw3native.h ( #2643 )
...
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h
This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348
This enables to build with a external GLFW containing the
following fix:
* 05f6c13d11
Currently, glfw3native.h of the internal GLFW is customized at
2feea87b61
This fix is compatible with the current customized glfw3native.h.
This fix enables us to update it to the latest and remove the
customization.
* Win32: remove unneeded typedef
2022-08-21 11:44:16 +02:00
Ray
4ee5fdf619
ADDED: Support M3D model file format (meshes and materials) #2648
2022-08-20 14:01:54 +02:00
Ray
35c777ef2c
REVIEWED: Avoid crash on bad data provided
2022-08-18 15:11:23 +02:00
Ray
904c505125
minor tweak
2022-08-18 15:10:40 +02:00
Ray
2ad7967db8
REVIEW: Fix issue with external GLFW missing define #2638
2022-08-17 10:19:52 +02:00
Ray
bf2ad9df5f
P A I N
2022-08-13 22:42:38 +02:00
Ray
092b6f956e
WARNING: REVIEWED: rlCheckRenderBatchLimit()
2022-08-13 22:30:11 +02:00
Ray
48c7f65b77
minor tweaks
2022-08-13 22:28:47 +02:00
HarriP
e0b487c641
Fix string lacking null termination in IsFileExtension ( #2637 )
...
When file extension is longer or equal length compared to buffer holding lowercased string, strncpy does not null terminate the string.
Increased buffer size by 1 to ensure it will always be null-terminated, so that following strcmp does not read out of buffer bounds.
2022-08-13 17:36:29 +02:00
Dan Bechard
56072a631d
Fix Codepoint position truncation ( #2636 )
...
This truncation causes text that spans the zero coord boundary to round differently left or zero vs. right of zero, in turn causing letters to appear squished together. If you actually need the position to be an integer, you should instead `floorf()` the float, rather than doing an integer truncation, but I don't see any reason to convert it to an integer in the first place. Everything else in the equation is a float.
2022-08-13 11:18:57 +02:00
Ray
2c0071c851
Reviewed issue with negative key #2619
2022-08-07 19:19:18 +02:00
veins1
4b2357dc34
Can't alt-tab out of fullscreen window ( #2618 )
2022-08-06 18:42:52 +02:00
Ray
14990209ef
Added comments
2022-08-05 20:01:35 +02:00
veins1
d70e5cd26b
Small simplifications ( #2615 )
2022-08-05 12:16:49 +02:00
veins1
82b76149da
GetMusicTimePlayed bug fix ( #2614 )
...
GetMusicTimePlayed() was calculated using buffered frames, not played frames.
For example: calling LoadMusicStream->UpdateMusicStream->GetMusicTimePlayed would return non-zero value, even though no music was playing.
2022-08-05 08:36:59 +02:00
Ray
72b2d1335a
Update cgltf.h
2022-08-02 19:05:42 +02:00
Ray
d791c1cf64
Update miniaudio.h
2022-08-02 18:50:12 +02:00
Ray
94165a40b9
REMOVED: rmem library from raylib sources
...
Moved to own repo: https://github.com/raylib-extras/rmem
2022-08-02 18:50:08 +02:00
Ray
dd455c626e
Update rlgl.h
2022-08-02 18:33:00 +02:00
Ray
0ce8a8f360
Remove easings.h from raylib/src, moved to examples
2022-08-02 18:31:57 +02:00
Ray
df5514088e
REVIEWED: GetMouseWheelMove(), avoid move scaling on PLATFORM_WEB
...
Tested with latest emscripten 3.1.18
2022-08-02 18:07:44 +02:00
Ray
312fa64b88
Updated raylib resource data (32bit)
2022-08-02 18:06:00 +02:00
Ray
2a2c9e4da8
minor tweaks
2022-08-02 17:25:24 +02:00
Ray
d68ddda766
Added note for multi-threading web compilation
2022-08-02 09:59:12 +02:00
Ray
4492e64cb5
Update version
2022-08-02 09:27:13 +02:00
Ray
ed7548051b
Update version to 4.2
2022-08-02 09:21:03 +02:00
Ray
eb8d14e5b2
Update version to raylib 4.2
2022-08-02 00:36:59 +02:00
Ray
fd191a32ea
Remove trailing spaces
2022-08-02 00:36:31 +02:00
veins1
a6b3c8aa1e
Music doesn't stop looping fix ( #2605 )
...
This PR fixes a bug when music.looping is set to false but the music continues looping.
Also using proper functions to seek to start of an audio file.
Removed old comment.
2022-08-01 20:07:32 +02:00
Ray
2e5fc3d0c2
Avoid cleaning the front buffer to a specific color!
...
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap.
It's up to the user to call `ClearBackground()` if desired
2022-08-01 10:05:40 +02:00
Ray
f596815973
Merge branch 'master' of https://github.com/raysan5/raylib
2022-08-01 09:57:29 +02:00
Ray
7853155f99
REMOVED: Config option: SUPPORT_MOUSE_CURSOR_POINT
2022-08-01 09:57:11 +02:00
BlueStag
f31e4ebb3d
Use American spelling of colourSpace ( #2604 )
2022-07-31 21:09:41 +02:00
veins1
0ef3e4c4d5
Audio looping fix ( #2579 )
...
* WAVs looping fix. But broke other formats looping
* Fix audio looping issue
* Follow raylib formatting
* Cast void* to char* to make MSVC compiler happy
Co-authored-by: Ray <raysan5@gmail.com>
2022-07-29 13:10:59 +02:00
Ray
e4229e1be7
Merge branch 'master' of https://github.com/raysan5/raylib
2022-07-29 12:01:26 +02:00
Ray
bb6b43b7cb
REVIEWED: GenImageFontAtlas() #2556
...
Just reviewed font atlas size estimation, now it considers `fontSize` instead of `chars[i].image.height`, increasing considerably the atlas size estimation.
2022-07-29 12:01:18 +02:00
Nikolay Krasheninnikov
52345fd883
[raymath] Rotation functions returns clockwise rotation matrix, #2595 ( #2599 )
...
Co-authored-by: Nikolai Krasheninnikov <nikolai.krasheninnikov@kronshtadt.ru>
2022-07-29 11:54:37 +02:00
Ray
241d6526b0
Some camera improvements #2563
...
Reviewed some camera functionality:
- Reviewed camera swinging (up-down movement)
- Reviewed camera tilting (left-right movement)
- Make movement independent of frame-rate
- removed unneeded variables
NOTE: Camera rotation has some speed issues on first person when fixed 60 fps are used: it moves too fast. Independent framerate movement is not properly implemented.
2022-07-29 10:04:12 +02:00
Ray
7b05444af8
Review comments and parameter names
2022-07-29 09:45:19 +02:00
Piotr Wierciński
024a803665
rtextures: Improve numerical stability of float multiplication ( #2596 )
...
Dimensions of Rectangle should be casted to int before multiplication,
otherwise there is a risk for underallocation/overallocation of memory.
2022-07-27 17:31:52 +02:00
Piotr Wierciński
5a2f25cc7c
rtextures: Fix ImageFromImage crash ( #2594 )
...
Height of the rectangle can be float, which
may lead to doing extra iteration of loop and
writing out of bounds.
2022-07-26 20:53:36 +02:00
Crydsch
00c7509454
add Vector3RotateByAxisAngle ( #2590 )
2022-07-26 14:27:28 +02:00
hitomi kirigri
64710e6030
fix QuaternionFromMatrix & QuaternionEquals ( #2591 )
...
Co-authored-by: kirigiri hitomi <chenjw@hiscene.com>
2022-07-26 14:25:31 +02:00
Ray
d78177d246
Update year
2022-07-25 00:52:10 +02:00
Ray
39d9d1da42
Update config.h
2022-07-25 00:48:15 +02:00
Julianiolo
6ed1ce0082
fixed build for cygwin ( #2588 )
2022-07-23 12:33:23 +02:00
George Linkovsky
b40696eab6
Fix Vector3ClampValue and Vector2ClampValue ( #2585 )
...
Co-authored-by: Timofffee <timofffee@gmail.com>
2022-07-20 14:46:11 +02:00
Jeffery Myers
e9029d3d00
[CORE] Fix Warnings ( #2582 )
...
* Fix raymath warning with floor to floorf
* signed unsigned missmatches
2022-07-19 06:36:03 +02:00
Ray
49a534b5d4
Removed raudio.h from public header
2022-07-15 19:11:42 +02:00
Ray
cccea34c6f
Update raudio.c
2022-07-15 19:09:14 +02:00
Ray
8aa105fd5b
WARNING: REMOVED: raudio_standalone example
...
Moved to raudio library repo: https://github.com/raysan5/raudio
2022-07-15 19:05:05 +02:00
Ray
6c2c176a99
Added note
2022-07-15 18:53:08 +02:00
Ray
3ebfee5dbc
REVIEWED: UpdateMusicStream() #2228
...
Trying to implement proper looping, independently of frame rate.
2022-07-11 21:19:21 +02:00
Ray
0379b94b7a
Minor tweaks
2022-07-11 21:18:31 +02:00
Ray
b92573e711
Update raudio.c
2022-07-10 23:00:09 +02:00
Ray
2245500245
Added comment about buffer refill issue on looping #2228
2022-07-10 21:39:13 +02:00
Ray
066bd5be87
Reviewed formating
2022-07-10 21:38:33 +02:00
Ray
29a0f60778
REVIEWED: ImageResize() #2572
2022-07-10 21:12:34 +02:00
Ray
05dc300296
Remove unneded TABS
2022-07-09 19:36:33 +02:00
Audi Nugraha
d1aabb3957
Allow DLL creation using TCC ( #2569 )
...
* Fix Undefined Symbol `_ftelli64`
* Add files via upload
* Update raylib.h
* Update raylib.h
2022-07-09 19:33:18 +02:00
Richard Smith
f7e1550eea
Fix fat universal (arm64 + x86_64) macos Github Actions build ( #2567 )
...
* test if clang supports multiple targets
* didnt work, so trying lipo to join separate targets together
* add CUSTOM_LDFLAGS to try to fix arm64 mac dynamic build
* fix sym links
* try again to fix sym links
* auto extract raylib version numbers from makefile
* fix macos missing gnu grep
* dont use custom name for raylib dlls
2022-07-08 07:57:10 +02:00
Ray
7fb7591e4f
Update raylib.h
2022-07-05 13:27:07 +02:00
Ray
e722a8dbef
WARNING: BREAKING: REMOVED: *StorageValue() functions
...
Those functions were platform dependent and user has no control over the file created. They have been removed from raylib and just moved to `core_storage_values` example.
2022-07-05 13:24:14 +02:00
Ray
e0f0a5f663
REMOVED: GenMeshBinormals(), actually, never implemented
2022-07-05 12:55:51 +02:00
Ray
cd53531050
Added some comments
2022-07-05 00:50:23 +02:00
Ray
c6c71fe73c
REVIEWED: DrawMesh() #2511
...
Disable color vertex attribute if not provided by mesh
2022-07-04 17:47:47 +02:00
Ray
f579a3a708
REVIEWED: DecompressData()
2022-07-03 11:11:50 +02:00
Ray
9be186624c
REVIEWED: DrawBillboard*()
2022-06-29 21:56:19 +02:00
Ray
61e691d94f
Remove unneeded rlPushMatrix()
2022-06-27 13:27:16 +02:00
Ray
da5d04061e
Updated PLATFORM_RPI info #2547
2022-06-25 12:10:28 +02:00
Ray
1211047e1c
Removed physac #2543
2022-06-24 11:09:12 +02:00
veclavtalica
63568721f9
fix: precision loss, discard unused ( #2541 )
2022-06-24 10:59:31 +02:00
Hanaxar
6f231ea9ac
Fix signedness in rlBindImageTexture ( #2539 )
...
rlGetGlTextureFormats was expecting unsigned int, corrected variables according to that.
2022-06-23 12:23:14 +02:00
Ray
371aa0fe7f
Update rlgl.h
2022-06-21 20:59:54 +02:00
Ray
5044ce9de3
Reviewed batch buffer overflow #2526
2022-06-21 20:28:50 +02:00
Ray
68c7cc0cc4
minor tweak
2022-06-21 19:53:28 +02:00
Dan Bechard
8bd3ecaa66
Share PCM streaming buffer to reduce dynamic allocations ( #2532 )
2022-06-21 19:26:21 +02:00
Ray
0afa79067b
Revert "Update rlgl.h"
...
This reverts commit 8fe6bfabbf .
2022-06-18 20:47:49 +02:00
Ray
5426262ae6
REVIEWED: IsFileExtension() #2530
...
Max file extension size set to 16
2022-06-18 20:44:15 +02:00
Ray
8fe6bfabbf
Update rlgl.h
2022-06-18 19:24:11 +02:00
Ray
6f3b2a7661
Update rlgl.h
2022-06-18 16:22:47 +02:00
Ray
c1d9489294
Update rcore.c
2022-06-18 16:22:42 +02:00
Ray
8d9c45a08a
tweak
2022-06-17 21:24:59 +02:00
Ray
d4f60f8303
REVIEWED: LoadDroppedFiles(), fixed issues
2022-06-17 12:06:58 +02:00
The Tophat Demon
a6e31cadbd
Changed ExportFontAsCode to use given font's padding. ( #2525 )
2022-06-17 00:12:21 +02:00
Roy Qu
0964353073
fix: round off error in ColorAlphaBlend ( #2524 )
2022-06-16 14:47:46 +02:00
Ray
309ad3e08b
REVIEWED: rlTextureParameters(), reset anisotropy level
2022-06-16 13:07:38 +02:00
Ray
7ed3d870fe
REVIEWED: rlGenTextureMipmaps(), removed filtering setup
2022-06-16 13:07:09 +02:00
Ray
2824aacd5d
Update rcore.c
2022-06-16 13:06:18 +02:00
Pijus
c392f0c16b
Add wrap ( #2522 )
...
* add wrap function
* fixed Wrap function wrapping wrong
2022-06-14 21:28:39 +02:00
Ray
377dcef9f4
Revert "add wrap function ( #2521 )"
...
This reverts commit 81157e4e72 .
2022-06-14 20:53:35 +02:00
Pijus
81157e4e72
add wrap function ( #2521 )
2022-06-14 19:12:37 +02:00
Ray
9998a86625
Update rcore.c
2022-06-12 22:56:24 +02:00
Ray
a2c56b5929
Update rmem.h
2022-06-12 21:22:01 +02:00
Ray
043fa4cba7
Removed extras directory
2022-06-12 21:13:46 +02:00
Ray
ad56a49da8
Reviewed latest PR
2022-06-12 20:51:31 +02:00
Steven Schveighoffer
e1e0bc4266
Add function to read both X and Y mouse scrolling from a trackpad ( #2517 )
...
(GetMouseWheelMoveV).
2022-06-12 17:30:07 +02:00
Ray
875601c4cc
REVIEWED: FilePathList, consider maximum capacity
2022-06-12 11:32:10 +02:00
Ray
b8f67c6285
WARNING: BREAKING: REDESIGNED: Filepath loading API
...
REDESIGNED: `LoadDirectoryFiles()`
ADDED: `LoadDirectoryFilesEx()`
REDESIGNED: `LoadDroppedFiles()`
ADDED: `IsPathFile()`
This BIG BREAKING change simplifies the functions and gives more control to the user:
- A new `struct FilePathList` has been added to avoid exposing complex pointers.
- User is responsible of memory loading/unloading
- Filepaths loading support recursive directories and file extension filters
2022-06-11 23:24:13 +02:00
Ray
b1c413237c
Update config.h
2022-06-11 20:44:47 +02:00
Ray
b9f617aaee
Update raylib.h
2022-06-11 18:13:15 +02:00
Ray
702f2bccfc
REVIEWED: Issue with MOUSE_PASSTROUGH #2516
2022-06-11 18:12:39 +02:00
Ray
b549baa6b7
New feature: support MOUSE_PASSTHROUGH #2516
2022-06-11 12:08:16 +02:00
Ray
4a6e8bb90b
Minor formattng tweak
2022-06-09 21:01:51 +02:00
gulrak
5e3ef42201
GetMonitorWidth()/GetMonitorHeight(): return current video resolution instead max available ( #2514 )
...
* GetMonitorWidth()/GetMonitorHeight(): current video resolution instead max available
* adapt header comment to reflect change
2022-06-09 21:00:04 +02:00
flashback-fx
8c55b40e9e
Unify busy waiting behavior across conditional compilation branches ( #2508 )
...
* Unify busy waiting behavior across conditional compilation branches
* Inline busy waiting code instead of using static function
2022-06-07 21:01:29 +02:00
Ray
dca23cb3ff
RENAMED: BLEND_ALPHA_PREMUL to BLEND_ALPHA_PREMULTIPLY
2022-06-07 18:46:14 +02:00
Ray
bf208decc0
REVIEWED: Compilation warnings
2022-06-07 10:04:24 +02:00
Ray
e6bc401c93
WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()
...
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +02:00
Ray
ebbcc2ffce
WARNING: RENAMED: GetDirectoryFiles() to LoadDirectoryFiles()
...
RENAMED: `ClearDirectoryFiles()` to `UnloadDirectoryFiles()`
2022-06-06 20:30:24 +02:00
Ray
461cdda71e
Reviewed latest PR, variable name
2022-06-06 20:23:14 +02:00
flashback-fx
c11d30bafe
Change WaitTime argument from milliseconds to seconds ( #2506 )
2022-06-06 20:18:37 +02:00
Ray
609d92003b
WARNING: REMOVED raygui from raylib/src/extras
2022-06-06 11:11:39 +02:00
Ray
8da566d6e7
WARNING: Removed physac from raylib sources/examples
...
`physac` is available on its own repo
2022-06-06 11:00:06 +02:00
Ray
865a44adda
REVIEWED: Mouse device support on PLATFORM_DRM #2381
2022-06-05 11:34:23 +02:00
flashback-fx
cda89ebb58
Fix regression that was causing video stuttering ( #2503 )
2022-06-05 11:14:26 +02:00
Ray
6fccfc57a4
Minor tweak
2022-06-02 19:22:42 +02:00
Ray
a28dfbae9f
REVIEWED: Batch limits check #2489
2022-05-31 23:25:21 +02:00
Ray
d0318aac4a
REVIEWED: DrawBillboardPro() #2494
2022-05-30 20:30:16 +02:00
Ray
8294e04749
Correct typo
2022-05-29 18:23:48 +02:00
Ray
fe28aa7c9b
Review log messages
2022-05-29 17:39:10 +02:00
Ray
1f806b555d
ADDED: -latomic linkage, required by miniaudio on ARM 32bit #2452
2022-05-20 17:45:36 +02:00
gulrak
789e504069
use GetWindowScaleDPI to calculate size for rlReadScreenPixels in screenshot/recording ( #2446 )
2022-05-20 17:25:47 +02:00
Jonathan Poncelet
5bdd8f134f
Improved boolean definitions ( #2485 )
2022-05-19 21:21:09 +02:00
Ray
6259dc4121
Revert "UPDATE: DEFLATE algorithm"
...
This reverts commit d786af83fc .
2022-05-18 16:23:52 +02:00
Ray
d786af83fc
UPDATE: DEFLATE algorithm
2022-05-18 13:39:07 +02:00
Ray
5ecc289201
REVIEWED: Support OpneBSD for timming functions
2022-05-16 19:24:16 +02:00
Crydsch
020e903193
Fix lgtm warnings ( #2477 )
...
* Comparison is always true because finalSample >= 1
* Comparison is always false because keyCount >= 0
2022-05-14 15:02:29 +02:00
Ray
db16833d8c
ADDED: EnableEventWaiting() / DisableEventWaiting()
...
Events waiting can be enabled/disabled, it toggles event polling.
2022-05-12 16:51:46 +02:00
Ray
f3aac87422
Some minor tweaks
2022-05-12 16:35:28 +02:00
Rob Loach
c0275df820
Easings: Add function descriptions ( #2471 )
2022-05-12 14:48:51 +02:00
Crydsch
b2c2b5ee21
remove fps requirement for drm connector selection ( #2468 )
2022-05-09 17:12:38 +02:00
Ray
df3f64bfd2
Corrected typo
2022-05-07 18:04:34 +02:00
lazaray
bbc8d39185
Add support for truncating parser input ( #2464 )
...
* Add support for truncating parser input
* Remove RLAPI from implementations in rlgl.h
2022-05-06 20:18:39 +02:00
Daniel Nagy
19f88241ec
Flush stdout after trace messages ( #2465 )
...
This immediately shows log messages when stdout is not connected to a
tty.
2022-05-06 20:15:13 +02:00
Ray
ed29b4eedf
Update utils.c
2022-05-06 00:46:43 +02:00
Ray
d9a30b8480
ADDED: ExportDataAsCode()
2022-05-06 00:14:28 +02:00
Ray
ed2ab55034
Remove line ending spaces
2022-05-05 20:39:14 +02:00
Ray
666aa44a84
Reviewed some comments
2022-05-01 11:14:28 +02:00
Ray
f169530d8f
Update raylib.h
2022-04-29 17:52:22 +02:00
Ray
5c66cc1c9b
Update rcore.c
2022-04-28 17:38:52 +02:00
Leonardo Montagner
3580267479
Fix Issue #2441 ( #2442 )
...
Remove line that caused a memory leak
2022-04-26 12:25:39 +02:00
Ray
a7ce537d32
Check for mouse devices on PLATFORM_DRM
2022-04-26 09:30:20 +02:00
Ray
38a3523f59
REVIEWED: SwapScreenBuffers() for PLATFORM_DRM
...
Avoid calling `abort()`, `LOG_ERROR` already manages it. Code looks cleaner now.
2022-04-25 21:00:17 +02:00
Ray
bdfa256cea
Update rlgl.h
2022-04-25 19:35:23 +02:00
Ray
6e722d416b
Update rcore.c
2022-04-25 19:35:19 +02:00
Ray
e543922055
Review formatting
2022-04-24 17:58:51 +02:00
Juan Carlos González Amestoy
f2c7b0d3bf
- Fix issue #2371 ( #2437 )
2022-04-24 17:05:45 +02:00
Ray
74ca81338e
REDESIGNED: Set rlgl internal framebuffer #2420
2022-04-24 12:37:50 +02:00
Ray
dc553d1996
Update rlgl.h
2022-04-24 12:25:26 +02:00
Ray
f798ee2bc1
Update rlgl.h
2022-04-24 12:19:41 +02:00
Maiko Steeman
ccfac59c60
Fix for vr rendering not taking render target size into account ( #2424 )
2022-04-24 11:48:50 +02:00
Ray
e1ee4b1466
Reviewed MouseScrollCallback() #2371
2022-04-24 11:16:35 +02:00
Ray
d433de7efa
Initialize (reset) input global state #2360
2022-04-24 11:02:50 +02:00
Ray
233cf3970c
Removed bool type from raymath, it broke raylib
2022-04-24 00:38:11 +02:00
Ray
ff95f05386
Update rlgl.h
2022-04-24 00:29:15 +02:00
Ray
47d768c3d6
REVIEWED: ToggleFullscreen()
2022-04-23 23:40:56 +02:00
Ray
015a71fc40
Update raymath.h
2022-04-23 23:39:50 +02:00
Ray
be3ae71aec
Review new functions formatting
2022-04-23 23:24:13 +02:00
saccharineboi
52befa0815
Augment raymath.h with useful functions ( #2428 )
...
* Augment raymath.h with useful functions
* Rename Vector2ClampMagnitude and Vector3ClampMagnitude to Vector2ClampValue and Vector3ClampValue
* Remove Vector3{Up,Down,Left,Right,Forward,Backward}
2022-04-23 23:13:33 +02:00
Anilforextra
a5daee3812
Optimize Some Image Functions. ( #2429 )
2022-04-23 10:51:47 +02:00
Ray
f71cc53bc9
WARNING: RENAMED: some parameters from length to size
...
When referring to byte array SIZE, I find it more clear than length
2022-04-06 20:50:50 +02:00
Ray
1612ba63ab
ADDED: Audio stream processors support -WIP- #2212
...
This feature is still under consideration/testing and it doesn't work properly, at least the Delay Effect processor.
2022-03-30 20:13:02 +02:00
Ray
90fc7c0376
WARNING: BREAKING: REMOVED: GetRayCollisionModel() #2405
2022-03-30 20:11:22 +02:00
Satoshi Tanaka
5abb87a0d2
Fix QuaternionScale ( #2419 )
2022-03-30 19:53:44 +02:00
Ray
9c2d337e99
Update rtext.c
2022-03-29 18:11:33 +02:00
Ray
3bcb19e040
Merge branch 'master' of https://github.com/raysan5/raylib
2022-03-28 11:58:25 +02:00
Ray
cfe7823453
REMOVED: MatrixNormalize() #2412
2022-03-28 11:58:16 +02:00
Ray
c2c1c93041
Corrected typo
2022-03-26 10:42:46 +01:00
Ray
418a595b6f
Corrected typo
2022-03-25 15:39:32 +01:00
Ray
8e28872fe1
Rename audio callback
2022-03-25 10:19:40 +01:00
Ray
381236051f
ADDED: Audio stream input callback #2212 -WIP-
...
WARNING: This addition is based on a PR and it's still under review, not sure if it will be maintained in the future. In general, raylib tries to avoid callbacks usage mechanisms.
2022-03-24 20:49:11 +01:00
Ray
bcd84cd36d
Some code reviews -WIP-
2022-03-24 18:56:53 +01:00
Ray
22c17da4d7
Update to miniaudio 11.8
2022-03-24 18:22:09 +01:00
Ray
cb62cb675f
Minor tweaks const
2022-03-22 18:45:41 +01:00
Ray
0da7830745
REVIEWED: Avoid some float -> double promotions
2022-03-20 12:15:51 +01:00
Jeffery Myers
c65efecf0a
Verify there is enough space in the batch for the npatch geometry. ( #2401 )
2022-03-19 22:26:27 +01:00
João Távora
9ecbc465a9
Fix too many opening parens in src/rtextures.c ( #2398 )
...
This is a tiny change that makes code in src/rtextures.c "fold"
correctly in editors/IDE's by matching the number of opening
parenthesis to closing parenthesis. One of those editors is Emacs ;-)
2022-03-18 12:32:00 +01:00
Rodrigo Escar
9723489ccc
Implements OpenURL() for Android Platform ( #2396 )
2022-03-18 11:41:41 +01:00
Ray
d2119848ed
REVIEWED: OpenURL()
2022-03-14 15:31:37 +01:00
tixvage
3f01b8a93f
Fixed an issue in Makefile when using raygui and physac on unix systems ( #2384 )
...
* Fixed an issue when using raygui and physac on unix systems
hash "#" is single-line comment character in bash so echo ignores #include and #define
* tab fix
2022-03-12 21:30:54 +01:00
Ray
a5a098c97f
Remove space
2022-03-12 21:27:24 +01:00
Komari Spaghetti
8065504aba
Simplify build.zig to not require user to specify raylib path ( #2383 )
...
We can figure out the source file location based on the location of the
build.zig file. No need to require the library user to specify where
raylib is stored.
2022-03-11 19:04:24 +01:00
Anilforextra
cda1324e87
Vector2/Vector3: Add squared distance. ( #2376 )
2022-03-09 20:05:08 +01:00
megagrump
7584ce6f48
Increase atlas size guesstimate; print warnings if atlas size is too small ( #2365 )
2022-03-01 11:26:48 +01:00
Ray
7fa75cb24e
Removed memset()
2022-02-27 22:32:17 +01:00
Ray
ead8003044
Possible fix for #2360
2022-02-25 20:41:18 +01:00
Ray
6e9ec253c8
Support clipboard copy/paste on web
2022-02-20 22:07:52 +01:00
raysan5
937e7b3dd9
REVIEWED: Some functions input parametes that should be const
2022-02-20 20:35:28 +01:00
Antonis Geralis
68bad6986d
make const ( #2348 )
...
* make const
* make const
2022-02-20 20:12:55 +01:00
DavidLyhedDanielsson
761669272f
Fix free camera panning in the wrong direction ( #2347 )
2022-02-20 19:52:13 +01:00
raysan5
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
Antonis Geralis
963de06d08
follow style guide ( #2346 )
...
* follow style guide
* Update rmodels.c
2022-02-17 00:54:21 +01:00
raysan5
4f2bfc5476
Reviewed bug on FindNearestConnectorMode()
2022-02-15 19:38:28 +01:00
Jaedeok Kim
b54e9db764
Optimize Vector2Rotate() function ( #2340 )
2022-02-13 18:43:17 +01:00
megagrump
f40eed5adf
add premultiplied alpha blend mode ( #2342 )
2022-02-13 18:42:24 +01:00
Ray
4bc6e0d7de
Update rtext.c
2022-02-13 10:47:19 +01:00
Ray
9cf170e6e9
Reviewed makefile to use right shell on right platform
2022-02-13 10:47:09 +01:00
raysan5
8c9a0221a4
Update Makefile
2022-02-12 19:38:14 +01:00
raysan5
2f3fc41c33
Allow setting a custom PLATFORM_SHELL
2022-02-12 19:31:27 +01:00
raysan5
6ef6dbff2d
REVIEWED: PLATFORM_OS for PLATFORM_WEB
2022-02-12 19:08:31 +01:00
raysan5
d0008ae8cd
REVIEWED: Issue when compiling for PLATFORM_WEB
2022-02-12 18:06:21 +01:00
Peter0x44
dd15531e25
Properly fix make clean under windows ( #2341 )
...
* Properly fix make clean under sh.exe
* Ensure make clean works properly under Windows if RAYLIB_RELEASE_PATH is modified
2022-02-12 17:59:48 +01:00
raysan5
ddba8478c5
Revert "Reviewed Makefile clean target to use CMD shell on Windows"
...
This reverts commit ab47c6401e .
2022-02-12 17:58:38 +01:00
raysan5
ab47c6401e
Reviewed Makefile clean target to use CMD shell on Windows
...
Tested on the following environments:
- w64devkit.exe
- Windows 10 cmd
- Notepad++ NppExec console
2022-02-12 17:37:12 +01:00
Peter0x44
81cced4d83
Fix make clean target failing when shell is not cmd ( #2338 )
...
GNU make on Windows first tries to find sh.exe on the path,
and will execute build rules using it if it is present.
The make clean target uses the builtin cmd.exe command del, which
won't work under sh.exe
The reason this is not done for the entire Makefile is because it would
break cross-compilation of raylib.
2022-02-10 20:52:34 +01:00
Scribe of the Ziggurat
96452637d9
Add BSD support for zig builds ( #2332 )
...
- Adds a new OS clause to build.zig for the BSDs
- Tested on my FreeBSD box using https://github.com/Not-Nik/raylib-zig
- All demos build and render just fine. Nice !
2022-02-09 08:23:14 +01:00
locriacyber
1e436be51d
Make audio examples compile with external glfw on Linux ( #2329 )
2022-02-05 13:33:05 +01:00
Audi Nugraha
a0895f1a3c
Fix Undefined Symbol _ftelli64 ( #2319 )
2022-02-03 12:00:33 +01:00
megagrump
c54d9cd552
simplify QuaternionInvert ( #2324 )
2022-01-31 09:39:21 +01:00
raysan5
44d3cee5d1
Minor tweak
2022-01-28 21:25:40 +01:00
Ray
d38fe92c3f
RENAMED: GetFileSize() to GetFileLength()
...
`GetFileSize()` conflicts with the infamous `windows.h`
2022-01-28 00:23:28 +01:00
raysan5
0f00c41aad
ADDED: GetFileSize()
2022-01-27 14:07:05 +01:00
raysan5
524bf57b74
Update qoi.h
2022-01-26 16:33:38 +01:00
Siddharth Roy
e5ee69a0f5
Add DrawTextCodepoints ( #2308 )
...
* Add DrawTextCodepoints
* Fixed top comment
2022-01-26 12:55:34 +01:00
Ray
76b6efc827
Support export .jpeg files
2022-01-26 11:30:38 +01:00
raysan5
ebdc34a20e
Update minshell.html
2022-01-25 14:04:55 +01:00
Ray
b422e407e8
Update rtextures.c
2022-01-22 18:42:44 +01:00
Nikolas
5b8b24c0c5
Fix GetApplicationDirectory on macOS ( #2304 )
...
Previously failed to build with an implicit declaration of `_NSGetExecutablePath`.
2022-01-22 17:25:53 +01:00
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