Commit Graph

2090 Commits

Author SHA1 Message Date
Alex Szpakowski 22056271ec love.graphics.circle/ellipse/arc/rectangle now take transformation scale into account when determining the number of segments to use. Resolves issue #1184.
--HG--
branch : minor
2016-08-13 12:43:52 -03:00
Alex Szpakowski e9ac008f43 Merge default into minor
--HG--
branch : minor
2016-08-13 12:41:14 -03:00
Alex Szpakowski 3e678fc462 Fix SpriteBatch:setBufferSize to keep old sprite data if it can fit (resolves issue #1204). 2016-08-12 23:44:16 -03:00
Bart van Strien 57e4ec78e3 Prevent attaching a MouseJoint to a kinematic body (fixes #1185)
It turns out, calling World:update() after attaching a MouseJoint to a
kinematic body causes an exception. Normally the wrapper catches the exception,
but somehow this exception cannot be caught. Wonderful.
2016-08-02 14:26:51 +02:00
Bart van Strien 0ce44e465d Catch possible Box2D exception in Fixture:getBoundingBox() (fixes #1196) 2016-08-02 13:07:05 +02:00
Alex Szpakowski fc2c79ad5f Add EdgeShape:set/getNext/PreviousVertex. ChainShape:setNext/PreviousVertex can now take no arguments to disable ghost vertices.
Resolves issue #1191.
2016-08-01 10:15:34 -03:00
Alex Szpakowski 3157e5df7b Added ChainShape:getNext/PreviousVertex (see issue #1191). Thanks airstruck! 2016-07-31 14:25:12 -03:00
Alex Szpakowski 55cb2fad84 Fixture:setCategory and Fixture:setMask now accept a table of categories/masks (resolves issue #1178). 2016-07-31 11:51:53 -03:00
Alex Szpakowski 0a534d4751 Fixed ChainShape:setPreviousVertex. 2016-07-28 18:08:27 -03:00
Leonardo Etcheverry a11c7278c8 Fix FT_Get_Kerning using char codes instead of glyph indices. 2016-07-20 21:52:56 -03:00
Alex Szpakowski 8ea1edbc2a Cause a Lua error instead of silently failing if a vertex buffer memory allocation fails. 2016-07-17 17:44:38 -03:00
Bart van Strien 877ebbf9c9 Make WheelJoint/PrismaticJoint:getAxis return a world vector (refs #1176) 2016-07-15 12:20:58 +02:00
Bart van Strien 803cdccc1f Add love.window.updateMode (resolves #1037)
--HG--
branch : minor
2016-07-14 18:43:30 +02:00
Bart van Strien 990839383f Merge default into minor
--HG--
branch : minor
2016-07-14 18:42:42 +02:00
Bart van Strien 65f53a491f Make MouseJoint:getBodies() return only one body (fixes #1179)
Override Joint's Body getters in MouseJoint, to make the second (user-supplied) body the first body returned, and return nil for the second (internal) body
2016-07-14 16:39:29 +02:00
Bart van Strien 7266fa4fc5 Fix memory leak in Text:set (fixes #1181) 2016-07-14 14:22:38 +02:00
airstruck 9a2f99dc3d Added 2-point version of love.physics.newRevoluteJoint (fixes #1175) 2016-07-07 21:18:35 +02:00
airstruck 24da8433d0 Expose axis vector of PrismaticJoint and WheelJoint (fixes #1176) 2016-07-07 21:13:49 +02:00
Bart van Strien 516c0cc21d Merge default into minor
--HG--
branch : minor
2016-06-21 16:07:32 +02:00
Bart van Strien debea1192b Fixed large burst of particles when dramatically increasing the emission rate of a ParticleSystem. (fixes #1169) 2016-06-21 15:48:49 +02:00
Bart van Strien b328049517 Fix print coloring bug with empty strings (fixes #1171) 2016-06-11 19:51:51 +02:00
Alex Szpakowski 57b70e2a7b The format of the ImageData returned by Canvas:newImageData now matches the Canvas' format as best as possible.
--HG--
branch : minor
2016-05-23 13:21:44 -03:00
Alex Szpakowski d50cf0ac4a Prevent linear filtering on RGBA32F images when the system doesn't support it.
--HG--
branch : minor
2016-05-22 15:59:09 -03:00
Alex Szpakowski e71f95595c ImageData (and Images loaded from them) now support different data formats. Resolves issue #1048.
Currently exposed formats are rgba8 and rgba16 (normalized), and rgba16f and rgba32f (floating-point). Some systems, especially mobile ones, won't support every format when creating a love.graphics Image. Use love.graphics.getRawImageFormats to check for support.

love.image.newImageData now takes an optional format parameter as its third argument when creating an empty sized ImageData. It defaults to rgba8.

16-bit PNGs, .hdr images, and floating-point OpenEXR images can now be loaded via love.image.newImageData and love.graphics.newImage.

--HG--
branch : minor
2016-05-22 15:28:20 -03:00
Alex Szpakowski 3e6d01748e Merged default into minor
--HG--
branch : minor
2016-05-22 15:11:15 -03:00
Alex Szpakowski 9900051647 Improved performance of ImageData:mapPixel when JIT compilation is unavailable (e.g. on iOS and Android) 2016-05-21 22:18:12 +00:00
Alex Szpakowski 4666d83beb Fixed ImageData:mapPixel again, for non-JIT platforms this time.
--HG--
branch : minor
2016-05-21 15:24:11 -03:00
Alex Szpakowski 963b4c4447 Fixed ImageData:mapPixel's color component arguments to the mapping function to be within [0, 1] instead of [0, 255].
--HG--
branch : minor
2016-05-21 14:46:17 -03:00
Alex Szpakowski 8b920ba816 Improved the numeric distribution of love.math.random.
--HG--
branch : minor
2016-05-15 10:25:08 -03:00
Alex Szpakowski 31b44797bc Merge default into minor
--HG--
branch : minor
2016-05-12 18:20:01 -03:00
Alex Szpakowski d6310ca87f Fixed glyphs being added to partially out-of-bounds positions in Font texture atlases in rare cases (resolves issue #1162). 2016-05-11 21:38:12 -03:00
Alex Szpakowski d28bc1f42e Fixed a warning about a missing newline at the end of a file. 2016-05-01 21:04:01 -03:00
EntranceJew 67c5eb77ae Put methods for getTexture* on Quad 2016-04-14 18:36:47 -04:00
EntranceJew b2b02c4f8e Exposed getTextureDimensions on Quad 2016-04-14 18:32:39 -04:00
T-Bone 4ef7504c05 Fixed things pointed out by Alex Szpakowski and Bart von Strien 2016-04-09 07:28:03 +02:00
Bart van Strien 55aa09bb42 Allow seeking all paused sources (fixes #1152)
Previously, sources that had never been started, were paused with 'stop', or had finished playing, aka the 0.10.x definition of stopped, would ignore seek.

--HG--
branch : minor
2016-04-08 14:28:22 +02:00
T-Bone b2291fb62a Fixes to make Löve compile on Windows 10 UWP 2016-04-07 22:56:03 +02:00
Alex Szpakowski 094f9a13fe Merge default into minor
--HG--
branch : minor
2016-04-03 10:59:47 -03:00
Alex Szpakowski 03801e49d6 Fix a potential issue when an OpenAL source that was previously static is reused for a streaming Source. 2016-04-03 09:58:17 -03:00
Alex Szpakowski 8cad9c8bf0 Only allow multiply blending when the 'premultiplied' blend alpha mode is used, since the formula only works with that anyway.
--HG--
branch : minor
2016-04-02 18:28:16 -03:00
Alex Szpakowski 1eed86426b Merge default into minor
--HG--
branch : minor
2016-04-02 18:27:33 -03:00
Alex Szpakowski 901cc362df Added 'shaderswitches' to love.graphics.getStats. 2016-04-02 18:14:52 -03:00
Bart van Strien 0aaaf6b6f0 Make hash constants static, and out-of-line hopefully fixes compilation errors with vc++.
--HG--
branch : minor
2016-04-02 19:01:38 +02:00
Bart van Strien 3a2e859acd Add love.math.hash, which supports MD5/SHA-1/SHA-2.
--HG--
branch : minor
2016-04-02 18:39:53 +02:00
Bart van Strien f76879c6b7 New audio playback API
Instead of having three states, stopped, paused and playing, now there's only
two states: paused and playing.

This means resume() is gone, as is isStopped(), and isPaused() has become
isPlaying(). stop() now pauses and rewinds, whereas pause() only pauses.
rewind() has been removed, and should either be replaced with stop() or
seek(0).

The same has been applied to the functions in the love.audio module, except they
get some extra magic:

- love.audio.pause() now returns a table/list of Source objects, which contains
  only the sources it has just paused. This means you can then later restart
  only them, instead of everything (as before).
- love.audio.play/pause/stop now have variants that take a list of Source
  objects, and it starts or stops them all at the same time, this means calling
  play(srcA, srcB) should mean srcA and srcB are much more (but possibly not
  exactly) synchronised than they were with play(srcA); play(srcB).

--HG--
branch : minor
2016-04-02 17:38:19 +02:00
Bart van Strien db8e7a7670 Merge default into minor
--HG--
branch : minor
2016-04-02 17:19:20 +02:00
Alex Szpakowski 175c3af10b Updated stb_image to 2.12. 2016-04-02 12:02:39 -03:00
Alex Szpakowski 1b1572ad85 love.filesystem.mount accepts DroppedFiles in the first parameter. You could previously pass in DroppedFile:getFilename() and it would work too, this just makes it a bit nicer. 2016-03-31 17:58:27 -03:00
Bart van Strien 8dd7cc16ab Fix end-of-stream detection for videos
Fixes hang when a video file contains frames past the end of the video stream
2016-03-29 22:43:20 +02:00
Alex Szpakowski cc1b9bc619 Moved most love.math functions out of the Math class, since they're pure functions.
--HG--
branch : minor
2016-03-28 19:46:29 -03:00