Alex Szpakowski
27044e6eb8
Update tinyexr.
...
--HG--
branch : minor
2016-10-18 23:30:52 -03:00
Alex Szpakowski
0653ec9564
Address some compiler warnings about implicit integer conversions.
...
--HG--
branch : minor
2016-10-18 22:32:35 -03:00
Alex Szpakowski
2e016810c9
Update Xcode project
...
--HG--
branch : minor
2016-10-18 22:08:25 -03:00
Alex Szpakowski
b8b670e0ae
Simplify Drawable code
...
--HG--
branch : minor
2016-10-18 22:06:52 -03:00
Alex Szpakowski
a844c16657
Simplified Source constructors.
...
--HG--
branch : minor
2016-10-16 16:04:00 -03:00
Bart van Strien
a3f381be07
Update changelog
...
--HG--
branch : minor
2016-10-15 19:58:54 +02:00
Alex Szpakowski
7cd24de402
Merged in rcoaxil/love/minor (pull request #63 )
...
TYPE_QUEUE Source implemented, ported to minor branch.
--HG--
branch : minor
2016-10-15 17:56:37 +00:00
Alex Szpakowski
dafacf3fbc
test
...
--HG--
branch : minor
2016-10-15 14:55:35 -03:00
Alex Szpakowski
4930d85870
Close branch minor
...
--HG--
branch : minor
2016-10-15 17:50:19 +00:00
rcoaxil
71326564f0
removed some more trailing spaces
...
oh god i need a tool for this
--HG--
branch : minor
2016-10-15 20:08:41 +03:00
rcoaxil
38a6176665
issues addressed
...
cropped trailing spaces
put TYPE_MAX_ENUM in getDurationAtomic
moved around variables in seekAtomic
--HG--
branch : minor
2016-10-15 20:04:08 +03:00
rcoaxil
c5e0846c52
fixed stream seeking bug
...
--HG--
branch : minor
2016-10-15 10:02:18 +03:00
rcoaxil
00c02adcd0
issues addressed
...
warnings fixed
added type checking to Lua functions
stopping queueable source clears buffered data
getting queueable source to auto-play if it underruns and then gets re-filled
will probably require re-designing pool usage strategy
--HG--
branch : minor
2016-10-13 18:18:08 +03:00
rcoaxil
b757a0534e
pull request feedback addressed
...
newQueueableSource added
isQueueable removed, getFreeBufferCount added
queueData renamed to queue; added 3 argument variant with (data, offset, length)
lightuserdata variant now requires offset (pointer, offset, length, samplerate, bitdepth, channels)
setLooping now throws exception if called on queueable source
--HG--
branch : minor
2016-10-13 04:40:41 +03:00
Alex Szpakowski
a4bdbcdf10
Fix love.audio.newSource(decoder) and love.audio.newSource(sounddata) to no longer require a Source type argument.
...
--HG--
branch : minor
2016-10-12 17:42:23 -03:00
raidho36
b1c842f186
fixed bug preventing stream sources from loading data
...
--HG--
branch : minor
2016-10-12 20:49:05 +03:00
raidho36
10710d3428
queueData now returns success state, couple bug fixes
...
success state return added to queueData functions
queueable source is now seekable while stopped
fixed bug with creating queueable source with invalid format silently crashing LOVE
fixed bug with stopped queueable source reported as not queueable
--HG--
branch : minor
2016-10-12 18:53:49 +03:00
raidho36
7934bfaf7f
ported TYPE_QUEUE Source from default to minor
...
--HG--
branch : minor
2016-10-11 06:30:30 +03:00
Alex Szpakowski
e969f541ba
Fix love.window.setMode to use the proper defaults for window settings that aren't specified.
...
--HG--
branch : minor
2016-10-08 15:35:31 -03:00
Alex Szpakowski
15ba27f417
Merge default into minor
...
--HG--
branch : minor
2016-10-08 11:03:37 -03:00
Alex Szpakowski
b1b4a637b5
Fix a potential crash when a Thread ends (resolves issue #1219 ).
2016-10-08 10:50:50 -03:00
Alex Szpakowski
2bc036f4c9
Use love's sized int typedefs instead of C's.
...
--HG--
branch : minor
2016-10-06 23:01:44 -03:00
Alex Szpakowski
37520bd18b
Added Object:release. Calling it is the equivalent of removing all Lua-side references to an object and doing a full garbage collection cycle (thus deleting the object from memory if nothing else in LÖVE's code is referencing it).
...
Any attempt to call a method on the object after it has been released will result in an error. Object:release() returns true if it was successful, or false if not (if it has already been released previously).
--HG--
branch : minor
2016-10-06 21:59:01 -03:00
Alex Szpakowski
bfb00239fd
Fix compiling for iOS
...
--HG--
branch : minor
2016-09-29 21:21:53 -03:00
Alex Szpakowski
7d11946ab7
Updated the changelog
...
--HG--
branch : minor
2016-09-27 23:23:56 -03:00
Alex Szpakowski
25dc0ad29d
Merge default into minor
...
--HG--
branch : minor
2016-09-27 23:13:01 -03:00
Alex Szpakowski
304ccec71c
Updated the changelog
2016-09-27 23:12:33 -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
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