Ray
0e4ebaf89d
REVIEWED: `DrawTexturePro()` to avoid negative dest rec #4316
10 months ago
Ray
e9bbf02b2b
Update rtextures.c
10 months ago
Ray
b807f633d9
REVIEWED: `ColorLerp()` formatting #4310
10 months ago
SusgUY446
ddc523ffbe
[rtextures] add MixColors. a function to mix 2 colors together ( #4310 )
* added MixColors function to mix 2 colors together (Line 1428 raylib.h and Line 4995 in rtextures.c)
* renamed MixColors to ColorLerp (https://github.com/raysan5/raylib/pull/4310#issuecomment-2340121038 )
* changed ColorLerp to be more like other functions
---------
Co-authored-by: CI <-ci@not-real.com>
10 months ago
Bugsia
77172e34db
Fixing GenImagePerlinNoise() being stretched, if Image is not rectangular ( #4276 )
10 months ago
hanaxars
7fab03c0b4
Fix warnings ( #4264 )
Fix following gcc warnings when SVG enabled:
rtextures.c: In function 'LoadImageSvg':
rtextures.c:374:52: warning: pointer targets in passing argument 1 of 'nsvgParse' differ in signedness [-Wpointer-sign]
374 | struct NSVGimage *svgImage = nsvgParse(fileData, "px", 96.0f);
| ^~~~~~~~
| |
| unsigned char *
In file included from rtextures.c:230:
external/nanosvg.h:2952:28: note: expected 'char *' but argument is of type 'unsigned char *'
2952 | NSVGimage* nsvgParse(char* input, const char* units, float dpi)
| ~~~~~~^~~~~
rtextures.c:407:43: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
407 | if (isSvgStringValid && (fileData != fileNameOrString)) UnloadFileData(fileData);
| ^~
rtextures.c: In function 'LoadImageFromMemory':
rtextures.c:614:52: warning: passing argument 1 of 'nsvgParse' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
614 | struct NSVGimage *svgImage = nsvgParse(fileData, "px", 96.0f);
| ^~~~~~~~
external/nanosvg.h:2952:28: note: expected 'char *' but argument is of type 'const unsigned char *'
2952 | NSVGimage* nsvgParse(char* input, const char* units, float dpi)
| ~~~~~~^~~~~
11 months ago
Ray
5af331d708
REVIEWED #4206
11 months ago
Ray
9c2ba3bfb7
REVIEWED: possible overflow... again #4206
11 months ago
Ray
923f983719
REVIEWED: Possible overflow #4206
11 months ago
Jutastre
f5d2f8d545
Warning on invalid image data ( #4179 )
* Adds log warnings on invalid file data
* Separate error on missing file extension
* Changed LOG_ERROR to LOG_WARNING
---------
Co-authored-by: Jutastre <pukarlindgren@gmail.com>
1 year ago
Ray
474ab48f8b
Update rtextures.c
1 year ago
Julianiolo
aa70d32786
Fix a dependance of rtexture to rtext ( #4171 )
1 year ago
Jeffery Myers
9d3bd43c6e
[CORE] Fix MSVC warnings/errors and raymath.h in C++ ( #4125 )
* Update raylib_api.* by CI
* Fix MSVC warnings.
Make raymath.h work in C++ in MSVC
* whitespace cleanup
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Bruno Cabral
b5473d5ffd
[rtextures] advance k in LoadImageColors ( #4120 )
Some formats are not advancing k to get pixels values
1 year ago
Ray
1e1061d5c7
REVIEWED: Formatting, follow raylib coding conventions
1 year ago
Ray
17cbc75aa7
REVIEWED: Formatting, follow raylib coding conventions
1 year ago
Bruno Cabral
6e2661f92d
[rtextures] Created `ImageFromChannel()` ( #4105 )
* created ImageFromChannel
Adds the possibility to extract a specific channel from an image
* naming convention
* example window height
* removed threshold
* removed alpha channel
* channel example organization
* updated channel example image
1 year ago
Ray
385e60dd41
Minor tweaks
1 year ago
Jeffery Myers
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
* Update raylib_api.* by CI
* Fix warnings when building examples in MSVC 2022
* fix auto-format that sneaked in there.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
Le Juez Victor
c2df169847
[rtextures] Adding `ImageDrawLineEx` function ( #4097 )
* adding `ImageDrawLineEx` function
also review other functions for drawing lines in images
* fix `ImageDrawLineV`
1 year ago
Le Juez Victor
7e50270d49
[rtextures] Adding triangle drawing function for images ( #4094 )
* adding triangle drawing function for images
* remove unnecessary check
* fix an iteration mistake
1 year ago
Le Juez Victor
f2344cd089
review color tint functions ( #4015 )
1 year ago
Ray
3abb6d9eaf
REVIEWED: `ColorToInt()` PR
1 year ago
OetkenPurveyorOfCode
9ef29aff9a
[rtextures] Fix Undefined behaviour in ColorToInt ( #3996 )
1 year ago
Ray
763129e96b
Reviewed some warnings
1 year ago
Ray
3caa424ad4
Review formatting
1 year ago
Ray
cf47fbb20b
REVIEWED: `LoadImageRaw()` #3926
1 year ago
Ray
8f24d86c1f
REVIEWED: `LoadImageRaw()` #3926
1 year ago
Ray
e85f245ad4
REVIEWED: Remove final punctuation in code comments
1 year ago
Ray
29ce13b777
Code gardening
- Review formatting
- Improve readability for some functions result return
- Minimize early returns
- Align LoadFileData() to UnloadFileData()
1 year ago
Ray
2754c80596
Added security checks #3924
1 year ago
Ray
a17a81f05b
Review code formating
1 year ago
proberge-dev
b905dafca0
[rtextures] Fix LoadImageFromScreen scaling ( #3881 )
1 year ago
Ray
fea3395fc1
Review formatting
1 year ago
Ray
1e8450665c
ADDED: New function `ColorIsEqual()`
1 year ago
Ray
ed9a6d862b
Update rtextures.c
1 year ago
Ray
7d6e59170b
Update rtextures.c
1 year ago
Gary M
53cfc7c965
assign format to cubemap ( #3823 )
1 year ago
Ray
e42e3188f5
Remove some unneeded line breaks
1 year ago
Jeffery Myers
4cd71a9750
Fix warnings in raylib ( #3793 )
1 year ago
Ray
615ee9d177
REVIEWED: `rlLoadFramebuffer()`
1 year ago
Ray
c57b8d5a6a
REVIEWED: `ImageKernelConvolution()`, formating and warnings
1 year ago
Blockguy24
d2b1256e5c
Fix bounds check for `ImageDrawRectangleRec` ( #3732 )
1 year ago
Lieven Petersen
a820c37ab2
implemented fill color TODO in ImageResizeCanvas() ( #3720 )
1 year ago
Le Juez Victor
746f129bfe
Fix `ImageDrawRectangleRec` ( #3721 )
1 year ago
Alice Nyaa
be0ea89f83
Simplified for loop for some image manip functions ( #3712 )
1 year ago
Ray
b4cb0f3e7d
REVIEWED: `LoadImageAnimFromMemory()` #3704
1 year ago
ubkp
19bdcedf1c
Hide unused warnings from stb_image_resize2.h ( #3708 )
1 year ago
Ray
3f1e59a7cf
Update copyright to 2024
1 year ago
ubkp
fd5e1e6afb
[rtextures] Fix `LoadImageAnimFromMemory()` warning for `fileData` ( #3686 )
* Fix LoadImageAnimFromMemory() warning for fileData
* Add LoadImageAnimFromMemory() to raylib.h
* Fix missing ; on previous commit
1 year ago