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
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
...
* Fixed some grammar mistakes.
* Fixed some typos.
2023-02-09 13:17:47 +01:00
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +01:00
7fff1ba0b0
ADDED: IsModelReady(), IsMaterialReady(), IsTextureReady(), IsRenderTextureReady() ( #2895 )
2023-01-28 12:13:09 +01:00
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
edaca16d7c
Fix warnings in raylib project from MSVC ( #2871 )
2023-01-20 16:05:19 +01:00
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
2c9d116a5c
ADDED: ColorTint(), ColorContrast()
2022-12-07 12:52:42 +01:00
f1368c36dd
ADDED: ColorBrightness()
2022-12-05 00:24:55 +01:00
5b5dff3f9e
format tweak
2022-12-02 11:59:54 +01:00
0b6d4b376f
REVIEWED: Image fileformat support: PIC, PNM
2022-11-29 17:28:23 +01:00
d241ee8516
ADDED: Optional support for PNM images (.ppm, .pgm)
2022-11-29 10:58:27 +01:00
31edd13a72
Minor formating tweaks
2022-11-10 12:03:17 +01:00
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
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
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
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
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
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
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
178a356cb4
minor tweaks
2022-09-30 23:07:29 +02:00
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
4311ffc9e1
REVIEWED: New functions coding conventions
2022-09-19 18:47:16 +02:00
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
c328f09efc
Move compressed textures loading to a separate self-contained library
2022-09-17 19:26:23 +02:00
cb9b8f73c0
ADDED: GenImagePerlinNoise()
2022-09-17 13:39:49 +02:00
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
48c7f65b77
minor tweaks
2022-08-13 22:28:47 +02:00
fd191a32ea
Remove trailing spaces
2022-08-02 00:36:31 +02:00
f31e4ebb3d
Use American spelling of colourSpace ( #2604 )
2022-07-31 21:09:41 +02:00
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
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
29a0f60778
REVIEWED: ImageResize() #2572
2022-07-10 21:12:34 +02:00
0964353073
fix: round off error in ColorAlphaBlend ( #2524 )
2022-06-16 14:47:46 +02:00
df3f64bfd2
Corrected typo
2022-05-07 18:04:34 +02:00
a5daee3812
Optimize Some Image Functions. ( #2429 )
2022-04-23 10:51:47 +02:00
0da7830745
REVIEWED: Avoid some float -> double promotions
2022-03-20 12:15:51 +01:00
c65efecf0a
Verify there is enough space in the batch for the npatch geometry. ( #2401 )
2022-03-19 22:26:27 +01:00
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
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
76b6efc827
Support export .jpeg files
2022-01-26 11:30:38 +01:00
b422e407e8
Update rtextures.c
2022-01-22 18:42:44 +01:00
62858e11f7
Review tracelogs
2022-01-03 20:45:19 +01:00
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +01:00
278c9fa5bd
REVIEWED: LoadTextureCubemap() #2224
2021-12-19 13:17:37 +01:00
76daf6e364
REVIEWED: LoadTextureCubemap() #2223
2021-12-19 13:10:43 +01:00
05428df667
ADDED NOTE: ImageDraw() does not support f32bit #2222
...
Added a note for a future improvement
2021-12-19 12:48:06 +01:00
ed1e1f35df
REVIEWED: GenImageCellular() #2178
2021-12-08 11:01:41 +01:00
7d25480723
REVIEWED: DrawTextureTiled() #2173
2021-12-07 19:06:18 +01:00
e7f48eb16b
Tweaks
2021-12-06 19:08:06 +01:00