diff options
| author | Ray <[email protected]> | 2022-07-20 01:28:37 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-07-20 01:28:37 +0200 |
| commit | 4a9391ae83757afd86b6f1cccae4335c611b5b41 (patch) | |
| tree | e95a5c4151f033616e49ce3a72ec3dc7b37394ba /examples/text | |
| parent | 4fced50fd17c12d11e8cd0a99a0f3531cc4daf43 (diff) | |
| download | raylib-4a9391ae83757afd86b6f1cccae4335c611b5b41.tar.gz raylib-4a9391ae83757afd86b6f1cccae4335c611b5b41.zip | |
REVIEWED: examples descriptions
Diffstat (limited to 'examples/text')
| -rw-r--r-- | examples/text/text_codepoints_loading.c | 6 | ||||
| -rw-r--r-- | examples/text/text_draw_3d.c | 25 | ||||
| -rw-r--r-- | examples/text/text_font_filters.c | 10 | ||||
| -rw-r--r-- | examples/text/text_font_loading.c | 10 | ||||
| -rw-r--r-- | examples/text/text_font_sdf.c | 10 | ||||
| -rw-r--r-- | examples/text/text_font_spritefont.c | 15 | ||||
| -rw-r--r-- | examples/text/text_format_text.c | 8 | ||||
| -rw-r--r-- | examples/text/text_input_box.c | 8 | ||||
| -rw-r--r-- | examples/text/text_raylib_fonts.c | 10 | ||||
| -rw-r--r-- | examples/text/text_rectangle_bounds.c | 10 | ||||
| -rw-r--r-- | examples/text/text_unicode.c | 10 | ||||
| -rw-r--r-- | examples/text/text_writing_anim.c | 8 |
12 files changed, 78 insertions, 52 deletions
diff --git a/examples/text/text_codepoints_loading.c b/examples/text/text_codepoints_loading.c index 1dfe5015..a43697c0 100644 --- a/examples/text/text_codepoints_loading.c +++ b/examples/text/text_codepoints_loading.c @@ -2,8 +2,10 @@ * * raylib [text] example - Codepoints loading * -* This example has been created using raylib 4.2 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 4.2, last time updated with raylib 2.5 +* +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software * * Copyright (c) 2022 Ramon Santamaria (@raysan5) * diff --git a/examples/text/text_draw_3d.c b/examples/text/text_draw_3d.c index d4b057ec..70143dcd 100644 --- a/examples/text/text_draw_3d.c +++ b/examples/text/text_draw_3d.c @@ -1,25 +1,28 @@ /******************************************************************************************* * -* raylib [text] example - Draw 2D text in 3D +* raylib [text] example - Draw 3d * -* Draw a 2D text in 3D space, each letter is drawn in a quad (or 2 quads if backface is set) +* NOTE: Draw a 2D text in 3D space, each letter is drawn in a quad (or 2 quads if backface is set) * where the texture coodinates of each quad map to the texture coordinates of the glyphs * inside the font texture. -* A more efficient approach, i believe, would be to render the text in a render texture and -* map that texture to a plane and render that, or maybe a shader but my method allows more -* flexibility...for example to change position of each letter individually to make somethink -* like a wavy text effect. +* +* A more efficient approach, i believe, would be to render the text in a render texture and +* map that texture to a plane and render that, or maybe a shader but my method allows more +* flexibility...for example to change position of each letter individually to make somethink +* like a wavy text effect. * -* Special thanks to: +* Special thanks to: * @Nighten for the DrawTextStyle() code https://github.com/NightenDushi/Raylib_DrawTextStyle * Chris Camacho (codifies - http://bedroomcoders.co.uk/) for the alpha discard shader * -* This example has been created using raylib 3.5 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 3.5, last time updated with raylib 4.0 +* +* Example contributed by Vlad Adrian (@demizdor) and reviewed by Ramon Santamaria (@raysan5) * -* Example contributed by Vlad Adrian (@Demizdor) and reviewed by Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software * -* Copyright (C) 2021 Vlad Adrian (@Demizdor - https://github.com/Demizdor) +* Copyright (c) 2021-2022 Vlad Adrian (@demizdor) * ********************************************************************************************/ diff --git a/examples/text/text_font_filters.c b/examples/text/text_font_filters.c index f9895e16..7d9082b5 100644 --- a/examples/text/text_font_filters.c +++ b/examples/text/text_font_filters.c @@ -2,14 +2,16 @@ * * raylib [text] example - Font filters * -* After font loading, font texture atlas filter could be configured for a softer +* NOTE: After font loading, font texture atlas filter could be configured for a softer * display of the font when scaling it to different sizes, that way, it's not required * to generate multiple fonts at multiple sizes (as long as the scaling is not very different) * -* This example has been created using raylib 1.3.0 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.3, last time updated with raylib 4.2 * -* Copyright (c) 2015 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2015-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_font_loading.c b/examples/text/text_font_loading.c index 629901ad..6ebdbbcd 100644 --- a/examples/text/text_font_loading.c +++ b/examples/text/text_font_loading.c @@ -2,7 +2,7 @@ * * raylib [text] example - Font loading * -* raylib can load fonts from multiple file formats: +* NOTE: raylib can load fonts from multiple input file formats: * * - TTF/OTF > Sprite font atlas is generated on loading, user can configure * some of the generation parameters (size, characters to include) @@ -11,10 +11,12 @@ * - XNA Spritefont > Sprite font image, following XNA Spritefont conventions, * Characters in image must follow some spacing and order rules * -* This example has been created using raylib 2.6 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.4, last time updated with raylib 3.0 * -* Copyright (c) 2016-2019 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2016-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_font_sdf.c b/examples/text/text_font_sdf.c index e567d19b..9e746501 100644 --- a/examples/text/text_font_sdf.c +++ b/examples/text/text_font_sdf.c @@ -1,11 +1,13 @@ /******************************************************************************************* * -* raylib [text] example - TTF loading and usage +* raylib [text] example - Font SDF loading * -* This example has been created using raylib 1.3.0 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.3, last time updated with raylib 4.0 * -* Copyright (c) 2015 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2015-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_font_spritefont.c b/examples/text/text_font_spritefont.c index 9c45f0ed..109ab486 100644 --- a/examples/text/text_font_spritefont.c +++ b/examples/text/text_font_spritefont.c @@ -2,19 +2,22 @@ * * raylib [text] example - Sprite font loading * -* Loaded sprite fonts have been generated following XNA SpriteFont conventions: +* NOTE: Sprite fonts should be generated following this conventions: +* * - Characters must be ordered starting with character 32 (Space) * - Every character must be contained within the same Rectangle height * - Every character and every line must be separated by the same distance (margin/padding) * - Rectangles must be defined by a MAGENTA color background * -* If following this constraints, a font can be provided just by an image, -* this is quite handy to avoid additional information files (like BMFonts use). +* Following those constraints, a font can be provided just by an image, +* this is quite handy to avoid additional font descriptor files (like BMFonts use). +* +* Example originally created with raylib 1.0, last time updated with raylib 1.0 * -* This example has been created using raylib 1.0 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software * -* Copyright (c) 2014 Ramon Santamaria (@raysan5) +* Copyright (c) 2014-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_format_text.c b/examples/text/text_format_text.c index 11a2ed2f..dbdbb0fd 100644 --- a/examples/text/text_format_text.c +++ b/examples/text/text_format_text.c @@ -2,10 +2,12 @@ * * raylib [text] example - Text formatting * -* This example has been created using raylib 1.1 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.1, last time updated with raylib 3.0 * -* Copyright (c) 2014 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2014-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c index eb136eab..4d2eee44 100644 --- a/examples/text/text_input_box.c +++ b/examples/text/text_input_box.c @@ -2,10 +2,12 @@ * * raylib [text] example - Input Box * -* This example has been created using raylib 3.5 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.7, last time updated with raylib 3.5 * -* Copyright (c) 2017 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2017-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_raylib_fonts.c b/examples/text/text_raylib_fonts.c index 988e809a..f08569a2 100644 --- a/examples/text/text_raylib_fonts.c +++ b/examples/text/text_raylib_fonts.c @@ -1,14 +1,16 @@ /******************************************************************************************* * -* raylib [text] example - raylib font loading and usage +* raylib [text] example - raylib fonts loading * * NOTE: raylib is distributed with some free to use fonts (even for commercial pourposes!) * To view details and credits for those fonts, check raylib license file * -* This example has been created using raylib 1.7 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.7, last time updated with raylib 3.7 * -* Copyright (c) 2017 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2017-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c index 728a2b84..d2c992df 100644 --- a/examples/text/text_rectangle_bounds.c +++ b/examples/text/text_rectangle_bounds.c @@ -1,13 +1,15 @@ /******************************************************************************************* * -* raylib [text] example - Draw text inside a rectangle +* raylib [text] example - Rectangle bounds * -* This example has been created using raylib 2.3 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 2.5, last time updated with raylib 4.0 * * Example contributed by Vlad Adrian (@demizdor) and reviewed by Ramon Santamaria (@raysan5) * -* Copyright (c) 2018 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2018-2022 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_unicode.c b/examples/text/text_unicode.c index 87769372..fb6fec87 100644 --- a/examples/text/text_unicode.c +++ b/examples/text/text_unicode.c @@ -1,13 +1,15 @@ /******************************************************************************************* * -* raylib [text] example - Using unicode with raylib +* raylib [text] example - Unicode * -* This example has been created using raylib 2.5 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 2.5, last time updated with raylib 4.0 * * Example contributed by Vlad Adrian (@demizdor) and reviewed by Ramon Santamaria (@raysan5) * -* Copyright (c) 2019 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2019-2022 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5) * ********************************************************************************************/ diff --git a/examples/text/text_writing_anim.c b/examples/text/text_writing_anim.c index 30e6ac42..6beb3e55 100644 --- a/examples/text/text_writing_anim.c +++ b/examples/text/text_writing_anim.c @@ -2,10 +2,12 @@ * * raylib [text] example - Text Writing Animation * -* This example has been created using raylib 2.3 (www.raylib.com) -* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) +* Example originally created with raylib 1.4, last time updated with raylib 1.4 * -* Copyright (c) 2016 Ramon Santamaria (@raysan5) +* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, +* BSD-like license that allows static linking with closed source software +* +* Copyright (c) 2016-2022 Ramon Santamaria (@raysan5) * ********************************************************************************************/ |
