Alex Szpakowski
5f64737956
Shader:send now optionally accepts a Data object (with optional byte offset and size parameters). Resolves issue #1343 .
...
Also changed the optional 'columnMajor' argument of the matrix variant of Shader:send and Transform:setMatrix to accept enum constants instead. Valid values are "row" and "column".
--HG--
branch : minor
2017-09-23 19:47:57 -03:00
Bart van Strien
77663ed847
Replace love.graphics.pop("all") with love.graphics.getStackDepth ( resolves #1248 again)
...
The pop("all") api was a bit awkward, especially considering there's a
push("all") that does something else. I think any use case that benefited from
pop("all") benefits from getStackDepth just as much if not more. There is also
additional functionality, like being able to find the source of a mismatched
push/pop.
--HG--
branch : minor
2017-09-23 10:56:54 +02:00
Alex Szpakowski
8ea2f09a1c
Fix Fixture:getShape. Resolves issue #1319 .
...
--HG--
branch : minor
2017-09-22 20:31:24 -03:00
Alex Szpakowski
4ee85e1793
love get* APIs which return tables with fields can optionally accept a table argument to fill in, instead of creating a new table.
...
--HG--
branch : minor
2017-09-22 19:47:55 -03:00
Bart van Strien
a2ad1b462f
Add love.graphics.pop("all"), which pops the entire stack ( resolves #1248 )
...
--HG--
branch : minor
2017-09-18 14:31:51 +02:00
Alex Szpakowski
8a77ea1007
Improve the error message when a type other than a table is given as the 3rd arg to newCanvas.
...
--HG--
branch : minor
2017-09-16 20:01:48 -03:00
Bart van Strien
23929cab14
Rename love.physics getObjectList functions to getObjects ( resolves #1305 )
...
World:getBodyList -> World:getBodies
World:getContactList -> World:getContacts
World:getJointList -> World:getJoints
Body:getFixtureList -> Body:getFixtures
Body:getContactList -> Body:getContacts
Body:getJointList -> Body:getJoints
Marked the old functions as deprecated
--HG--
branch : minor
2017-09-13 15:48:53 +02:00
Bart van Strien
7dae80f552
Fix return type of ParticleSystem:getAreaSpreadIsRelativeDirection, remove optional parameters from ParticleSystem:setAreaSpread ( resolves #1340 )
...
I opted to remove the optional parameters altogether since they seemed oddly
out-of-place. They used to reset the values to defaults when not supplied, and
they also weren't returned by getAreaSpread(), so
setAreaSpread(getAreaSpread()) actually changed spread parameters.
The other option was to remove the separate getters/setters for
AreaSpreadIsRelativeDirection and AreaSpreadAngle, and fully rely on
setAreaSpread for these parameters, but the rest of the ParticleSystem API
tends to keep parameters separate.
--HG--
branch : minor
2017-09-12 12:40:21 +02:00
Bart van Strien
09c1259857
Add optional timeout values to Channel:supply and Channel:demand ( resolves #1344 )
...
--HG--
branch : minor
2017-09-11 13:40:21 +02:00
Bart van Strien
7dfbfbda79
Error if ParticleSystem's particle lifetime is set to a negative value ( resolves #1339 )
...
--HG--
branch : minor
2017-09-09 13:23:49 +02:00
Alex Szpakowski
bf67d7ad0e
PHYSFS_enumerateFiles bug has been fixed post-2.1.0.
...
--HG--
branch : minor
2017-09-04 01:18:48 -03:00
Alex Szpakowski
b6ecdb7c78
SpriteBatches/Text objects/ParticleSystems: use glBufferData+glBufferSubData instead of glBufferData+glBufferData for orphaning streaming vertex data, on most platforms. Apparently some Android drivers have a problem with the latter.
...
--HG--
branch : minor
2017-09-03 23:41:35 -03:00
Alex Szpakowski
e4e4c6673e
Use PhysFS_getErrorByCode instead of PhysFS_getLastError, when available.
...
--HG--
branch : minor
2017-09-03 19:47:46 -03:00
Alex Szpakowski
737433d157
Update love.filesystem backend to always use PhysFS 2.1+ codepaths when available.
...
--HG--
branch : minor
2017-09-03 19:34:46 -03:00
Alex Szpakowski
61a8ce6a66
Remove obsolete code and hopefully fix VS2013 build
...
--HG--
branch : minor
2017-09-03 18:46:33 -03:00
Alex Szpakowski
b4f8f08b70
Enable (when available) and improve performance of persistently mapped buffer path for the vertex/index buffers used with automatic batching.
...
--HG--
branch : minor
2017-09-03 18:23:54 -03:00
Alex Szpakowski
9bb105711a
Fix a Font texture memory leak when love.window.setMode is called (resolves issue #1338 ).
...
--HG--
branch : minor
2017-09-02 14:39:21 -03:00
Alex Szpakowski
a25cf3c432
Fix deprecation UI opacity when fading out.
...
--HG--
branch : minor
2017-09-01 18:10:57 -03:00
Alex Szpakowski
a41f78dfe4
Simplified some compressed image parsing code.
...
--HG--
branch : minor
2017-08-30 22:25:26 -03:00
Bart van Strien
907630b04c
Fix cycle detection
...
It used to detect duplicates, not just cycles.
--HG--
branch : minor
2017-08-30 18:57:12 +02:00
Bart van Strien
5ddc89a033
Added cycle detection to Variant
...
We accidentally enabled nested tables previously, and now it errors properly when the tables contain cycles. Before you'd get (or at least I got) a nice lua stack overflow error.
--HG--
branch : minor
2017-08-30 13:07:57 +02:00
Alex Szpakowski
d35f69bcff
Fix the deprecation list UI to respect love.setDeprecationOutput.
...
--HG--
branch : minor
2017-08-27 21:56:07 -03:00
Muh Muhten
dda0200ffe
Use proper type checking for coordinate arguments in love.graphics.points/line/polygon. Resolves issue #1325 .
...
--HG--
branch : minor
2017-08-27 21:31:41 -03:00
Alex Szpakowski
23c9edcc52
Hopefully fix the build
...
--HG--
branch : minor
2017-08-27 18:17:30 -03:00
Alex Szpakowski
9d0e984c3d
Add love.filesystem.getInfo. Deprecate love.filesystem.exists/isDirectory/isFile/isSymlink/getLastModified/getSize. Resolves issue #641 .
...
--HG--
branch : minor
2017-08-27 18:14:54 -03:00
Alex Szpakowski
fcd9f1526c
Use different output messages for deprecated methods versus functions.
...
--HG--
branch : minor
2017-08-27 16:55:33 -03:00
Alex Szpakowski
3128a127cf
Rename love.audio.getSourceCount to getActiveSourceCount and deprecate the old function (resolves issue #1302 ).
...
--HG--
branch : minor
2017-08-27 16:23:55 -03:00
Alex Szpakowski
d8eb6e6012
Rename PrismaticJoint/RevoluteJoint:hasLimitsEnabled to areLimitsEnabled and deprecate the old methods (resolves issue #1324 ).
...
--HG--
branch : minor
2017-08-27 16:18:54 -03:00
Alex Szpakowski
bf6983beac
Rename Source/SoundData/Decoder:getChannels to getChannelCount (resolves issue #1307 ). Deprecate the old methods rather than completely removing them.
...
--HG--
branch : minor
2017-08-27 14:40:46 -03:00
Alex Szpakowski
0325663283
Fix build
...
--HG--
branch : minor
2017-08-27 13:50:47 -03:00
Alex Szpakowski
de28c6e6a8
Add the ability to have formally deprecated functions.
...
Functions which are deprecated will print out a message and show up in a small dialog on-screen, when they're first called. Deprecation output is disabled in fused mode by default, and can be modified with love.setDeprecationOutput(enable).
--HG--
branch : minor
2017-08-27 13:46:31 -03:00
Alex Szpakowski
324ef8f690
Remove an unused variable.
...
--HG--
branch : minor
2017-08-27 10:45:06 -03:00
Alex Szpakowski
0b68c92570
Rename some internal functionality to better match what it actually is.
...
--HG--
branch : minor
2017-08-25 22:42:03 -03:00
Alex Szpakowski
25afd740b4
Fast gamma correction functions in shaders are now more accurate. Always use the fast versions by default.
...
--HG--
branch : minor
2017-08-25 18:27:16 -03:00
Alex Szpakowski
7fdad7c010
Workaround for off-by-one line numbers in shader validation errors.
...
--HG--
branch : minor
2017-08-19 17:20:03 -03:00
Alex Szpakowski
a42f27db47
The default error handler sanitizes error messages to remove non UTF-8 bytes before displaying it. Resolves issue #1330 .
...
--HG--
branch : minor
2017-08-17 22:02:49 -03:00
Alex Szpakowski
fee157b6b9
Functions that take a boolean argument now properly type-check for it.
...
--HG--
branch : minor
2017-08-14 22:56:20 -03:00
Alex Szpakowski
fea9f82cfa
Remove the undocumented formatted variant of Text:set (Text:setf still exists). Resolves issue #1329 .
...
--HG--
branch : minor
2017-08-14 18:41:22 -03:00
Alex Szpakowski
92df39181d
Error for invalid constants passed to love.keyboard.isDown/isScancodeDown. Resolves issue #1313 .
...
--HG--
branch : minor
2017-08-10 21:06:04 -03:00
Alex Szpakowski
01fe2c5df2
Fix FLAC decoder code to compile if someone uncomments it. Resolves issue #1322 .
...
--HG--
branch : minor
2017-08-10 20:29:02 -03:00
Alex Szpakowski
74d9bc7faf
Add traceback information to the error string generated if a thread causes a Lua error.
...
--HG--
branch : minor
2017-08-07 20:15:26 -03:00
Alex Szpakowski
01c091882a
Fix love.graphics.newImage(ImageData). Thanks Santos!
...
--HG--
branch : minor
2017-08-07 18:53:40 -03:00
Alex Szpakowski
98eef9e88a
Add a default love.threaderror callback which just calls error().
...
--HG--
branch : minor
2017-08-06 21:42:05 -03:00
Alex Szpakowski
b5f2bce0a6
Merge default into minor
...
--HG--
branch : minor
2017-08-06 03:48:48 -03:00
Alex Szpakowski
7566db14f2
love.filesystem.isFile and isDirectory behave consistently between PhysFS 2.0 and 2.1/3.0 (see issue #641 ).
...
--HG--
branch : minor
2017-08-06 00:53:49 -03:00
Alex Szpakowski
9b6aa777ad
love.image.newImageData(w, h, format, rawbytes) can accept a Data object.
...
--HG--
branch : minor
2017-08-06 00:13:02 -03:00
Alex Szpakowski
2dd6408d00
Images/[Compressed]ImageData can be created using any Data, instead of just files or FileData.
...
--HG--
branch : minor
2017-08-05 23:55:20 -03:00
Alex Szpakowski
9654376bdd
Rename love.errhand to love.errorhandler (see issue #573 ).
...
love.errhand will still be called if love.errorhandler doesn't exist, and love defines love.errhand by default rather than love.errorhandler, to prevent hard-to-diagnose problems with existing code that defines love.errhand.
--HG--
branch : minor
2017-08-05 16:56:39 -03:00
Alex Szpakowski
254e50dbfe
Rename love.mouse.hasCursor to isCursorSupported (resolves issue #1309 ).
...
--HG--
branch : minor
2017-08-05 16:53:27 -03:00
Alex Szpakowski
f0c682d50d
boot.lua cleanup and fixes
...
--HG--
branch : minor
2017-08-02 21:49:34 -03:00