| Age | Commit message (Collapse) | Author |
|
Avoid GetImageData() retrieval and free
|
|
|
|
|
|
Added several optimized options for future reference (if required)
|
|
|
|
|
|
|
|
Compression API requires functions provided by stbi_image_write (DEFLATE compression)
|
|
|
|
|
|
|
|
|
|
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()
|
|
At this point LoadImageEx() could be removed from raylib... still thinking about it...
|
|
ImageDraw() is actually used in multiple functions and it aslo depends on several functions...
|
|
|
|
Removed ImageAlphaMask() dependency on [text] LoadBMFont()
|
|
|
|
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.
|
|
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.
|
|
Actually this function is useless and potentially dangerous, internally, a shallow copy of data was done. Same could be accomplished accesing image.data directly.
|
|
To unify with DrawText*() equivalent functions
|
|
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...
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
|
|
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
|
|
|
|
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...
|
|
|
|
|
|
|
|
|
|
Use new file I/O ABI
|
|
|
|
|
|
Using new file I/O ABI
|
|
Using new file I/O ABI
|
|
|
|
|
|
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
|
|
|