Alex Szpakowski
54efa825c3
Merge default into minor
...
--HG--
branch : minor
2016-09-11 13:09:01 -03:00
Alex Szpakowski
a9c83897bb
Shader:send improvements.
...
Type and value checking is now completely based on the shader uniform's information, instead of on the arguments to Shader:send. This means Shader:send now converts numbers to integers or floats depending on the uniform's type, and matrices can now be passed in as a flat array (without requiring the 'dimension' field that shader:sendMatrix previously needed).
As a result, Shader:sendTexture, Shader:sendMatrix, Shader:sendInt, and Shader:sendFloat are all deprecated in favour of Shader:send.
Performance of Shader:send has also increased, especially when sending small amounts of values per call.
2016-09-11 12:40:02 -03:00
Alex Szpakowski
0b1bfba493
Use SDL_DetachThread instead of a conditional SDL_WaitThread when a Thread is destroyed.
2016-09-08 23:33:48 -03:00
Alex Szpakowski
e803878445
love.event.quit("restart") now causes LÖVE to restart the Lua state after shutting it down.
...
Note that this isn't perfect – it won't kill running threads which aren't cleaned up by the Lua code when the main Lua state is shut down.
2016-09-08 18:42:56 -03:00
Alex Szpakowski
8fca2aa607
Call collectgarbage after love.lowmemory(), instead of before.
2016-09-08 18:11:50 -03:00
Alex Szpakowski
7a904de2e1
In fact, lets just replace Shader:getUniformVariable with Shader:hasUniform. The latter returns true if the uniform with the specified name exists and contributes to the final output of the shader.
...
--HG--
branch : minor
2016-09-01 18:32:12 -03:00
Alex Szpakowski
ee79038572
Renamed Shader:getExternVariable to Shader:getUniformVariable. The "extern" alias for shader uniforms is considered deprecated, although it still exists.
...
--HG--
branch : minor
2016-09-01 18:15:25 -03:00
Alex Szpakowski
0ca5e57c3f
Merge default into minor
...
--HG--
branch : minor
2016-08-29 23:15:00 -03:00
Alex Szpakowski
cc4dd24be6
Update the love version used for appveyor
2016-08-29 23:14:20 -03:00
Alex Szpakowski
f30f9ab3f5
Appveyor test
2016-08-29 23:03:37 -03:00
Alex Szpakowski
baebb45c2e
Updated the love.conf default for vsync.
...
--HG--
branch : minor
2016-08-29 22:53:14 -03:00
Alex Szpakowski
dd2a448099
The vsync field in t.window and love.window.setMode is now an integer.
...
0 disables vsync, 1 sets it to sync every screen refreshes, 2 sets it to sync every 2 screen refreshes (effectively setting the framerate to half the monitor's refresh rate), etc.
As a special case, -1 also attempts to use adaptive vsync (vsync enabled when FPS is >= monitor's refresh rate, disabled whe not) if the driver supports it.
--HG--
branch : minor
2016-08-29 22:52:15 -03:00
Alex Szpakowski
ef61573cd3
Merge default into minor
...
--HG--
branch : minor
2016-08-29 22:41:24 -03:00
Alex Szpakowski
d572c70883
Fix a GL error on OpenGL ES 3 when using multiple render targets.
2016-08-29 18:48:53 -03:00
Alex Szpakowski
677a8d60b8
Use love::Vector (8 bytes) instead of love::Vertex (20 bytes) for love.math.triangulate and love.math.isConvex.
2016-08-24 18:02:27 -03:00
Alex Szpakowski
acde58d311
Improved the error message when nil is passed as the first argument to love.image.newImageData (resolves issue #1205 ).
2016-08-21 11:22:21 -03:00
Alex Szpakowski
daf13de4eb
Removed the no-argument variant of Text:set() in favour of Text:clear(). Resolves issue #1126 .
...
--HG--
branch : minor
2016-08-20 09:17:14 -03:00
airstruck
154f7cbc7e
Support reference angle on revolute, prismatic, and weld joints ( fixes #1194 )
2016-08-19 14:36:36 +02:00
Anders Ruud
78a2e80818
Created bitbucket-pipelines.yml.
2016-08-19 08:47:16 +00:00
Anders Ruud
d896f7f871
Work-around for gcc bug 1568899.
2016-08-19 08:46:05 +00:00
Bart van Strien
9998e761a4
Do not error in newVideo when optionally loading audio with love.audio disabled ( fixes #1206 )
2016-08-15 17:12:36 +02:00
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
5ae730be9e
Update changelog
2016-08-02 14:33:28 +02: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
2e8f785a01
Potentially fix building with megasource on Windows
2016-07-31 14:40:55 -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
Bart van Strien
f4999bd2c7
Fail gracefully when auto.lua is called on a file not in src/scripts
2016-07-28 17:15:52 +02: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
d2c2c717e4
Mac: treat folders with the .love extension as packages that can be double-clicked to open with LÖVE (resolves issue #1186 ).
2016-07-20 19:36:43 -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
rude
7922c44d27
Make CMake build functional on Linux.
...
At least on Ubuntu.
2016-07-14 18:07:20 +02:00
Bart van Strien
bf601470e1
Update changelog
2016-07-14 16:41:08 +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
rude
64ee986984
Make LÖVE buildable (barely) with Megasource on Mac.
2016-07-14 16:29:45 +02:00
Bart van Strien
7266fa4fc5
Fix memory leak in Text:set ( fixes #1181 )
2016-07-14 14:22:38 +02:00
rude
ba1a234543
Use LÖVE in NSIS once again.
2016-07-13 22:42:06 +01:00
rude
f6154998dc
Use nsis-unicode for AppVeyor build.
2016-07-13 22:19:09 +01:00
rude
b0effb5570
Make CMakeLists.txt more decoupled from Megasource.
2016-07-13 21:26:50 +01:00
rude
f66011de2f
Return correct size from b64_decode.
...
The current implementation does not take into account padding (and yet it does
actually depend on padding), or skipped whitespace/gibberish characters.
The actual size can be computed by subtracting the padding and gibberish bytes,
but in this case it's easier to just return the actual number of bytes written.
2016-07-12 21:25:23 +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