Alex Szpakowski
ce18340312
Update xcode project with new files.
2022-04-21 20:02:48 -03:00
Alex Szpakowski
c09fef8e79
Audio source decoding improvements.
...
- Streaming sources now also stream the file contents instead of loading it into memory, by default. Added a new stream type enum parameter to newSource ("file" or "memory").
- Audio file decoding now chooses the most appropriate decoder based on the file contents instead of the file extension.
- Videos now stream audio from the file instead of loading all of the video file into memory for use with audio decoding.
2022-04-21 19:57:32 -03:00
Alex Szpakowski
d5865e160c
File objects inherit from Stream.
2022-04-21 19:53:27 -03:00
Alex Szpakowski
1e85893abb
Add new DataStream subclass of Stream, internal-only for now.
2022-04-21 19:52:46 -03:00
Alex Szpakowski
ceb23eee48
Add new Stream base class, internal-only for now.
2022-04-21 19:52:04 -03:00
Alex Szpakowski
76193899b3
Fix compilation...
2022-04-18 20:53:46 -03:00
Alex Szpakowski
bb9c342972
Remove unused GME sound decoder backend.
2022-04-18 20:41:55 -03:00
Alex Szpakowski
71a7aed441
minor cleanup of some audio decoder code.
2022-04-18 20:12:08 -03:00
Alex Szpakowski
e61a664a8b
ImageData: limited support for integer pixel formats.
...
For now this doesn't support conversions (get/set/mapPixel, etc). Just the ability for ImageData to contain integer pixel contents, for example via Canvas:newImageData.
2022-04-18 10:46:02 -03:00
Alex Szpakowski
5175b0d1b5
Windows: fix some cases of stuttering in windowed mode.
...
Use DwmFlush instead of OpenGL vsync, when specific conditions are met. Fixes #1628 .
2022-04-17 11:26:06 -03:00
Alex Szpakowski
8d3730361b
Add love.dropbegan and love.dropcompleted callbacks.
...
Resolves #1346
2022-04-16 16:47:31 -03:00
Miku AuahDark
321397d1dd
Add love.keyboard.isModifierActive.
2022-04-16 11:15:01 +08:00
Alex Szpakowski
0b6722ea0e
Merge branch 'main' into 12.0-development
2022-04-15 23:47:28 -03:00
Alex Szpakowski
b3b1317f61
linux: fix issues if certain codepaths are hit while signal handlers are temporarily off.
2022-04-15 23:43:30 -03:00
Alex Szpakowski
e512eff37b
Fix love.threaderror when the error message is empty.
...
Fixes #1775
2022-04-15 23:31:57 -03:00
Alex Szpakowski
34f036f2e1
Rename 'display' field to 'displayindex' in setMode and love.conf.
...
Fixes #1711 .
2022-04-15 23:16:13 -03:00
Alex Szpakowski
9682c7a5ad
Fix lua https library when building with autotools
2022-04-11 20:50:22 -03:00
Alex Szpakowski
941fe51ba6
Merge pull request #1782 from MikuAuahDark/dotrequire
...
Show deprecation notice when slashes is passed to require.
2022-04-02 21:19:59 -03:00
niki
6dc12be45d
fix crash on resizing
2022-03-22 14:32:41 +01:00
niki
158052c52c
implement basic per frame uniform variables
2022-03-22 14:31:50 +01:00
niki
157c8f8a20
include custom vulkan shader in love source
2022-03-21 15:26:27 +01:00
Miku AuahDark
730cb08acf
Minor fix to love.localechanged callback.
...
Wrong callback placement.
2022-03-18 10:30:31 +08:00
Miku AuahDark
5603c8915b
Update changelog for getPreferredLocales and localechanged.
2022-03-17 23:41:16 +08:00
Miku AuahDark
75b1098572
Add love.localechanged callback.
2022-03-17 23:39:54 +08:00
Miku AuahDark
c2104f896a
Add love.system.getPreferredLocales()
2022-03-17 23:38:25 +08:00
Alex Szpakowski
c35356c841
Merge pull request #1787 from ylme/fix-compile-error
...
Windows: Fix compile error loses precision
2022-03-12 12:57:09 -04:00
Yan
09725dd3b9
Windows: Fix compile error: cast from 'HINSTANCE' to 'int' loses precision
2022-03-13 00:26:04 +08:00
Miku AuahDark
9c75f816fe
Remove Android.mk
...
We no longer using ndk-build in 12.0.
2022-03-05 21:46:52 +08:00
Miku AuahDark
6031a6c636
Fix Android compile error.
2022-03-05 21:46:33 +08:00
Miku AuahDark
767edc5f84
Add HAS_SOCKLEN_T to Android config.h
2022-03-05 15:27:06 +08:00
Miku AuahDark
405e33a689
Use int instead of PixelFormatUsageFlags for isPixelFormatSupported.
2022-03-05 13:42:20 +08:00
Miku AuahDark
00e4ec1e04
Show deprecation notice when slashes is passed to require.
...
Closes #1773
2022-03-02 08:01:59 +08:00
Miku AuahDark
7b3e2182aa
Use std::stringstream when building deprecation text.
2022-03-01 22:33:33 +08:00
Alex Szpakowski
0fa00e0bdc
love.graphics.newShader: add a compile options table parameter.
...
The only field currently read from the table is 'defines', which can contain either an array of define names, or name-value pairs.
For example: newShader(file, {defines={"MYFEATURE_ENABLED", MYSETTING=1}})
Fixes #1577
2022-02-20 12:23:41 -04:00
Alex Szpakowski
bc1c38d361
improve logic for detecting when Texture:generateMipmaps is supported
2022-02-19 16:34:52 -04:00
Alex Szpakowski
6e35ffe2d8
metal: fix window pixel size when resizing
2022-02-19 14:17:37 -04:00
Alex Szpakowski
171533dbf8
Another shader fix for metal+iOS
2022-02-15 21:16:55 -04:00
Alex Szpakowski
caf89998cc
iOS: fix shader compilation with metal
2022-02-15 21:12:13 -04:00
Alex Szpakowski
0d74419259
cmake: add warning about use on macOS
2022-02-13 16:11:58 -04:00
Alex Szpakowski
be73434bec
Merge pull request #1772 from eliteraspberries/cmake-macos
...
CMake: Allow LuaJIT on macOS.
Note that love doesn't officially support using cmake on Apple platforms.
2022-02-13 16:06:22 -04:00
Alex Szpakowski
c28731ea80
opengl: fix love's internal quad index buffer failing to populate
2022-02-12 09:37:30 -04:00
Mansour Moufid
b822b9cbe7
Prepend LOVE_INCLUDE_DIRS rather than append.
2022-02-06 17:06:37 -05:00
niki
197dfb9738
start implementing vulkan Shader type
2022-02-06 22:56:24 +01:00
Mansour Moufid
440bbeb9b3
Link to system frameworks.
2022-02-06 16:38:47 -05:00
Mansour Moufid
a6b6103b87
Enable LuaJIT on macOS.
2022-02-06 16:38:21 -05:00
Miku AuahDark
839425f661
Merge branch 'mi-12.x' into 12.0-development
2022-02-06 22:16:38 +08:00
Alex Szpakowski
d4c1025070
Merge branch 'main' into 12.0-development
2022-02-05 21:40:24 -04:00
niki
4692a0490c
basic functionality for indexed draw in vulkan
2022-02-06 02:11:20 +01:00
niki
c398fdecb6
Merge branch 'vulkan' of https://github.com/nikeinikei/love into vulkan
2022-02-05 20:45:24 +01:00
niki
7d680838b6
restructure to not hardcore draw vk commands
2022-02-05 20:44:36 +01:00