Alex Szpakowski
b1b70a83db
Add Joystick:set/getPlayerIndex
2021-02-15 16:08:23 -04:00
Alex Szpakowski
5e411f607f
Expose new gamepad buttons from SDL
2021-02-14 16:03:36 -04:00
Alex Szpakowski
04d59274ef
Merge branch 'master' into 12.0-development
2021-02-14 14:45:21 -04:00
Alex Szpakowski
1e27b1d6ed
Add Joystick:getGamepadType.
...
Return value is "unknown", "xbox360", "xboxone", "ps3", "ps4", "ps5", "switchpro", or "virtual".
2021-02-14 14:40:45 -04:00
Miku AuahDark
cbc0602620
Make sure to delete activity returned by SDL when calling getAssetManager()
2021-02-13 19:03:23 +08:00
Miku AuahDark
994cec9ee8
Add Android-specific conditionals.
2021-02-12 19:48:41 +08:00
Miku AuahDark
22455276f6
Implement experimental fusing method.
...
https://github.com/love2d/love-android/issues/201#issuecomment-772628115
2021-02-06 22:10:49 +08:00
Miku AuahDark
e967348409
Implement AAsset virtual archive for Android
2021-02-06 22:04:33 +08:00
Alex Szpakowski
694d448e83
Vertex shaders can write to gl_PointSize ( fixes #1603 ).
...
If a shader uses gl_PointSize then it can only be used when drawing points. If a shader doesn't use gl_PointSize then it can't be used when drawing points.
Added 'ConstantPointSize' and 'CurrentDPIScale' built-in shader uniforms.
ConstantPointSize is in DPI-scaled points, whereas gl_PointSize is in pixels, so to get the correct default behaviour a shader needs to do gl_PointSize = ConstantPointSize * CurrentDPIScale
2021-01-23 13:47:12 -04:00
Alex Szpakowski
deff795908
Rename some internal buffer enums to better match what they do
2021-01-17 20:59:16 -04:00
Alex Szpakowski
2e2ebe95cd
Clean up some obsolete internal graphics code
2021-01-17 16:50:44 -04:00
Alex Szpakowski
4244e01a35
More texture format support cleanup
2021-01-17 14:48:35 -04:00
Alex Szpakowski
ef5a0250e9
Fix compilation on windows
2021-01-17 14:13:16 -04:00
Alex Szpakowski
e2838131f2
Add love.graphics.copyBuffer.
2021-01-17 14:02:00 -04:00
Alex Szpakowski
e1f40b433d
Clean up some graphics enum declaration code
2021-01-16 20:51:06 -04:00
Alex Szpakowski
52238bb7d9
Add optional source data start index arg to Buffer:setArrayData
...
The argument list is now Buffer:setArrayData(data or table, sourceindex=1, destindex=1, count=automatically computed)
#1598
2021-01-16 20:34:27 -04:00
Alex Szpakowski
5e77944dc0
refactor texture format support internals
2021-01-16 13:09:01 -04:00
Alex Szpakowski
50ff86bd92
Graphics Buffers can be used as Shader Storage Buffers.
2021-01-10 17:53:12 -04:00
Alex Szpakowski
4ebe64afe1
Merge pull request #1662 from MikuAuahDark/full64bitludata
...
Allow full 64-bit lightuserdata usage if the LuaJIT supports it.
2021-01-09 11:44:13 -04:00
Miku AuahDark
4f491c2e61
Allow full 64-bit lightuserdata usage if the LuaJIT supports it.
...
Issue love2d/love-android#200
Original patch was sent by slime in Discord. Modified a bit to add
code that checks for 64-bit lightuserdata support.
2021-01-07 11:49:11 +08:00
Alex Szpakowski
6fede802b3
mpg123 isn't used in 12.x
2021-01-06 21:55:06 -04:00
Alex Szpakowski
633d2fa5c8
Merge branch 'master' into 12.0-development
2021-01-06 21:49:34 -04:00
Alex Szpakowski
9742adb1b9
macOS: add search paths for mpg123's headers
...
Needed for newer versions of mpg123
2021-01-05 17:37:01 -04:00
Alex Szpakowski
ecae291b53
Merge pull request #1658 from MikuAuahDark/tell64
...
Support for >2GB DroppedFile in desktops.
2021-01-02 16:12:51 -04:00
Alex Szpakowski
79d0a7a228
Merge pull request #1659 from slime73/filesystem
...
Expand love.filesystem APIs
- Add love.filesystem.mountFullPath and love.filesystem.unmountFullPath
- Add Add love.filesystem.mountCommonPath, love.filesystem.unmountCommonPath, and love.filesystem.getFullCommonPath
- Add readonly boolean field to the table returned by love.filesystem.getInfo
2021-01-02 13:43:45 -04:00
Alex Szpakowski
32a7d41df8
Merge branch '12.0-development' into filesystem
2021-01-01 19:42:20 -04:00
Alex Szpakowski
ff90a0dea6
physfs: improve mounted archive search when opening a file for write
2021-01-01 19:36:13 -04:00
Alex Szpakowski
cf67e97290
Fix another windows compile error
2021-01-01 16:41:39 -04:00
Alex Szpakowski
6e6292ccb2
Fix a potential compile error on Windows
2021-01-01 16:32:34 -04:00
Alex Szpakowski
f151190548
filesystem restructure work.
...
Add mount/unmountCommonPath, mount/unmountFullPath, getFullCommonPath.
Reimplement identity and save directory code in terms of new commonpath code.
Add internal createRealDirectory function (not exposed, currently).
2021-01-01 16:29:40 -04:00
Alex Szpakowski
f00f5cb51a
physfs: add PHYSFS_canUnmount
...
Fix unmount on a RW archive not checking if writable files are open
2021-01-01 16:25:50 -04:00
Miku AuahDark
61580c7a0d
Update src/modules/filesystem/DroppedFile.cpp
...
as suggested
Co-authored-by: Qais Patankar <qaisjp@gmail.com >
2021-01-01 20:48:15 +08:00
Alex Szpakowski
2bee42893b
physfs: fix indentation
2020-12-31 14:10:39 -04:00
Miku AuahDark
781acf5c4d
Support for >2GB DroppedFile in desktops.
2020-12-31 16:48:42 +08:00
Alex Szpakowski
f61a650a87
Add 'readonly' field to love.filesystem.getInfo's returned table
2020-12-31 00:06:41 -04:00
Alex Szpakowski
9e9fa71589
physfs: Add PHYSFS_mountRW
2020-12-30 22:54:08 -04:00
Miku AuahDark
7524677d4c
Don't use feof to check for end-of-file in DroppedFile.
...
Fixes #1551
Apparently `feof` is only set when `fread(..., size, count, ...) < size * count` happends,
however we actually have code that automatically adjust amount of bytes to read
(and at "eof" it really happends to be 0) so fread is never able to set the EOF flag.
2020-12-31 10:32:05 +08:00
Alex Szpakowski
c04b8d19a0
Merge pull request #1657 from qaisjp/feature/get-world-points
...
Fix #1614 : add Body:getLocalPoints
2020-12-30 14:17:06 -04:00
Alex Szpakowski
0ec7ea73de
Improve error message slightly
2020-12-30 11:46:00 -04:00
Qais Patankar
562cc6b1cb
Fix #1614 : add Body:getLocalPoints
2020-12-30 04:27:48 +00:00
Alex Szpakowski
2fb88cb4a5
Remove some obsolete code
2020-12-27 19:52:27 -04:00
Alex Szpakowski
2a5a90ccef
Add 'vertexmain' and 'pixelmain' shader entry points.
...
These are low level 'raw' entry points which don't declare any inputs or outputs themselves. They require GLSL 3 to use.
2020-12-27 19:17:47 -04:00
Alex Szpakowski
769fcf5fc6
macOS/iOS: allow c++17 language features
2020-12-27 15:01:09 -04:00
Alex Szpakowski
801bc4b5d4
Merge branch '12.0-development' into filesystem
2020-12-27 14:22:38 -04:00
Alex Szpakowski
2682b75ebc
Change macOS/iOS deployment targets to Xcode 12's minimums
2020-12-26 22:55:06 -04:00
Alex Szpakowski
65bfeedd4e
Merge branch 'master' into 12.0-development
2020-12-26 22:48:08 -04:00
Alex Szpakowski
95ab4054ff
Fix a freeze on Intel drivers when using mipmapped Canvases
...
Fixes #1585
Also disallow generateMipmaps on depth/stencil canvases because it's not really supported.
2020-12-26 16:37:37 -04:00
Alex Szpakowski
4f730e930b
Potential workaround for driver bug related to canvas mipmaps
2020-12-25 16:13:29 -04:00
Miku AuahDark
9c4db00e94
Android: Fix changing orientation with t.window.fullscreen = true
...
Fixes love2d/love-android#196
2020-12-25 21:45:32 +08:00
Alex Szpakowski
fe23c16198
Disable gamma correction on Windows + Intel HD 2/3000 / Intel HD Graphics
...
It's completely broken there. Closes #1592
2020-12-24 20:31:33 -04:00