raysan5
fcdb120935
Comment tweaks
2020-03-23 20:24:20 +01:00
raysan5
8f45370073
Comment tweaks
2020-03-23 20:24:09 +01:00
raysan5
5aebd2a16c
Review formating from PR #1138
2020-03-21 20:30:40 +01:00
Sourav Gupta
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
...
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
2020-03-21 20:23:50 +01:00
Doyle
01e035e28b
Android: Track touch motion across screen ( #1137 )
...
This was working in 2.6 but no longer does in current git tree.
It appears touch position is only tracked on
AMOTION_EVENT_ACTION_[DOWN|UP], which only registers the initial touch
on the screen. Subsequent movement is not tracked into CORE.
Touch position and the Gesture System appears to be updated twice in
AndroidInputCallback in what looks like perhaps a copy paste error (code
is identical) with the exception of tracking AMOTION_EVENT_ACTION_UP in
the 2nd copy of the code (but this is not necessary to track).
If you need to track the first touch or release touch position, you can
do so with checking IsMouseButton[Pressed|Released] on the same frame.
This patch makes it so the touch position is always updated, and merges the
duplicated code into 1 singular code path.
2020-03-19 16:56:48 +01:00
raysan5
4af4483f5f
Added security check in case init fails #1135
2020-03-17 20:57:01 +01:00
raysan5
2344941974
Replace external libraries custom allocators by raylib ones #1074
...
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
2020-03-17 13:40:07 +01:00
raysan5
71b06caed4
Corrected typo
2020-03-15 17:06:08 +01:00
raysan5
4611406c68
REVIEWED: ImageTextEx() to support line breaks #1131
...
NOTE: This functionality has an important issue, line space is fixed to 1.5 font.baseSize pixels, depending on the font and how it has been generated that spacing could be too wide or too narrow...
2020-03-15 16:18:48 +01:00
Doyle
427be604b9
Android: Set display.[width, height] before screen size check ( #1132 )
...
In `InitGraphicsDevice(...)`, the Android section has a screen security check
like other platforms- but CORE.display.width, CORE.display.height are
not set yet, so the security check sets it to 0. So ensure we query the
device's screen width and height before the screen size security check.
This also gives you the ability to run a proper full-screen application
on Android without any scaling and guess work on the target device by
setting screen width and height to 0 in `InitWindow(...)` and using
`GetScreen[Width|Height]()` to get the actual values.
2020-03-15 15:56:43 +01:00
Ray
d57b5ac89a
Added note on transparent framebuffer w/o X11 on RPI
2020-03-12 17:47:35 +01:00
Ray
7fa12844ed
[text] TextToUpper(): Added note on diacritics
2020-03-12 13:02:09 +01:00
Ray
4c728f0b54
Minor tweaks
2020-03-09 18:45:37 +01:00
Ray
5895fb6adc
Address issue #1125
2020-03-09 13:01:10 +01:00
SasLuca
680f9d5772
Changed if
to else if
. ( #1122 )
2020-03-08 18:03:23 +01:00
Ray
c67bc02dd1
Reviewed missing include
2020-03-07 21:54:54 +01:00
Ray
fb2ed693e4
Android: Support file saving to internal data storage
2020-03-05 18:12:41 +01:00
Ray
966e8adcf9
Reviewed and Updated Android compilation scripts
2020-03-05 12:25:39 +01:00
Ray
c3386300d3
Remove comment
2020-03-04 18:23:31 +01:00
Ray
74c486201d
ADDED: LoadFileText() and SaveFileText()
...
Improved file access checks
2020-03-04 00:21:46 +01:00
Ray
6b8f30964d
WARNING: Corrected issue with IsKeyDown() #1119
2020-03-03 16:43:15 +01:00
Ray
dc2e5c1751
Update core.c
2020-03-03 16:10:31 +01:00
Ray
645a5b2507
Avoid icons in shell
...
Very weird... lately icons are not properly displayed on browser!
2020-03-03 15:53:13 +01:00
Ray
3a073db029
REVIEWED: Mouse/Touch input system
...
After several reviews, now it seems everything works as expected.
2020-03-03 14:58:54 +01:00
Ray
a6297a2be1
Some code tweaks
2020-03-03 01:21:06 +01:00
Ray
8724cf2ea5
Support any mouse button for gesture detection
2020-03-02 13:29:36 +01:00
Ray
08615d3247
Review some comment
2020-03-02 12:22:57 +01:00
i-right-i
3c2ee1cc75
Update raymath.h ( #1118 )
...
* Update raymath.h
Added Vector2Rotate Function.
* Update raymath.h
2020-03-02 10:22:08 +01:00
Ray
2f5a7ddcc6
Added comment on IsMouseButtonDown() issue
...
IsMouseButtonDown() does not process touch state down properly, state is reseted every frame...
2020-03-02 00:07:06 +01:00
Ray
18a9982126
Reviewed IsMouseButtonDown()
2020-03-01 01:29:34 +01:00
Ray
7428747ef0
REDESIGNED input system for better mouse/touch support
2020-02-29 22:10:23 +01:00
Ray
1ee6290fcf
Replaced fabs() by fabsf() when required
2020-02-28 12:54:39 +01:00
brankoku
572969d8b7
LoadText()
tweak (#1113 )
...
Guarantee string is zero-terminated
2020-02-28 08:23:05 +01:00
Ray
f2247c6f0a
REVIEWED: LoadText()
2020-02-28 00:32:46 +01:00
Ray
05992a6fce
Tweaks
2020-02-27 16:37:32 +01:00
Ray
c8464bc731
Corrected return value
2020-02-27 16:22:34 +01:00
Ray
b2098a2d60
REDESIGN: ExportImage()
...
Use new file I/O ABI
2020-02-27 16:15:58 +01:00
Ray
ac73e3b5e2
REDESIGN: ExportWave()
...
Use new file I/O ABI
2020-02-27 16:15:20 +01:00
Ray
1be68d8cfe
Tweak on variable init
2020-02-27 16:14:50 +01:00
Ray
eb86d69a38
Review default config flags
2020-02-27 16:14:31 +01:00
Ray
acfa967e89
Corrected issue with variable name
2020-02-27 13:56:27 +01:00
Ray
5ff0776235
Remove trail spaces and some tweaks
2020-02-27 13:33:09 +01:00
Ray
2a408d789c
REDESIGNED: LoadImage() -WIP-
...
Using new file I/O ABI
2020-02-27 13:21:51 +01:00
Ray
5100cb3e7f
REDESIGNED: LoadImageRaw(), LoadAnimatedGIF()
...
Using new file I/O ABI
2020-02-27 13:21:21 +01:00
Ray
b029fb6d31
REDESIGNED: LoadFontEx()
...
Using new file I/O ABI
2020-02-27 13:19:58 +01:00
Ray
245ba2a152
LoadText(): Added comment
2020-02-27 13:19:13 +01:00
Ray
89ecad1e29
Review macros
2020-02-27 13:18:55 +01:00
Ray
23bde477e5
REDESIGN: LoadStorageValue()/SaveStorageValue()
...
Using new file I/O ABI
2020-02-27 13:18:15 +01:00
Ray
5aed36e76d
Tweaks on fullsccreen detection...
2020-02-26 23:42:06 +01:00
Ray
e5b5aea998
WARNING: RENAMED: Storage functions
...
Renamed functions for consistency:
- StorageLoadValue() > LoadStorageValue()
- StorageSaveValue() > SaveStorageValue()
2020-02-26 23:40:53 +01:00