Ray
3caa424ad4
Review formatting
2024-04-21 12:29:09 +02:00
Ray
cf47fbb20b
REVIEWED: LoadImageRaw() #3926
2024-04-20 23:58:22 +02:00
Ray
8f24d86c1f
REVIEWED: LoadImageRaw() #3926
2024-04-20 23:44:07 +02:00
Ray
e85f245ad4
REVIEWED: Remove final punctuation in code comments
2024-04-20 20:31:06 +02:00
Ray
29ce13b777
Code gardening
...
- Review formatting
- Improve readability for some functions result return
- Minimize early returns
- Align LoadFileData() to UnloadFileData()
2024-04-20 13:53:13 +02:00
Ray
2754c80596
Added security checks #3924
2024-04-20 13:50:34 +02:00
Ray
a17a81f05b
Review code formating
2024-04-19 21:13:52 +02:00
proberge-dev
b905dafca0
[rtextures] Fix LoadImageFromScreen scaling ( #3881 )
2024-03-26 08:47:25 +01:00
Ray
fea3395fc1
Review formatting
2024-02-29 18:50:44 +01:00
Ray
1e8450665c
ADDED: New function ColorIsEqual()
2024-02-29 18:40:10 +01:00
Ray
ed9a6d862b
Update rtextures.c
2024-02-28 16:27:55 +01:00
Ray
7d6e59170b
Update rtextures.c
2024-02-26 10:49:04 +01:00
Gary M
53cfc7c965
assign format to cubemap ( #3823 )
2024-02-26 10:26:39 +01:00
Ray
e42e3188f5
Remove some unneeded line breaks
2024-02-18 11:59:40 +01:00
Jeffery Myers
4cd71a9750
Fix warnings in raylib ( #3793 )
2024-02-10 20:02:05 +01:00
Ray
615ee9d177
REVIEWED: rlLoadFramebuffer()
2024-02-04 12:13:56 +01:00
Ray
c57b8d5a6a
REVIEWED: ImageKernelConvolution(), formating and warnings
2024-01-15 20:32:46 +01:00
Blockguy24
d2b1256e5c
Fix bounds check for ImageDrawRectangleRec ( #3732 )
2024-01-14 11:21:29 +01:00
Lieven Petersen
a820c37ab2
implemented fill color TODO in ImageResizeCanvas() ( #3720 )
2024-01-11 19:48:14 +01:00
Le Juez Victor
746f129bfe
Fix ImageDrawRectangleRec ( #3721 )
2024-01-11 19:37:42 +01:00
Alice Nyaa
be0ea89f83
Simplified for loop for some image manip functions ( #3712 )
2024-01-06 19:41:43 +01:00
Ray
b4cb0f3e7d
REVIEWED: LoadImageAnimFromMemory() #3704
2024-01-05 22:33:56 +01:00
ubkp
19bdcedf1c
Hide unused warnings from stb_image_resize2.h ( #3708 )
2024-01-05 22:22:58 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
ubkp
fd5e1e6afb
[rtextures] Fix LoadImageAnimFromMemory() warning for fileData ( #3686 )
...
* Fix LoadImageAnimFromMemory() warning for fileData
* Add LoadImageAnimFromMemory() to raylib.h
* Fix missing ; on previous commit
2023-12-28 23:15:04 +01:00
IoIxD
3fc43c1096
LoadImageAnimFromMemory ( #3681 )
2023-12-28 20:12:52 +01:00
Ray
e039a221a3
Review formating
2023-12-23 14:07:45 +01:00
Ray
1792bce292
REVIEWED: LoadTextureCubemap(), added mipmaps #3665
2023-12-23 11:26:23 +01:00
Ray
d29b36310f
Merge branch 'master' of https://github.com/raysan5/raylib
2023-12-14 15:32:45 +01:00
Ray
88db11fda4
Update rtextures.c
2023-12-14 15:30:48 +01:00
Romash
222f6f7877
Fix box blur symmetry & simplify code ( #3631 )
2023-12-13 21:21:08 +01:00
Ray
6f3c87a999
Fix #3613
2023-12-11 09:21:30 +01:00
Karim
21469e92b0
Image convolution function ImageKernelConvolution ( #3528 )
...
* Added image convultion ImageKernelConvolution
* comment changes
* spelling changes and change to kernel size
* removed kernel normalization inside function
* fix to formating
2023-11-18 20:05:45 +01:00
Ray
fe757b6267
Update rtextures.c
2023-11-08 17:40:23 +01:00
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
Babak
0f4a8cf7cb
Ported to stb_image_resize2.h ( #3403 )
2023-10-13 16:37:35 +02:00
Ray
67a1e1ffae
Update rtextures.c
2023-10-10 10:48:46 +02:00
Masoud Naservand
d309b1eaa7
Call nsvgDeleteRasterizer() on created rasterizer ( #3392 )
...
the `NSVGrasterizer *rast` needs to be passed
to nsvgDeleteRasterizer() when we are done with it.
2023-10-09 09:47:54 +02:00
Ray
f2389a1e55
Remove trail spaces
2023-09-26 12:54:24 +02:00
Ray
97c4333803
REVIEWED: UnloadRenderTexture(), additional check
2023-09-17 20:42:45 +02:00
Ray
528b879955
Update rtextures.c
2023-09-13 17:05:22 +02:00
Rob Loach
30f8dd6e37
rtextures: Fix ImageDraw() source clipping when drawing beyond top left ( #3306 )
2023-09-11 19:00:30 +02:00
Ray
8a82e17a79
Update rtextures.c
2023-09-04 18:43:03 +02:00
Ray
67a693fc5b
REVIEWED: LoadImageSvg()
2023-09-02 19:20:56 +02:00
Ray
d6f3891009
REVIEWED: LoadImageSvg()
2023-09-02 13:16:44 +02:00
bXi
c03ab03627
Added rudimentary SVG support. ( #2738 )
...
* Added rudimentary SVG support. Added 2 functions ImageLoadSvg and ImageLoadSvgWithSize.
* Added an example on how to use ImageLoadSvgWithSize and adjusted Makefiles accordingly.
* Added actual correct example file.
* Reviewed the code to keep the raylib coding conventions in mind.
Moved the LoadImageSvg() code into LoadImage() guarded by SUPPORT_FILEFORMAT_SVG.
Renamed LoadImageSvgWithSize() to LoadImageSvg().
Added a LoadImageSvgFromString() function to parse the loaded SVG into an actual image. This does the bulk of the work.
* Fixed typo.
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-02 13:00:18 +02:00
Ray
0f447f1fb6
REVIEWED: Data size type consistency between functions #3168
2023-09-02 12:05:34 +02:00
Johannes Barthelmes
0f39051562
Fix uninitialized thread-locals in stbi #3282 ( #3283 )
2023-09-02 11:41:33 +02:00
Ray
9646497216
Formating review
2023-08-27 00:30:56 +02:00
Jeffery Myers
21f5482e0d
[Image] Validate that ImageDrawRectangleRec is drawing entirely inside the image ( #3264 )
...
* 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
* sound_multi example
* Validate that image rect drawing is inside the image so we don't overflow a buffer
* remove files that should not have been added.
* remove changes that should not have been
* revert
* adsfasdfsdfsdf
2023-08-26 14:43:14 +02:00
Ray
93f59a6f59
Review tabs and trail-spaces
2023-08-10 22:47:17 +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
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
Nikolas
5d28bad0ad
Fix LoadTextureCubemap for manual layouts ( #3204 )
2023-07-27 22:41:43 +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
Ray
48e2663d03
REVIEWED: Issue #3105
2023-07-02 10:51:39 +02:00
Jeffery Myers
0c126af717
casting warnings in rtextures ( #3134 )
2023-06-24 23:38:09 +02:00
Ray
830e328df0
Remove trailing spaces
2023-06-17 16:48:18 +02:00
Ray
f8b352f6d9
ADDED: ExportImageToMemory()
...
Only PNG supported for now
2023-06-03 19:51:16 +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
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
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
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
76e39e502c
Update rtextures.c
2023-05-17 23:14:14 +02:00
Ray
7d68aa6869
REVIEWED: Modules description layout
2023-05-01 14:04:22 +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
838fc7e303
REVIEWED: Some old TODOs
2023-04-22 21:17:53 +02:00
Ray
709b14180a
Make assets loading extension case insensitive #3008
2023-04-13 23:08:32 +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
a7f81b06b9
Remove trailing spaces
2023-03-13 12:08:23 +01:00
Ray
ab1e246367
REVIEWED: Data types validation
2023-03-07 20:33:45 +01:00
Ray
614e0518a7
Remove trailing spaces
2023-03-06 14:58:58 +01:00
Ray
73c9f72c52
Update rtextures.c
2023-02-25 22:32:50 +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
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
Ray
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +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
edaca16d7c
Fix warnings in raylib project from MSVC ( #2871 )
2023-01-20 16:05:19 +01:00
Ray
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +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
5b5dff3f9e
format tweak
2022-12-02 11:59:54 +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
31edd13a72
Minor formating tweaks
2022-11-10 12:03:17 +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
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
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
Ray
178a356cb4
minor tweaks
2022-09-30 23:07:29 +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
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
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
Ray
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
Ray
48c7f65b77
minor tweaks
2022-08-13 22:28:47 +02:00
Ray
fd191a32ea
Remove trailing spaces
2022-08-02 00:36:31 +02:00
BlueStag
f31e4ebb3d
Use American spelling of colourSpace ( #2604 )
2022-07-31 21:09:41 +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
Ray
29a0f60778
REVIEWED: ImageResize() #2572
2022-07-10 21:12:34 +02:00
Roy Qu
0964353073
fix: round off error in ColorAlphaBlend ( #2524 )
2022-06-16 14:47:46 +02:00
Ray
df3f64bfd2
Corrected typo
2022-05-07 18:04:34 +02:00
Anilforextra
a5daee3812
Optimize Some Image Functions. ( #2429 )
2022-04-23 10:51:47 +02: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
raysan5
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
Ray
76b6efc827
Support export .jpeg files
2022-01-26 11:30:38 +01:00
Ray
b422e407e8
Update rtextures.c
2022-01-22 18:42:44 +01:00
Ray
62858e11f7
Review tracelogs
2022-01-03 20:45:19 +01:00
raysan5
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +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
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
Ray
e7f48eb16b
Tweaks
2021-12-06 19:08:06 +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
Ray
d1b8d4f2c7
REVIEWED: Updated QOI to first official release
2021-11-28 01:22:56 +01:00
Ray
2b2141902b
ADDED: Support for QOI image format
2021-11-27 10:35:00 +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
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
Ray
282ec9bb76
Formatting tweak
2021-10-10 23:48:16 +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
Ray
8d7f97ee04
Remove trailing spaces
2021-10-06 01:20:46 +02:00
Ray
369cb0a3c5
Format tweak
2021-10-03 13:51:53 +02:00
Ray
9b3d74db6b
ADDED: GetImageColor() #2024
2021-10-03 12:55:52 +02:00
Ray
08ea5e419e
REVIEWED: LoadImageAnim() #2005
2021-09-23 00:23:57 +02:00
Ray
00a763ea44
Reviewed some TODO comments
2021-09-23 00:18:47 +02:00
Ray
99ab4d6cb8
WARNING: MODULES RENAMING!!!
...
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.
The renamed modules are:
- `core` -> `rcore`
- `shapes` -> `rshapes`
- `textures` -> `rtextures`
- `text` -> `rtext`
- `models` -> `rmodels`
- `camera` -> `rcamera`
- `gestures` -> `rgestures`
- `core` -> `rcore`
All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00