Commit Graph

2941 Commits

Author SHA1 Message Date
Bart van Strien de29986d38 Minor performance tweaks for love::Type
On my system these tweaks restore performance to "enum" levels

--HG--
branch : dynamiccore2
2016-11-16 14:45:06 +01:00
Bart van Strien 9f6aa716fa Pass Type to luax_register_type by pointer instead of reference
Since the type is passed to va_start, and apparently that's undefined behaviour if it's a reference.

<Textmode> the best kind of behavior

--HG--
branch : dynamiccore2
2016-11-14 21:51:47 +01:00
Bart van Strien d967a755e5 Make love::Type handle type names
TODO: Fix undefined behaviour in luax_register_type, you can't use a va_list after a reference type

--HG--
branch : dynamiccore2
2016-11-14 21:06:53 +01:00
Bart van Strien 5d43c9601a Automatically deduce the type in luax_pushtype, if possible
--HG--
branch : dynamiccore2
2016-11-13 17:38:42 +01:00
Bart van Strien 7dd960619d Automatically deduce the type in luax_checktype, luax_getmodule, luax_optmodule and luax_totype
--HG--
branch : dynamiccore2
2016-11-13 17:13:40 +01:00
Bart van Strien 4a0a90e511 Include int.h to fix windows build
--HG--
branch : dynamiccore2
2016-11-13 16:51:27 +01:00
Bart van Strien 3b88c13535 Delete love::Type copy constructor
--HG--
branch : dynamiccore2
2016-11-13 16:46:26 +01:00
Bart van Strien c761202486 Build type information on first use (load-time), instead of using a hardcoded list
--HG--
branch : dynamiccore2
2016-11-13 16:38:57 +01:00
Bart van Strien 452a8a877e Don't set the enet global when requiring enet
--HG--
branch : minor
2016-11-02 13:08:56 +01:00
James Watkins-Harvey bdc653d9a5 Define LUASOCKET_API macro in header file instead of build time argument
--HG--
branch : minor
2016-10-25 10:34:17 -04:00
James Watkins-Harvey 7b513ea1a4 Updated cmake file list according to libsocket 3.0rc1: link with ws2_32.lib on Windows
--HG--
branch : minor
2016-10-06 23:13:16 -04:00
James Watkins-Harvey f8ce5f6621 Updated cmake file list according to libsocket 3.0rc1 (serial.c is unix only)
--HG--
branch : minor
2016-10-05 20:49:24 -04:00
James Watkins-Harvey d6dff12ad8 Updated cmake file list according to libsocket 3.0rc1
--HG--
branch : minor
2016-10-04 11:06:37 -04:00
James Watkins-Harvey 8885fc621d Updated luasocket to 3.0rc1 (git commit 316a945)
--HG--
branch : minor
2016-10-01 16:30:53 -04:00
Alex Szpakowski 889aaceabf enet: remove deprecated host:socket_get_address (replaced by host:get_socket_address).
--HG--
branch : minor
2016-10-30 01:08:46 -03:00
Alex Szpakowski 60d90ca4a8 Merge default into minor
--HG--
branch : minor
2016-10-30 01:07:39 -03:00
Alex Szpakowski 5ba449d1ff Add support for BC4-7 compressed texture formats in KTX files. Updated the changelog. 2016-10-29 23:42:40 -03:00
Alex Szpakowski 43fcacc653 Merged in nkorth/love (pull request #70)
Add 'ellipse' distribution to ParticleSystem
2016-10-29 15:35:10 +00:00
Alex Szpakowski ba21512259 Updated the changelog 2016-10-29 12:30:15 -03:00
Nathan Korth 53c528aa44 Add 'ellipse' distribution to ParticleSystem 2016-10-28 16:26:28 -04:00
Alex Szpakowski c6f8a1535d Fixed loading and saving 16 bit per component PNGs.
--HG--
branch : minor
2016-10-28 00:13:36 -03:00
Alex Szpakowski 3de1aa863a Fix encoding ImageData to 16 bit per color channel PNG.
--HG--
branch : minor
2016-10-27 22:23:24 -03:00
Alex Szpakowski db78c89639 Merged in brocoli_/love/set-raw-transform (pull request #69)
Added new raw values constructor to Matrix4 and Matrix4::setRawTransformation().
2016-10-26 20:39:34 +00:00
Julio Felipe Angelini cdf7199c48 Added new raw values constructor to Matrix4 and Matrix4::setRawTransformation().
--HG--
branch : set-raw-transform
2016-10-26 17:45:28 -02:00
Alex Szpakowski 5dd915ee8a whitespace and formatting cleanup
--HG--
branch : minor
2016-10-25 19:56:47 -03:00
Alex Szpakowski 8e1482dbd9 Merged in rcoaxil/love-patches/minor-manual-decoders (pull request #67)
decoder manual decoding and seeking implemented

--HG--
branch : minor
2016-10-25 22:50:53 +00:00
Bart van Strien 6d95ff7fb7 Remove old (cmake-only) workaround for issue #1173. 2016-10-25 15:33:30 +02:00
Bart van Strien 7a6e626c74 Make stb_image only use SSE2 on x86_64, or when an override has been set (fixes #1173)
Turns out, this is a gcc bug: detecting sse2 support cannot be done in shared
libraries. For now we'll assume 32-bit x86 builds are intended to also run on
devices without SSE2 (how old!). In the future we might decide we only support
machines that support SSE2, if we secretly don't already.
2016-10-25 15:21:31 +02:00
Alex Szpakowski ec7565176e Add love.window.isMaximized 2016-10-24 21:35:22 -03:00
Raidho 3b37cc9462 moved SoundData::load back to private
--HG--
branch : minor-manual-decoders
2016-10-25 00:58:44 +03:00
Alex Szpakowski 00d30b2a9d Merge default into minor
--HG--
branch : minor
2016-10-24 18:20:28 -03:00
Alex Szpakowski ff53e8fe71 Fix non-integer coordinates passed to ImageData:mapPixel/setPixel/getPixel and SoundData:set/getSample.
LuaJIT does interesting things when you index into a FFI array using a non-integer value.
2016-10-24 18:14:09 -03:00
Alex Szpakowski d57ce8ae73 The answer is no :( 2016-10-23 23:00:46 -03:00
Alex Szpakowski 295fff5db8 Testing whether appveyor can build with Windows XP support 2016-10-23 22:56:19 -03:00
Alex Szpakowski ddc4b06eba Moved the base Decoder implementation out of the lullaby subfolder.
--HG--
branch : minor
2016-10-23 21:32:20 -03:00
Raidho a605243709 made decode() always return new SoundData
--HG--
branch : minor-manual-decoders
2016-10-23 21:09:13 +03:00
Alex Szpakowski 894a44f45c Fix an incorrect delete call when out of memory. 2016-10-22 21:32:44 -03:00
Alex Szpakowski 0341fc1189 Reduce memory allocations for the SHA formats of love.math.hash.
--HG--
branch : minor
2016-10-22 21:31:48 -03:00
Alex Szpakowski a9d935caa1 Fixed compilation
--HG--
branch : minor
2016-10-21 23:43:26 -03:00
Alex Szpakowski 2222bb37d2 Removed gl.bindTexture, so it won't get accidentally used.
--HG--
branch : minor
2016-10-21 23:42:09 -03:00
Alex Szpakowski 14f1afa446 Reduce redundant glActiveTexture calls.
--HG--
branch : minor
2016-10-21 22:19:16 -03:00
Alex Szpakowski b9c01b8674 Merge default into minor
--HG--
branch : minor
2016-10-21 22:04:39 -03:00
Alex Szpakowski a9593d926e Fix love.math.noise(nil) to error instead of returning nil. 2016-10-20 22:57:12 -03:00
Alex Szpakowski d1c5edd792 Prevent redundant glBindBuffer calls.
--HG--
branch : minor
2016-10-20 21:50:48 -03:00
Alex Szpakowski 4c122e6581 Add love.graphics.transformPoint and love.graphics.inverseTransformPoint.
--HG--
branch : minor
2016-10-20 18:13:20 -03:00
Alex Szpakowski be1a59fb18 Disable 64 -> 32 bit integer conversion warnings in Xcode. lodepng and luasocket both generate a lot of them...
--HG--
branch : minor
2016-10-18 23:35:37 -03:00
Alex Szpakowski 27044e6eb8 Update tinyexr.
--HG--
branch : minor
2016-10-18 23:30:52 -03:00
rcoaxil 78f5779214 decoder manual decoding and seeking implemented
decode() uses supplied SoundData to decode to, creates new SoundData if none provided
returns SoundData containing decoded data, nil if decoder didn't produce any data
seek() only works with seconds

--HG--
branch : minor-manual-decoders
2016-10-19 05:29:08 +03:00
Raidho 1d883110c5 Created new branch minor-manual-decoders
--HG--
branch : minor-manual-decoders
2016-10-19 02:24:43 +00:00
Alex Szpakowski 0653ec9564 Address some compiler warnings about implicit integer conversions.
--HG--
branch : minor
2016-10-18 22:32:35 -03:00