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.
5 years ago
raysan5
b132da0ac2
WARNING: API BREAK: Reviewed ImageDrawText*() params order
To unify with DrawText*() equivalent functions
5 years ago
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...
5 years ago
raysan5
0abe557af1
Fixed issue with ImageDrawLine()
5 years ago
raysan5
4ceb4d3bf3
Some code tweaks, comments and defines
5 years ago
raysan5
8941cf3e66
Update textures.c
5 years ago
raysan5
e8a8d544c5
Review formating and signegness issues
5 years ago
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
5 years ago
raysan5
d28e73849b
Review TRACELOG() messages
5 years ago
raysan5
7e2b1b4ff0
[textures] Review TRACELOG() messages
5 years ago
raysan5
b9dd459d5a
[textures] Review TRACELOG() messages, categorized
5 years ago
raysan5
7ae7a87f8a
Remove trail spaces
5 years ago
raysan5
5aebd2a16c
Review formating from PR #1138
5 years ago
Sourav Gupta
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
5 years ago
raysan5
2344941974
Replace external libraries custom allocators by raylib ones #1074
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
5 years ago
raysan5
71b06caed4
Corrected typo
5 years ago
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...
5 years ago
SasLuca
680f9d5772
Changed `if` to `else if`. ( #1122 )
5 years ago
Ray
a6297a2be1
Some code tweaks
5 years ago
Ray
1ee6290fcf
Replaced fabs() by fabsf() when required
5 years ago
Ray
c8464bc731
Corrected return value
5 years ago
Ray
b2098a2d60
REDESIGN: ExportImage()
Use new file I/O ABI
5 years ago
Ray
acfa967e89
Corrected issue with variable name
5 years ago
Ray
5ff0776235
Remove trail spaces and some tweaks
5 years ago
Ray
2a408d789c
REDESIGNED: LoadImage() -WIP-
Using new file I/O ABI
5 years ago
Ray
5100cb3e7f
REDESIGNED: LoadImageRaw(), LoadAnimatedGIF()
Using new file I/O ABI
5 years ago
SasLuca
dec85f741a
Fixed memory leaks in textures.c ( #1097 )
5 years ago
Ray
ea40bda88c
Added func used in comments
5 years ago
Ray
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
5 years ago
Ray
c3f06b7470
Remove all trail spaces
5 years ago
Ray
cde26c743c
Replace TraceLog() function by TRACELOG macro
Added SUPPORT_TRACELOG_DEBUG config
5 years ago
raysan5
bec467705e
Review custom allocators
5 years ago
Ray
237972652d
GetImageAlphaBorder() return 0 in case of blank image
5 years ago
Ray
4525c897e2
GetImageData() returns NULL if image size is 0
5 years ago
raysan5
21c30f43d4
Update year to 2020
5 years ago
raysan5
c0d1425aac
Remove TABS
5 years ago
Ray
e614942a2d
Read texture data as RGBA from FBO on GLES 2.0
5 years ago
raysan5
e8b89b5ecf
REVIEW: GetImageData() and GetImageAlphaBorder()
5 years ago
João Coelho
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
5 years ago
raysan5
68dcb55349
Corrected bug on ImageDrawRectangleLines()
5 years ago
Ray
b75511248d
Remove trailing spaces
5 years ago
Ray
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
5 years ago
Ray
df84f93938
Add security checks on file writting
5 years ago
Ray
1f730b3b35
Review ImageCrop() security checks
5 years ago
Ray
9d53e07883
Added preprocessor macros for GIF
5 years ago
Ray
d089e1cd34
ADDED: LoadAnimatedGIF() -WIP-
Still looking for a better way to integrate it into raylib API, maybe add a LoadImageAnim()?
5 years ago
raysan5
112874fe07
Review issue with HDR pixels loading
5 years ago
raysan5
c10348cc85
Review conditions
5 years ago
Michael Vetter
5f1990e044
Fix build caused by GetImageAlphaBorder() ( #931 )
Fix build failure introduced in 2a913b6587
5 years ago
Ray
2a913b6587
ADDED: GetImageAlphaBorder()
5 years ago