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
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
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
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
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
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
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
Alex Szpakowski
25dc0ad29d
Merge default into minor
...
--HG--
branch : minor
2016-09-27 23:13:01 -03:00
Alex Szpakowski
aba4386807
SDL click count functionality was added in 2.0.2, not 2.0.4. So we can get rid of some useless code since we require 2.0.2+ in love 0.11...
...
--HG--
branch : minor
2016-09-27 22:53:48 -03:00
Alex Szpakowski
b38e567e74
Added a click count argument to love.mousepressed/released. Tracks double/triple/etc. clicks.
...
--HG--
branch : minor
2016-09-27 22:46:55 -03:00
Alex Szpakowski
25376ba310
Added SpriteBatch:setDrawRange(start, count) and SpriteBatch:getDrawRange.
...
--HG--
branch : minor
2016-09-21 20:03:39 -03:00
Alex Szpakowski
7ab76b1ef6
Mesh:setDrawRange now takes start and count parameters, instead of min and max.
...
--HG--
branch : minor
2016-09-21 19:44:53 -03:00
Alex Szpakowski
327682d07f
Add support for passing a table to love.mouse.isDown, love.keyboard.isDown, love.keyboard.isScancodeDown, Joystick:isDown, and Joystick:isGamepadDown.
2016-09-19 22:43:47 -03:00
Bart van Strien
cc0cfac66c
Remove deprecated love.window.isCreated alias
...
--HG--
branch : minor
2016-09-16 19:58:26 +02:00
Alex Szpakowski
7eeca829e5
Fix a use of std::remove_if
...
--HG--
branch : minor
2016-09-12 08:11:38 -03:00
Alex Szpakowski
11328a23cf
Don't consider different OpenGL versions when re-creating the window after a previous window and OpenGL context has been created. love.graphics has never supported switching GL versions mid-game, so we should prevent it from ever happening.
...
--HG--
branch : minor
2016-09-11 21:40:00 -03:00
Alex Szpakowski
4dd1b3a83f
Added a new variant of Shader:send for matrices: Shader:send(uniformname, is_column_major, matrix, ...).
...
If is_column_major is true, the table(s) passed as subsequent arguments will be treated as column-major instead of row-major. This matches the 0.10.x behaviour of Shader:send for matrices.
--HG--
branch : minor
2016-09-11 20:57:40 -03:00
Alex Szpakowski
593f96a08c
Add support for non-square matrix uniforms in desktop GLSL. The notation is columns x rows, e.g. a mat4x2 has 4 columns and 2 rows.
...
Fixed the memory layout of matrices sent to shaders via Shader:send. Note that this is a breaking fix and will probably cause matrices designed to work with older versions of LÖVE to be transposed in shaders compared to what they were previously, if Shader:send or sendMatrix was used to put them in the shader.
--HG--
branch : minor
2016-09-11 14:53:23 -03:00
Alex Szpakowski
a853ef6c3a
Remove Shader:sendInt/sendBoolean/sendFloat/sendMatrix/sendTexture
...
--HG--
branch : minor
2016-09-11 13:09:41 -03:00
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
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
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
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
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