Commit Graph

2067 Commits

Author SHA1 Message Date
Alex Szpakowski f30a0d72f0 Added Shader:getExternVariable(name).
Returns the base type name ('float', 'image', etc.), the number of components (2 for a vec2), and number of array elements (1 for a non-array variable) for the extern variable with the specified name in the shader.

Returns nil if the variable either doesn't exist or was optimized out by the driver's shader compiler.
2014-04-25 20:32:42 -03:00
Bart van Strien 853f741ba3 Prevent erroring in gen-modules when no source files are found (needed in some
love-experiments branches)
2014-04-25 17:53:38 +02:00
Bart van Strien 5484921597 Make the stored data and type of Variant public, to allow for non-lua unpacking.
NOTE: Not that useful in the love source, but might be nice if libraries try
to interface with it.
2014-04-25 17:44:46 +02:00
Alex Szpakowski 3cf2a8f8a2 Improved error message when love.math.setRandomSeed(0) is attempted (resolves issue #876) 2014-04-24 15:21:53 -03:00
Alex Szpakowski af88423285 Fixed an attempted creation of an array with a constant size of 0 2014-04-23 19:43:54 -03:00
rude 6da3105fe2 Fix some pointer type conversion errors in MSVC.
--HG--
branch : minor
2014-04-23 22:31:56 +02:00
Alex Szpakowski 4d579074a1 Removed love.filesystem.exists (resolves issue #641.)
Use either love.filesystem.isFile or love.filesystem.isDirectory instead.

--HG--
branch : minor
2014-04-23 02:15:02 -03:00
Aesthete 70fabedc09 Aesthete: Bug #829: Added exceptions for all spatial audio calls on stereo
sources. I had to backout the last couple of changes because the diff tool
thought I had changed the entire file, and made it impossible to see what
I had actually changed.

--HG--
branch : minor
2014-04-23 11:39:36 +10:00
Aesthete 30c211f7e3 Backed out changeset: a0191140525e
--HG--
branch : minor
2014-04-23 11:29:55 +10:00
Aesthete 5e7452034a Backed out changeset: 6efefad30fe1
--HG--
branch : minor
2014-04-23 11:29:41 +10:00
Aesthete ba21f79966 Aesthete: Bug #829: Adding missing exception guards to audio source wrapper.
--HG--
branch : minor
2014-04-23 11:15:14 +10:00
Aesthete a2473f860d Aesthete: Bug #829: Refactored all spatial stereo exception messages to static
variable.

--HG--
branch : minor
2014-04-23 10:19:26 +10:00
Alex Szpakowski eca8c17a69 Removed the DevIL backend from love.image. Replaced it with PNG and JPEG encoders/decoders via LodePNG, zlib, and libjpeg-turbo.
PNG and JPEG are now the only two supported image formats, aside from compressed DDS (DXT, etc.)

--HG--
branch : minor
2014-04-22 17:11:59 -03:00
Alex Szpakowski 1b61091aae Removed the 'wu' and 'wd' constants for love.mousepressed, added new love.wheelmoved(x, y) event callback.
+x is mousewheel-right, +y is mousewheel-up.

--HG--
branch : minor
2014-04-19 21:36:06 -03:00
Alex Szpakowski 8b90f64440 Don't try to bind the love_PseudoInstanceID vertex shader attribute (it's disabled for now) 2014-04-17 19:48:16 -03:00
Alex Szpakowski e0134a305c Merged default into minor
--HG--
branch : minor
2014-04-15 18:35:33 -03:00
Alex Szpakowski b5ad14ccb1 Removed platform/msvc2010/* 2014-04-11 04:15:21 -03:00
Alex Szpakowski f05551a01f Fixed a potential null pointer dereference and a case of undefined behaviour 2014-04-11 03:48:12 -03:00
Alex Szpakowski b98e6add18 Fixed version description for the windows executable 2014-04-09 14:27:14 -03:00
Alex Szpakowski 4ea18d8bbc love.math.setRandomSeed now calls random() a couple times internally, to make similar seeds give less similar results when random() is called for the first time after setRandomSeed. 2014-04-05 18:55:05 -03:00
Alex Szpakowski 3abb1a2cbb Removed love.window.getWidth/getHeight. Use love.graphics.getWidth/getHeight or love.window.getMode instead.
love.window.getWidth/getHeight were originally added to help deal with high-dpi mode, but the API ended up going in a different direction (love.window.getPixelScale).

--HG--
branch : minor
2014-04-05 01:40:30 -03:00
Alex Szpakowski 2fb39f4448 Merged default into minor
--HG--
branch : minor
2014-04-05 01:33:14 -03:00
Alex Szpakowski 9dd3f70988 Use love.filesystem.isFile instead of love.filesystem.exists when checking for main.lua and conf.lua on startup 2014-04-02 22:16:27 -03:00
Alex Szpakowski 8f40319817 Changed the screen_coords parameter of the effect function in pixel shaders so y+ is down instead of up (resolves issue #435.)
--HG--
branch : minor
2014-04-01 21:08:12 -03:00
Alex Szpakowski b18c35a1f2 Renamed blend modes "additive", "subtractive", and "multiplicative" to "add", "subtract", and "multiply" (resolves issue #864)
--HG--
branch : minor
2014-04-01 20:49:24 -03:00
Alex Szpakowski 6dc10cfd15 Merged default into minor
--HG--
branch : minor
2014-04-01 20:46:31 -03:00
Alex Szpakowski 606c9b8fb1 Updated changelog 2014-04-01 20:42:57 -03:00
rude 9e49514db9 Set release date for 0.9.1 in changes.txt. 2014-04-01 20:50:17 +02:00
Bart van Strien 4597947106 Added tag 0.9.1 for changeset 8b113c345e97 2014-04-01 20:23:52 +02:00
Bart van Strien 820d8a8267 Add correct header for waitpid in openURL 0.9.1 2014-04-01 16:57:07 +02:00
Bart van Strien a1158599ab Use '=' instead of '==' for test command in configure scripts (fixes #866) 2014-04-01 16:54:51 +02:00
Alex Szpakowski 38497d23da Added love.system.openURL (resolves issue #863) 2014-03-31 16:13:05 -03:00
Alex Szpakowski c985b1f2f7 Don't destroy OpenGL resources before checking whether the fullscreen size is supported in love.window.setMode. 2014-03-31 05:01:29 -03:00
Alex Szpakowski be8c19911f Fixed love.graphics.isCreated to properly return false if love.window.setMode failed 2014-03-31 04:56:29 -03:00
Alex Szpakowski a22c4b5f92 Explicitly #ifdef'd out SDL 2.0.1+ function calls for Linux to avoid runtime function resolving problems when love is built with SDL 2.0.1+ headers but run using SDL 2.0.0. 2014-03-31 03:45:22 -03:00
Bart van Strien 2698fd2c2c Use debian's name for libsdl2 in the debian package dependency list 2014-03-30 14:15:36 +02:00
Alex Szpakowski f65e9826d9 Disabled shader code for instancing 2014-03-29 17:51:33 -03:00
Alex Szpakowski e7947d9d2e Pulled Mesh:set/getInstanceCount from 0.9.1 for now.
The feature is difficult to use well unless custom vertex attributes are added.
2014-03-29 16:30:48 -03:00
Alex Szpakowski 146b3cff19 Added blend mode "screen". 2014-03-27 23:28:36 -03:00
Alex Szpakowski 1fd5d492fe Removed obsolete change from the changelog 2014-03-21 04:51:37 -03:00
Alex Szpakowski fcb24871d5 Updated changelog 2014-03-21 04:45:19 -03:00
Alex Szpakowski b95a02772a Include the freetype error code in the error message when truetype font/glyph loading fails 2014-03-18 19:46:14 -03:00
Alex Szpakowski 50916825d0 Data::getSize now uses size_t instead of int 2014-03-18 03:50:00 -03:00
Alex Szpakowski aba17607aa Added an optional callback function argument to love.filesystem.getDirectoryItems. Callback function takes a single argument containing a filepath string.
For example: love.filesystem.getDirectoryItems("", print)
2014-03-17 20:14:53 -03:00
Alex Szpakowski 9e6a3b8d5e Fixed 8-bit SoundData samples when used in a love.audio Source 2014-03-17 15:06:04 -03:00
Alex Szpakowski fc77e8f9f0 Throw away the first 3 love.math.random results after seeding it (xorshift outputs less random results the first few times when the seed is very similar to a previous one) 2014-03-15 21:43:25 -03:00
Alex Szpakowski 89e9288a85 Make sure SoundData objects aren't initialized with garbage sample values 2014-03-13 05:34:16 -03:00
Alex Szpakowski 4faddcd9aa Fixed some trivial compiler warnings 2014-03-12 17:55:19 -03:00
Alex Szpakowski a13fd761cc Updated love.filesystem's C library loader for require to look in paths added via love.filesystem.mount, when in fused mode 2014-03-12 06:19:56 -03:00
Alex Szpakowski 98873b593a Updated ENet to version 1.3.11 2014-03-12 02:55:03 -03:00