Commit Graph

1993 Commits

Author SHA1 Message Date
Alex Szpakowski 53b20b63a5 Merged default into minor
--HG--
branch : minor
2014-05-21 21:16:37 -03:00
Alex Szpakowski fd5b5aad65 Minor code cleanup 2014-05-21 21:14:08 -03:00
Alex Szpakowski 2b12c9cb1e Updated the readme 2014-05-20 22:48:54 -03:00
Alex Szpakowski cb01e3f4d1 Fixed segfault when garbage collecting Shader objects 2014-05-14 20:00:59 -03:00
Alex Szpakowski 976c26aa21 Removed an unnecessary extension dependency for support of the rg11b10f canvas format 2014-05-14 16:45:16 -03:00
Alex Szpakowski 1d22ea821c Merged bartbes/love-experiments/Canvas-formats into default 2014-05-14 12:42:02 -03:00
Alex Szpakowski 5658a2440b Added some comments describing the formats in the Canvas::Format enum.
--HG--
branch : Canvas-formats
2014-05-14 01:38:33 -03:00
Alex Szpakowski 4aeba24e94 Fixed the rg11b10f canvas format, removed rgb9e5 due to lack of real support, improved love.graphics.hasCanvasFormat to do extra checks
--HG--
branch : Canvas-formats
2014-05-13 21:59:24 -03:00
Alex Szpakowski febbecddf7 Fixed the texture type of the rgb9e5 canvas format
--HG--
branch : Canvas-formats
2014-05-13 21:22:29 -03:00
Alex Szpakowski 408a593113 Added support for several specific Canvas formats. Also added love.graphics.hasCanvasFormat.
The list includes RGBA with 4-bit components, RGBA with 10-bit R, G, and B components and a 2-bit alpha component, RGB with 9-bit RGB components and a 5-bit exponent component (for HDR rendering), and several more.

--HG--
branch : Canvas-formats
2014-05-13 20:54:58 -03:00
Alex Szpakowski 036f6eb8cb Added an optional duration argument to Joystick:setVibration. 2014-05-10 16:52:40 -03:00
Alex Szpakowski 6a491ed0f0 Don't do unnecessary vertex buffer orphaning when calling SpriteBatch:unbind() on a SpriteBatch with the static usage hint 2014-05-06 21:24:26 -03:00
Bart van Strien ce385ec27a Switch from vfork/exec to posix_spawn after clang static analyzer run 2014-05-06 19:48:50 +02:00
Bart van Strien d705b54198 Clean up unused variable after clang static analyzer run 2014-05-06 19:35:02 +02:00
Alex Szpakowski 05d8543518 Improved performance of love.graphics.present slightly on some platforms 2014-05-05 16:30:56 -03:00
Alex Szpakowski e25cdfc71c Fixed creating and setting the write directory on some sandboxed operating systems 2014-05-05 00:27:42 -03:00
Alex Szpakowski 9d293af176 Fixed love.filesystem.setIdentity breaking if a file has been written to an old identity dir before the new setIdentity call 2014-05-04 04:10:46 -03:00
Alex Szpakowski 38b65b859a Merged default into minor
--HG--
branch : minor
2014-05-03 22:27:01 -03:00
Alex Szpakowski 0372977dfa Backout changeset 6dd72101871f163ee0e644c751f80773d45f339f
The change should only be done for GLES, not desktop GL - their specifications differ on this.
2014-05-03 22:21:45 -03:00
Alex Szpakowski 5428a5d75f Backout changeset b3928e24add23da69dcd90c34985cd6a05454be0 2014-05-03 22:07:32 -03:00
Alex Szpakowski 4bc96f1bf6 Internally compose and pass an array of shader source codes to OpenGL, instead of relying on #line to make sure the line number is correct for shader error messages (resolves issue #882) 2014-05-03 21:43:20 -03:00
Bart van Strien 9972153696 Use '#line 1' instead of '#line 0' in shader sources, for compatibility with GLES (fixes #882) 2014-05-03 14:50:08 +02:00
Alex Szpakowski d7f1262e20 Query the Decoder instead of the current OpenAL buffer when getting the sample rate for calculations in streaming audio Sources.
Some OpenAL implementations return 0 for alGetSourcei(source, AL_BUFFER) if the source isn't static, which eventually results in returning 0 when querying the buffer's sample rate.
2014-05-02 11:31:12 -03:00
Alex Szpakowski 1bc8b7346d Added internal thread name support, for use with debuggers. 2014-05-02 08:56:23 -03:00
Alex Szpakowski e4dc533bb2 Minor code cleanup 2014-05-01 14:12:21 -03:00
Bart van Strien e667485f68 Check argument count of newChainShape 2014-04-26 14:35:39 +02:00
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