Commit Graph

59 Commits

Author SHA1 Message Date
raysan5 8a501ef06d Review some png images 2020-06-02 12:58:46 +02:00
raysan5 82fca43406 Replaced some resources for better licensing
Some resources used in examples have not a clear license, so, I'm replacing some of them for clearly licensed versions or resources created by me under CC0. License file to be added.
2020-05-31 23:31:43 +02:00
raysan5 fed4716c3b resources PNG chunks cleaning 2020-05-28 21:18:58 +02:00
Karlo Licudine a33dd87c99 Added Blend Modes example. (#1261) 2020-05-22 02:30:23 +02:00
raysan5 a7311af8c3 Corrected examples after API change: ImageDrawText*() 2020-04-11 11:26: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
Ray a1b2d96d9c Support touch drawing on web 2020-03-02 12:22:38 +01:00
Ray 117696a893 Update textures_mouse_painting.c 2020-03-02 00:09:05 +01:00
raysan5 793977db4a Review resources LICENSE 2020-01-06 19:50:26 +01:00
raysan5 3db13edd89 Support mouse cursor on RPI native
Reduced bunnymark limits
2019-08-20 20:39:22 +02:00
raysan5 38ee6156f8 Update textures_mouse_painting.c 2019-07-28 19:04:30 +02:00
raysan5 b83d165764 Replace tabs by spaces 2019-07-28 15:33:55 +02:00
raysan5 895f9613d2 Added image saved message 2019-07-28 15:26:22 +02:00
raysan5 602d2a65dd Reviewed new examples 2019-07-28 15:09:01 +02:00
ChrisDill 879c874330 Added scissor test and mouse painting examples proposed in #890 (#919)
- Updated Makefile with new examples
2019-07-28 11:12:13 +02:00
Ray b4d67499a7 BREAKING CHANGE: Read description
Changes:

 - Font structure has been redesigned, CharInfo structure contained character rectangle within font texture, it has not much sense, considering that it was an information relative to the font atlas generated and not the character itself, so character rectangles have been moved out from CharInfo to Font.
 - CharInfo included a data parameters to contain character pixel data (usually grayscale), generated on TTF font generation. It was inconsistent with other fonts types, so, now CharInfo includes directly an Image of the glyph.
 - REDESIGNED: GenImageFontAtlas(), additional recs parameter added, loaded and filled inside the function to export atlas characters rectangles, instead of silently modify the input CharInfo data.
 - REVIEWED: ImageTextEx(), funtion retrieved the font atlas image from the GPU, that was slow and problematic in several platforms. Now it uses directly the CharInfo image. Support for unicode codepoints has also been added.
 - REDESIGNED: ImageDraw(), now it includes an additional parameter, the color tint, not only it could be useful for several situations but also function signature is more consistent with similar functions.
 - ADDED: ImageFromImage() to generate a new image from a piece of another image.
 - REVIEWED: GetNextCodepoint(), renamed parameters to be more clear.

Also all examples and games that were affected by those changes have been reviewed.
2019-07-24 15:05:14 +02:00
Chris Dill 42d57bbe00 Added array bounds check to textures_bunnymark 2019-05-29 13:58:31 +01:00
Ray 87774a0a21 Review variables initialization 2019-05-27 00:18:15 +02:00
Ray b525039e0a Review ALL examples 2019-05-20 16:36:42 +02:00
Ray 970f1e8ff1 examples review 2019-05-17 01:17:40 +02:00
Ray 424d3ca8d9 examples review
Redesigns, deletes and renames

Also noted authors propertly on contributed examples
2019-05-14 15:34:23 +02:00
Ray 621965cb8c Move bunnymark example to another module 2019-05-06 16:38:58 +02:00
Ray 0c53360a3a new example: textures_sprite_explosion 2019-05-03 15:56:07 +02:00
Ray a9ebf8e10d new example: textures_sprite_button 2019-05-02 13:01:36 +02:00
Ray 99537efccf Review some examples 2019-04-12 13:29:53 +02:00
Ray 6fc97643bf new example: textures_background_scrolling 2019-04-11 16:53:02 +02:00
raysan5 490e930665 Reviewed example 2019-01-05 17:25:35 +01:00
raysan5 96207a8a02 REVIEWED: LoadFontEx()
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
2018-12-25 15:17:42 +01:00
Ray abfbc42df7 PNG image size optimization 2018-09-25 12:53:31 +02:00
Ray 10c22c8d61 Review example to show text tinting 2018-09-05 10:48:33 +02:00
Ray 46411e1c55 Renamed n-patch sample 2018-08-14 19:26:50 +02:00
Ray 00f5f2ead2 Merge pull request #616 from overdev/master
[Feature Request] 9-patch drawing function
2018-08-09 22:42:05 +02:00
Jorge A. Gomes 921cacacfb Added example screenshot. 2018-08-08 16:26:51 -03:00
Jorge A. Gomes 051cf1346b Added texture_image_9patch.c example 2018-08-08 16:22:51 -03:00
Jorge A. Gomes 34c3ae5ab3 Added 9-patch texture used in the example code. 2018-08-08 16:21:33 -03:00
Ray b042fe12e6 Reviewed spacings on latest PR 2018-08-06 20:49:47 +02:00
Kim Kulling b2cac82fa0 Fix compiler warings in texture.c and more. 2018-08-05 00:34:35 +02:00
Kim Kulling ecf8bff4aa Fix compiler warnings, first part 2018-08-04 10:32:16 +02:00
Ray afe81d94ce Re-added: LoadFontEx() 2018-06-30 19:58:44 +02:00
Ray 64207b11c0 Removed unused textures 2018-06-30 19:58:08 +02:00
Ray dbff40944a Corrected issue with floats on TCC
It seems TCC was not casting correctly int values to float in some
specific situations
2018-05-28 00:48:07 +02:00
Ray San ec33e7d705 BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
2018-05-04 16:59:48 +02:00
Ray San 6324697ffd Rectangle parameters changed to float
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
2018-05-04 16:25:31 +02:00
Ray c8e97df233 Reviewed function GenImagePerlinNoise()
Added support for noise image offset
2018-01-17 00:43:30 +01:00
Ray San f460b3842e Added new example: text drawing on image 2017-10-30 09:37:16 +01:00
Ray San 5dc216f419 Improved some examples 2017-10-17 11:51:50 +02:00
raysan5 6589c808b5 Review some formatting for consistency 2017-07-02 19:29:01 +02:00
Wilhem Barbier 3c9aa780f9 Removed an unwanted file and fixed an example 2017-06-28 19:14:20 +02:00
Wilhem Barbier 786cd63057 Add a density parameter to GenImageRadialGradient 2017-06-28 17:27:47 +02:00
Wilhem Barbier a0ac8ee2c4 Add more image generation functions: radial gradient and perlin noise 2017-06-28 15:29:56 +02:00