* REDESIGNED input system for better mouse/touch support
* Update Makefile
* Reviewed IsMouseButtonDown()
* Added comment on IsMouseButtonDown() issue
IsMouseButtonDown() does not process touch state down properly, state is reseted every frame...
* Update textures_mouse_painting.c
* Update raymath.h (#1118)
* Update raymath.h
Added Vector2Rotate Function.
* Update raymath.h
* Support touch drawing on web
* Review some comment
* Review shader exaples to work on web (GLSL 100)
* Support any mouse button for gesture detection
* Some code tweaks
* REVIEWED: Mouse/Touch input system
After several reviews, now it seems everything works as expected.
* Avoid icons in shell
Very weird... lately icons are not properly displayed on browser!
* Update core.c
* WARNING: Corrected issue with IsKeyDown() #1119
* ADDED: LoadFileText() and SaveFileText()
Improved file access checks
Co-authored-by: Ray <raysan5@gmail.com>
Co-authored-by: i-right-i <olmstead.ben@gmail.com>
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.
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
Namely:
- GenImageHorizontalV
- GenImageHorizontalH
- GenImageChecked
- GenImageWhiteNoise
- GenImageCellular
The gradient implementation may be a bit naive, for example it doesn't do any gamma correction.