Commit Graph

23 Commits

Author SHA1 Message Date
Ray 3f1e59a7cf Update copyright to 2024 2024-01-02 20:58:12 +01:00
Ray 040b945fef Reviewed some examples and warnings 2023-11-08 20:09:32 +01:00
MichaelFiber 18e9784c6d
Remove PLATFORM_RPI (#3232)
* Remove PLATFORM_RPI

* remove build artifacts

---------

Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
Ray b59fab7ee6 Update year to 2023 2023-01-01 16:00:56 +01:00
Ray 4a9391ae83 REVIEWED: examples descriptions 2022-07-20 01:28:37 +02:00
Ray c1b01c0d5d Added new comment to examples 2022-06-21 19:53:18 +02:00
Ray 59e7275464 REVIEWED: Glyphs 2021-09-02 00:35:55 +02:00
Ray 3d33c559e7 REVIEWED: Examples compilation 2021-08-26 00:14:34 +02:00
Ray dcf52c132f Remove trail spaces 2021-04-22 18:55:24 +02:00
Jeffery Myers e48b9a6da1
[Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples.

* cleanups from review

Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-23 07:51:52 +01:00
raysan5 b68e522ffc Updated several files while porting examples to web 2020-12-24 13:51:24 +01:00
Ray 8cf0be4b6c Review memory loading functions signesness 2020-09-14 19:20:38 +02:00
raysan5 c32ae480af RENAMED: FormatText() -> TextFormat()
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
2020-08-16 11:28:15 +02:00
raysan5 b00ab118c6 [examples] text_font_sdf - Corrected bug 2020-06-02 23:07:11 +02:00
raysan5 64747478fe Renamed some resources for naming consistency 2020-05-28 21:17:16 +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
Ray 434e460c18 Example instructions tweak for clarity 2019-05-31 16:42:16 +02: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 dfb8837c46 Support aliased font texture generation
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
2018-09-06 16:56:21 +02:00
Ray 7d7c6fc42d Reviewed example for clarity 2018-07-15 20:24:18 +02:00
Ray dfc4baaa35 Added new example: text_font_sdf 2018-07-15 20:04:12 +02:00