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
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
b132da0ac2
WARNING: API BREAK: Reviewed ImageDrawText*() params order
...
To unify with DrawText*() equivalent functions
2020-04-10 19:10:15 +02:00
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
0abe557af1
Fixed issue with ImageDrawLine()
2020-04-08 12:37:52 +02:00
4ceb4d3bf3
Some code tweaks, comments and defines
2020-04-05 17:50:37 +02:00
8941cf3e66
Update textures.c
2020-03-30 17:42:19 +02:00
e8a8d544c5
Review formating and signegness issues
2020-03-30 14:38:16 +02:00
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
d28e73849b
Review TRACELOG() messages
2020-03-27 18:49:21 +01:00
7e2b1b4ff0
[textures] Review TRACELOG() messages
2020-03-27 17:43:38 +01:00
b9dd459d5a
[textures] Review TRACELOG() messages, categorized
2020-03-27 17:15:44 +01:00
7ae7a87f8a
Remove trail spaces
2020-03-25 19:41:51 +01:00
5aebd2a16c
Review formating from PR #1138
2020-03-21 20:30:40 +01:00
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
...
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
2020-03-21 20:23:50 +01:00
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
71b06caed4
Corrected typo
2020-03-15 17:06:08 +01:00
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
680f9d5772
Changed if to else if. ( #1122 )
2020-03-08 18:03:23 +01:00
a6297a2be1
Some code tweaks
2020-03-03 01:21:06 +01:00
1ee6290fcf
Replaced fabs() by fabsf() when required
2020-02-28 12:54:39 +01:00
c8464bc731
Corrected return value
2020-02-27 16:22:34 +01:00
b2098a2d60
REDESIGN: ExportImage()
...
Use new file I/O ABI
2020-02-27 16:15:58 +01:00
acfa967e89
Corrected issue with variable name
2020-02-27 13:56:27 +01:00
5ff0776235
Remove trail spaces and some tweaks
2020-02-27 13:33:09 +01:00
2a408d789c
REDESIGNED: LoadImage() -WIP-
...
Using new file I/O ABI
2020-02-27 13:21:51 +01:00
5100cb3e7f
REDESIGNED: LoadImageRaw(), LoadAnimatedGIF()
...
Using new file I/O ABI
2020-02-27 13:21:21 +01:00
dec85f741a
Fixed memory leaks in textures.c ( #1097 )
2020-02-11 22:25:27 +01:00
ea40bda88c
Added func used in comments
2020-02-04 17:52:40 +01:00
b5fe41f41a
Review libc dependencies and remove when possible
...
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions:
- stdlib.h: primary dependency is for malloc() and free()
- stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI?
- string.h: just around 8 functions required
- math.h: just around 8 functions required
- others: 1-2 functions required for some other headers
2020-02-04 16:55:24 +01:00
c3f06b7470
Remove all trail spaces
2020-02-03 19:26:28 +01:00
cde26c743c
Replace TraceLog() function by TRACELOG macro
...
Added SUPPORT_TRACELOG_DEBUG config
2020-02-03 19:13:24 +01:00
bec467705e
Review custom allocators
2020-01-19 11:23:38 +01:00
237972652d
GetImageAlphaBorder() return 0 in case of blank image
2020-01-15 11:52:50 +01:00
4525c897e2
GetImageData() returns NULL if image size is 0
2020-01-15 11:22:00 +01:00
21c30f43d4
Update year to 2020
2020-01-05 20:01:54 +01:00
c0d1425aac
Remove TABS
2019-12-29 13:53:05 +01:00
e614942a2d
Read texture data as RGBA from FBO on GLES 2.0
2019-12-11 23:22:10 +01:00
e8b89b5ecf
REVIEW: GetImageData() and GetImageAlphaBorder()
2019-11-04 13:30:55 +01:00
75b0264f35
fix various problems, thanks CppCheck :) ( #1005 )
...
* explained a bit more the core_window_letterbox example
* fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-29 15:57:19 +01:00
68dcb55349
Corrected bug on ImageDrawRectangleLines()
2019-10-19 17:26:45 +02:00
b75511248d
Remove trailing spaces
2019-10-17 17:18:03 +02:00
12d3e21f1b
REVIEW: ImageAlphaMask()
...
When adding alpha mask to GRAYSCALE image, if using ImageFormat(), it could change pixel values, now we avoid that, mask is just added as an extra channel
2019-10-11 20:08:41 +02:00
df84f93938
Add security checks on file writting
2019-09-30 17:32:06 +02:00
1f730b3b35
Review ImageCrop() security checks
2019-09-20 15:55:55 +02:00
9d53e07883
Added preprocessor macros for GIF
2019-09-19 17:36:48 +02:00
d089e1cd34
ADDED: LoadAnimatedGIF() -WIP-
...
Still looking for a better way to integrate it into raylib API, maybe add a LoadImageAnim()?
2019-09-19 16:09:36 +02:00
112874fe07
Review issue with HDR pixels loading
2019-09-14 20:07:44 +02:00
c10348cc85
Review conditions
2019-09-14 19:01:33 +02:00
5f1990e044
Fix build caused by GetImageAlphaBorder() ( #931 )
...
Fix build failure introduced in 2a913b6587
2019-08-07 09:23:15 +02:00