65b7047111
Remove some [textures] function dependencies
...
- LoadFontDefault() -> Some code simplifications
- LoadFontFromImage() -> Avoid LoadImageEx()
- LoadFontData() -> Avoid GenImageColor(), ImageFormat()
- LoadBMFont() -> Avoid ImageCopy(), ImageFormat()
2020-05-14 13:36:22 +02:00
ca6016cc71
TextToInteger() always exposed
2020-05-14 13:32:57 +02:00
7efed56b66
Added [text] flag: SUPPORT_TEXT_MANIPULATION
2020-05-09 12:38:33 +02:00
959447d8ed
Reorganized texture functions
...
Removed ImageAlphaMask() dependency on [text] LoadBMFont()
2020-05-09 12:05:00 +02:00
6fa6757a8b
Comment tweak
2020-05-07 13:39:41 +02:00
fdad1f023b
Avoid all MSVC compile warnings
...
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.
2020-05-06 19:12:09 +02:00
51c3bef497
Review exposed #defines and allow user re-defining
...
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.
2020-05-01 17:31:44 +02:00
2d6303e9fe
Allow for empty replacement string ( #1178 )
2020-04-05 22:42:59 +02:00
9c280bc7af
TextReplace changes ( #1172 )
...
- Added NULL return if the replacement string (`by`) is empty
- Reordered sanity checks since there's no need to initialize variables if the strings are invalid.
2020-04-04 14:25:57 +02:00
8444c3f705
Fixed offset check in GenImageFontAtlas ( #1171 )
...
* Fixed offset check in GenImageFontAtlas
* Fixed code formatting to follow raylib notation rules
2020-04-02 23:53:29 +02:00
e8a8d544c5
Review formating and signegness issues
2020-03-30 14:38:16 +02:00
d28e73849b
Review TRACELOG() messages
2020-03-27 18:49:21 +01:00
b5842434c2
Corrected missing semicolon
2020-03-27 18:31:16 +01:00
bc2c6251f8
[text] Review TRACELOG() messages, categorized
2020-03-27 17:16:07 +01:00
7ae7a87f8a
Remove trail spaces
2020-03-25 19:41:51 +01:00
e07281f8bd
Fixed DrawTextRecEx() selection when wordwrap is ON (again) ( #1149 )
2020-03-25 10:27:43 +01:00
4af4483f5f
Added security check in case init fails #1135
2020-03-17 20:57:01 +01:00
7fa12844ed
[text] TextToUpper(): Added note on diacritics
2020-03-12 13:02:09 +01:00
c3386300d3
Remove comment
2020-03-04 18:23:31 +01:00
1be68d8cfe
Tweak on variable init
2020-02-27 16:14:50 +01:00
5ff0776235
Remove trail spaces and some tweaks
2020-02-27 13:33:09 +01:00
b029fb6d31
REDESIGNED: LoadFontEx()
...
Using new file I/O ABI
2020-02-27 13:19:58 +01:00
c5d5d19443
Remove trail spaces
2020-02-26 20:23:55 +01:00
a77273d8d8
Make sure current text buffer is empty #1109
2020-02-24 11:15:02 +01:00
d62a2f793f
Improved GetFPS() calculation for average
2020-02-19 12:20:15 +01:00
39e73ccc4d
[text] TextLength() security check
2020-02-17 00:47:05 +01:00
484c6b360f
Reviewed Cppcheck issues #1098
2020-02-12 13:16:18 +01:00
34fafb733f
Corrected issue with toupper() usage
2020-02-09 16:11:32 +01:00
f4ca5b378a
Review missing include
2020-02-06 18:10:52 +01:00
86bdf60887
Corrected issue with TextToUpper() and TextToLower()
...
This issue was breaking multiple things...
2020-02-06 17:52:33 +01:00
b5fe41f41a
Review libc dependencies and remove when possible
...
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
2020-02-04 16:55:24 +01:00
c3f06b7470
Remove all trail spaces
2020-02-03 19:26:28 +01:00
cde26c743c
Replace TraceLog() function by TRACELOG macro
...
Added SUPPORT_TRACELOG_DEBUG config
2020-02-03 19:13:24 +01:00
5ec87c4c6f
ADDED: TextCopy() #1083
2020-01-26 18:38:46 +01:00
7ae426c377
Redesigned TextToInteger()
2020-01-24 17:58:19 +01:00
49b723e76d
Correct issue with define
2020-01-22 15:11:22 +01:00
9c52a4932d
Corrected issue with types
2020-01-19 12:49:33 +01:00
bec467705e
Review custom allocators
2020-01-19 11:23:38 +01:00
1f82b0d847
Comment tweak
2020-01-15 13:13:30 +01:00
b0ce16b460
LoadFontData(): generate empty image for space
...
This could be required on texture packing ;)
2020-01-15 11:53:46 +01:00
b5b3bbb30b
Review variable name
2020-01-06 19:49:52 +01:00
21c30f43d4
Update year to 2020
2020-01-05 20:01:54 +01:00
08adb4b8c3
Check and testing timming #865
2019-12-04 17:59:17 +01:00
3ffe34f9bb
ADDED: DrawTextCodepoint()
...
- Renamed GetGlyphIndex() parameter
- Review DrawTextEx() implementation
- Review DrawTextRecEx() implementation
2019-12-01 13:28:14 +01:00
d5aab98ac9
Review PR #1015
...
Just simplified code a bit
2019-11-24 14:08:27 +01:00
1f66f0d9a2
[text] TextFormat() caching ( #1015 )
2019-11-24 14:01:35 +01:00
75b0264f35
fix various problems, thanks CppCheck :) ( #1005 )
...
* explained a bit more the core_window_letterbox example
* fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-29 15:57:19 +01:00
d73abe73e5
REDESIGN: TextToUtf8()
...
ADDED: CodepointToUtf8()
2019-10-28 20:53:32 +01:00
f6df47dfe5
ADDED: TextToUtf8() -WIP-
...
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
2019-10-27 23:56:48 +01:00
06910eedfd
Minor comment tweak
2019-10-22 23:15:26 +02:00