raysan5
b5174a9990
REVIEWED: ImageCrop() #1218
...
Further optimization, moving data line-by-line
Old optimization left for reference
2020-06-07 12:57:57 +02:00
raysan5
b7d53ce314
REVIEWED: ImageToPOT() #1218
...
Using ImageResizeCanvas()
2020-06-07 12:56:47 +02:00
raysan5
78c3d619f9
REVIEWED: ImageAlphaCrop() #1218
...
Now uses GetImageAlphaBorder()
2020-06-07 12:33:42 +02:00
raysan5
02ff68e1a3
REDESIGNED: ImageCrop(), optimized #1218
2020-06-07 12:16:27 +02:00
raysan5
7cf1e76d53
REVIEWED: ExportImage(), optimized #1218
...
Avoid GetImageData() retrieval and free
2020-06-07 11:57:22 +02:00
raysan5
776e4a37ef
REDESIGNED: ImageRotateCCW(), optimized #1218
2020-06-07 11:53:13 +02:00
raysan5
79e2fbe0c6
REDESIGNED: ImageRotateCW(), optimized #1218
2020-06-07 11:52:55 +02:00
raysan5
d278eae4a3
REDESIGNED: ImageFlipHorizontal(), optimized #1218
...
Added several optimized options for future reference (if required)
2020-06-07 11:52:21 +02:00
raysan5
93d6dd3023
REDESIGNED: ImageFlipVertical(), optimized #1218
2020-06-07 11:51:26 +02:00
raysan5
3792951023
REVIEWED: GetPixelDataSize() to consider compressed data properly
2020-06-02 23:08:34 +02:00
raysan5
b0f245d8c5
Review ExportImageAsCode() comment
2020-05-24 15:47:15 +02:00
raysan5
427e543d84
Corrected issue
...
Compression API requires functions provided by stbi_image_write (DEFLATE compression)
2020-05-23 23:17:34 +02:00
raysan5
4e8e90b6df
Add note comment on ExportImageAsCode()
2020-05-23 19:46:58 +02:00
raysan5
b95673f701
Use RL_FREE() instead of free()
2020-05-23 19:21:46 +02:00
raysan5
d3dece3343
REDESIGNED: ExportImageAsCode() to use memory buffer #1232
2020-05-23 18:24:53 +02:00
raysan5
795c079c55
Corrected issues on LoadPKM()
2020-05-23 18:04:58 +02:00
raysan5
0e56bc2929
Replace file accesses by memory accesses
...
Several functions used to load external files have been reviewed to just load the full file with LoadFileData() and load data from memory from there. This way all file access functionality is centralized in utils module.
Functions reviewed: LoadDDS(), LoadPKM(), LoadKTX(), LoadPVR(), LoadASTC(), SaveKTX()
2020-05-22 01:47:30 +02:00
raysan5
3a33fe0fd9
Avoid LoadImageEx() usage internally
...
At this point LoadImageEx() could be removed from raylib... still thinking about it...
2020-05-14 13:37:52 +02:00
raysan5
3a6af2cc57
Remove SUPPORT_IMAGE_DRAWING flag
...
ImageDraw() is actually used in multiple functions and it aslo depends on several functions...
2020-05-09 17:17:54 +02:00
raysan5
7a1d3d807f
WARNING: RENAMED: ImageExtractPalette() -> GetImagePalette()
2020-05-09 12:07:18 +02:00
raysan5
959447d8ed
Reorganized texture functions
...
Removed ImageAlphaMask() dependency on [text] LoadBMFont()
2020-05-09 12:05:00 +02:00
raysan5
d357b116fe
Reviewed missing check for JPG
2020-05-07 18:08:35 +02:00
raysan5
fdad1f023b
Avoid all MSVC compile warnings
...
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons.
Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only.
Some external libraries still generate warnings.
2020-05-06 19:12:09 +02:00
raysan5
51c3bef497
Review exposed #defines and allow user re-defining
...
There are multiple #define values around raylib, usually not exposed for redefinition, just reviewed all of them to allow users redefining them on compile time if required.
Also, multiple #define have been renamed and commented.
2020-05-01 17:31:44 +02:00
raysan5
cc816345bf
WARNING: API BREAK: Removed LoadImagePro()
...
Actually this function is useless and potentially dangerous, internally, a shallow copy of data was done. Same could be accomplished accesing image.data directly.
2020-04-10 19:26:36 +02:00
raysan5
b132da0ac2
WARNING: API BREAK: Reviewed ImageDrawText*() params order
...
To unify with DrawText*() equivalent functions
2020-04-10 19:10:15 +02:00
raysan5
926651b708
Optimized ImageDrawPixel()
...
Now it's blazing fast. It modifies image.data directly.
Previous version could take up to 3-4 seconds to draw a line... now it takes some nanoseconds...
2020-04-09 22:44:10 +02:00
raysan5
0abe557af1
Fixed issue with ImageDrawLine()
2020-04-08 12:37:52 +02:00
raysan5
4ceb4d3bf3
Some code tweaks, comments and defines
2020-04-05 17:50:37 +02:00
raysan5
8941cf3e66
Update textures.c
2020-03-30 17:42:19 +02:00
raysan5
e8a8d544c5
Review formating and signegness issues
2020-03-30 14:38:16 +02:00
Rob Loach
a025636fa1
Update ImageDraw*() functions to match arguments of Draw*() ( #1156 )
...
* Update ImageDraw*() functions to match arguments of Draw*()
Updated draw functions:
ImageDrawPixel()
ImageDrawPixelV()
ImageDrawCircle()
ImageDrawCircleV()
ImageDrawLine()
ImageDrawLineV()
ImageDrawRectangle()
ImageDrawRectangleV()
ImageDrawRectangleRec()
* [nodepadpp] Update Notepad++ ImageDraw defintions
This updates the Notepad++ definitions with the updated ImageDraw methods.
* [examples] Add ImageDraw calls to textures_image_drawing
* Update ImageDraw*() methods
2020-03-29 12:43:34 +02:00
raysan5
d28e73849b
Review TRACELOG() messages
2020-03-27 18:49:21 +01:00
raysan5
7e2b1b4ff0
[textures] Review TRACELOG() messages
2020-03-27 17:43:38 +01:00
raysan5
b9dd459d5a
[textures] Review TRACELOG() messages, categorized
2020-03-27 17:15:44 +01:00
raysan5
7ae7a87f8a
Remove trail spaces
2020-03-25 19:41:51 +01:00
raysan5
5aebd2a16c
Review formating from PR #1138
2020-03-21 20:30:40 +01:00
Sourav Gupta
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
...
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
2020-03-21 20:23:50 +01:00
raysan5
2344941974
Replace external libraries custom allocators by raylib ones #1074
...
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
2020-03-17 13:40:07 +01:00
raysan5
71b06caed4
Corrected typo
2020-03-15 17:06:08 +01:00
raysan5
4611406c68
REVIEWED: ImageTextEx() to support line breaks #1131
...
NOTE: This functionality has an important issue, line space is fixed to 1.5 font.baseSize pixels, depending on the font and how it has been generated that spacing could be too wide or too narrow...
2020-03-15 16:18:48 +01:00
SasLuca
680f9d5772
Changed if
to else if
. ( #1122 )
2020-03-08 18:03:23 +01:00
Ray
a6297a2be1
Some code tweaks
2020-03-03 01:21:06 +01:00
Ray
1ee6290fcf
Replaced fabs() by fabsf() when required
2020-02-28 12:54:39 +01:00
Ray
c8464bc731
Corrected return value
2020-02-27 16:22:34 +01:00
Ray
b2098a2d60
REDESIGN: ExportImage()
...
Use new file I/O ABI
2020-02-27 16:15:58 +01:00
Ray
acfa967e89
Corrected issue with variable name
2020-02-27 13:56:27 +01:00
Ray
5ff0776235
Remove trail spaces and some tweaks
2020-02-27 13:33:09 +01:00
Ray
2a408d789c
REDESIGNED: LoadImage() -WIP-
...
Using new file I/O ABI
2020-02-27 13:21:51 +01:00
Ray
5100cb3e7f
REDESIGNED: LoadImageRaw(), LoadAnimatedGIF()
...
Using new file I/O ABI
2020-02-27 13:21:21 +01:00