Ray
2374281204
Avoid *Rec suffix in some variables
Pefixing/Suffixing some data type identifier in the variables is not a convention used in raylib, just reviewed it for consistency...
Still, I kept the *Rec suffix in some functions.
4 years ago
Ray
c36a6f3d9f
Update textures.c
4 years ago
Ray
e07bc372a1
WARNING: RENAMED several functions for consistency #1440
This is a BREAKING CHANGE!
To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory:
- RENAMED: GetImageData() -> LoadImageColors()
- RENAMED: GetImagePalette() -> LoadImagePalette()
- RENAMED: GetWaveData() -> LoadWaveSamples()
- ADDED: UnloadImageColors()
- ADDED: UnloadImagePalette()
- ADDED: UnloadWaveSamples()
4 years ago
Andrea Fontana
ef0dcaabf9
Changing JPG compression ( #1463 )
Since I don't think the purpose of raylib is to save space compressing image, I think it could be a good idea to keep quality from 90 to 100.
4 years ago
Jeffery Myers
df249f5513
Fix typecast warnings in raylib code as reported by visual studio 2019 ( #1443 )
4 years ago
raysan5
d6f4f3ee88
REMOVED: GetImageDataNormalized()
Let the advance users manage it as they want...
4 years ago
Ray
bb9d734f69
Exposing some file access results to user layer #1420
4 years ago
Ray
72e51cd6de
Review formating
4 years ago
Ray
3e1cd487df
Remove trailing spaces
4 years ago
Ray
41192c6d4a
Replace 0.f by 0.0f
4 years ago
Ray
a4ea9f872f
Review "aggregate initializations" #1403
4 years ago
raysan5
ccda320be4
REVIEWED: rlFramebufferAttach() to support texture layers
Required to attach multiple color textures and multiple cubemap faces
4 years ago
raysan5
cdc8850e68
WARNING: REDESIGN of rlgl framebuffers API #721
This redesign allows more flexibility when creating RenderTexture and a simplification (and hopefully removal) of `GenTexture*()` functions, that should not belong to this model but the user code, due to the use of custom shaders.
Also, this new API opens the door for a possible GBuffers type and advance rendering possibilities...
Some functions of the API have been also simplified or even removed.
rlgl module can be used as an standalone library, so, a version for the library has been added: v3.1.0, matching current raylib version.
4 years ago
raysan5
43d82c1f21
Add security checks when loading data from memory
4 years ago
Ray
8cf0be4b6c
Review memory loading functions signesness
4 years ago
raysan5
5073619962
REVIEWED: GetTextureData(), allow retrieving 32bit float data
4 years ago
Ray
768b29dd74
ADDED: LoadImageFromMemory() #1327
4 years ago
raysan5
f1ed8be5d7
REDESIGNED: ColorFromHSV()
Replaced Vector3 by direct values, easier to use and understand
4 years ago
raysan5
0db0e6acd8
WARNING: REMOVED: LoadImageEx()
Reason for removal: This function forces a specific Image data format, it copies data internally (it could be confusing and lead to memory leaks), it's redundant, there is a simpler alternative and raylib promotes using structures directly
4 years ago
raysan5
3f4c6fee11
Correct issue when not supporting GIF format
4 years ago
raysan5
c57323f29c
ADDED: LoadImageAnim() to load animated sequence of images
4 years ago
Doyle
00fda3be65
Fix incorrect color transform to 255 space ( #1297 )
4 years ago
Ray
5986eee6ab
Expose additional configuration options
Some internal defines have been exposed in config.h
4 years ago
Vlad Adrian
4d71e9b44f
Added new function `DrawTextureTiled()` ( #1291 )
* Implemented DrawTextureTiled()
* Example added
4 years ago
Ray
ba39a1b304
ADDED: UpdateTextureRec()
4 years ago
raysan5
e18c4c1158
REVIEWED: ColorAlphaBlend(), support tint color
4 years ago
raysan5
7ed7116e27
REVIEWED: ColorAlphaBlend(), integers-version, optimized #1218
4 years ago
raysan5
5a862bce29
REVIEWED: ImageDraw(), consider negative source offset properly #1283
4 years ago
raysan5
da582e2eec
REVIEWED: ImageDraw() #1283
4 years ago
raysan5
afcc584fb6
RE-ADDED: Fade() function to avoid multiple breaking changes
Probably there is a better way to do this but this is a temporary solution for backward compatibility
4 years ago
raysan5
589d606000
REDESIGNED: ImageDraw(), optimized #1218
After multiple tests and lot of redesign, current implementation is the fastest one. It also considers several fast-paths for maximum speed!
4 years ago
raysan5
32c0a7a135
Small code optimization
4 years ago
raysan5
bfa6544030
REDESIGNED: ImageResize(), optimized #1218
4 years ago
raysan5
691c1f9391
REDESIGNED: ImageFromImage(), optimized #1218
4 years ago
raysan5
ad954dc7ab
WARNING: BIG CHANGE: Move Color functions to texture module
WARNING: Some functions ADDED and some RENAMED:
- RENAMED: Fade() -> ColorAlpha() [Added #define for compatibility]
- ADDED: ColorAlphaBlend()
- ADDED: GetPixelColor()
- ADDED: SetPixelColor()
4 years ago
raysan5
ec09fea29a
REDESIGNED: ImageDraw(), optimization #1218
Trying a new optimization approach, some additional functions added, they will be probably exposed soon.
4 years ago
raysan5
15bfe44e73
REVIEWED: ImageDraw(), optimizations test #1218
Despite all the effort put on function optimization, dealing with alpha blending is complex, considering src and dst could have different pixel format...
4 years ago
raysan5
a6e6a99cb6
REDESIGNED: ImageAlphaClear(), optimized #1218
4 years ago
raysan5
4745ebeed5
REVIEWED: ImageResizeCanvas(), optimization #1218
Optimized to avoid ImageCrop() calls, now we define the source image rectangle and we just copy that data over the new canvas.
4 years ago
raysan5
dea0279a74
REVIEWED: ExportImage(), optimized
4 years ago
raysan5
7ef0fb4192
REVERTED: ExportImage() changes
Always using RGBA for now.
4 years ago
raysan5
82f7dd017e
REVIEWED: ImageAlphaPremultiply(), optimization
4 years ago
raysan5
40bc6afdbd
REVIEWED: ImageAlphaClear(), minor optimization
4 years ago
raysan5
87592e2625
Update textures.c
4 years ago
raysan5
d0e9228660
REDESIGNED: ImageResizeCanvas(), optimized #1218
4 years ago
raysan5
a9fb0aa207
ImageToPOT() renamed parameter
4 years ago
raysan5
b5174a9990
REVIEWED: ImageCrop() #1218
Further optimization, moving data line-by-line
Old optimization left for reference
4 years ago
raysan5
b7d53ce314
REVIEWED: ImageToPOT() #1218
Using ImageResizeCanvas()
4 years ago
raysan5
78c3d619f9
REVIEWED: ImageAlphaCrop() #1218
Now uses GetImageAlphaBorder()
4 years ago
raysan5
02ff68e1a3
REDESIGNED: ImageCrop(), optimized #1218
4 years ago