Commit Graph

2492 Commits

Author SHA1 Message Date
Alex Szpakowski 8bf8c0cd18 Hopefully work around an issue where older Intel drivers on Windows use Microsoft's OpenGL 1.1 software renderer instead of failing to create the context, when a requested framebuffer attribute value is unsupported.
Failing to create the context is preferred in that situation because love's code will then try disabling various framebuffer settings to get a hardware-accelerated context using a supported OpenGL version.
2015-07-28 11:27:45 -03:00
Alex Szpakowski f5abedaeeb Cleaned up the love.graphics code that deals with love.window to be more consistent with the rest of the codebase. 2015-07-24 21:40:55 -03:00
Alex Szpakowski 354f83c1cb Added support for MSAA on the window on iOS.
Requires updated dependencies to compile on iOS, which can be downloaded at https://dl.dropboxusercontent.com/u/4214717/love-ios-libraries-0.10.zip
2015-07-19 22:39:02 -03:00
Alex Szpakowski 4cd725cee6 Added love.window.close (resolves issue #1059), and renamed love.window.isCreated to love.window.isOpen. 2015-07-18 13:22:55 -03:00
Alex Szpakowski 2cce18946d Fixed objects which store Lua callback functions to avoid attempting to use dead coroutines when deleting the reference to the callback function. Should fix crashes when coroutines are mixed with those objects.
Also improved the performance of World:rayCast and World:queryBoundingBox.
2015-07-18 03:26:07 -03:00
Alex Szpakowski 64b9d40f00 Fixed World:getCallbacks and World:getContactFilter to use the active coroutine's lua state. 2015-07-17 19:00:42 -03:00
djcj 4989bd76a0 Update Debian packaging files, move manpage to section 6
Modified application of pull request #43 by bartbes
 - Kept binary in /usr/bin
 - Remove postinst/postrm scripts
2015-07-13 17:32:18 +02:00
Alex Szpakowski e27400de30 The add and subtract blend modes no longer modify the destination framebuffer's alpha. 2015-07-08 14:21:22 -03:00
Bart van Strien 7e44034757 Add a MutexRef class to clean up Mutex handling code 2015-07-06 11:58:08 +02:00
Bart van Strien dd1167d736 Fix inconsistent missing override warning in BMFontRasterizer 2015-07-06 11:52:40 +02:00
Bart van Strien 3449465f1a Update hgignore 2015-07-05 17:32:45 +02:00
Alex Szpakowski 87e20ccafb Fixed the display index parameter of love.window.getFullscreenModes, getDesktopDimensions, and setPosition to be 1-based instead of 0-based (resolves issue #1056.) 2015-07-05 10:06:24 -03:00
Alex Szpakowski 2168d509b3 Reworked ImageData:encode:
- It now returns a FileData containing the encoded ImageData.

- The first argument is now the format to encode to.

- The second argument is now the filename to write to, and is optional. No file will be written if a filename is not given.
2015-07-04 22:30:09 -03:00
Alex Szpakowski 3199482c3b Fixed filesystem writing on iOS. 2015-07-03 20:34:25 -03:00
Alex Szpakowski 91e94b4662 Potentially fixed a bug in the vorbis decoder seek callback. 2015-07-03 16:50:58 -03:00
Alex Szpakowski faa6b43441 Hopefully fixed a font initialization failure when OpenGL ES 3 is used. 2015-07-03 13:01:22 -03:00
Alex Szpakowski ded2dc39ee Fixed Font:getWidth and Font:getWrap to use kerning information. 2015-07-03 10:54:24 -03:00
Alex Szpakowski 8656797c5c Added a message box popup asking to quit the game to the default error handler, activated when the mouse is pressed or the screen is tapped. This is mostly useful on mobile devices where users can't press 'escape'. 2015-07-02 23:15:37 -03:00
Alex Szpakowski bf432aff7c Added basic kerning support for TrueType and BMFont fonts (resolves issue #1055.) 2015-07-02 21:07:34 -03:00
Alex Szpakowski 4550409ffa Removed an obsolete #ifndef check. 2015-06-29 14:25:20 -03:00
Alex Szpakowski af06203a4a Moved the appveyor script to a subfolder and updated it to properly choose Visual Studio 2012 and to create a post-build zip file. 2015-06-28 21:39:56 -03:00
Alex Szpakowski 74fd145fa9 Merged in xpol/love (pull request #45)
Add appveyor CI support.
2015-06-28 21:37:59 -03:00
Alex Szpakowski ee90d09937 Fixed smooth lines drawn with the 'none' line join mode. 2015-06-27 17:51:57 -03:00
Alex Szpakowski 6da759047e The index values returned by SpriteBatch:add and used by SpriteBatch:set are now 1-based rather than 0-based. 2015-06-26 23:10:14 -03:00
Alex Szpakowski 1e8786879b Re-added the built-in NormalMatrix uniform 3x3 matrix variable to shaders. 2015-06-26 21:51:22 -03:00
Alex Szpakowski d8fd1413d6 Renamed the internal 'Matrix' class to 'Matrix4'. 2015-06-26 19:34:05 -03:00
Alex Szpakowski c3612acfde Fixed the use of getRealDirectory when auto-detecting the identity name. 2015-06-25 10:00:54 -03:00
Bart van Strien 29da6b3c26 Attempt to make identity autodetection even more robust using getRealDirectory 2015-06-25 11:36:49 +02:00
Alex Szpakowski 247daa85b5 Added a couple comments documenting why some codepaths have been chosen. 2015-06-24 22:25:55 -03:00
Alex Szpakowski 4c571e8fd7 Prevent redundant shader uniform uploads for built-in uniforms when OpenGL ES 2 is used.
As a result, the graphics primitive drawing functions (e.g. love.graphics.rectangle) are now more efficient on mobile devices.
2015-06-24 22:04:19 -03:00
Alex Szpakowski 88c8e0c071 Added an optional (true by default) boolean argument to love.graphics.setBlendMode to specify whether alpha should be multiplied with rgb when blending.
Removed the 'premultiplied' blend mode, since setBlendMode("alpha", false) accomplishes the same thing now.

The 'multiply' blend mode is unaffected by the new flag, since fixed-function hardware blending can't do the equivalent of setBlendMode("multiply", true).
2015-06-24 16:47:10 -03:00
Alex Szpakowski ed3f419747 Prevent redundant calls to glEnable/DisableVertexAttribArray. This should hopefully fix a performance regression compared to 0.9.2 as well. 2015-06-23 20:55:23 -03:00
Bart van Strien e3ff0a0d63 Fix possible segfault when a DecodeHandler fails to decode an image properly 2015-06-23 13:35:32 +02:00
Alex Szpakowski bf1b409da1 Smooth lines now draw the entire line in 1 OpenGL draw call, rather than 2. 2015-06-21 20:28:26 -03:00
Alex Szpakowski 9d635fa63a Updated the changelog 2015-06-21 12:20:08 -03:00
Alex Szpakowski 0583ebe470 All vertex component arguments to Mesh:setVertex and Mesh:setVertexAttribute are now optional rather than required. Float vertex components default to 0, and byte components default to 255. 2015-06-21 11:47:56 -03:00
Alex Szpakowski c82ccbb89b love.graphics.setColor no longer uses the main per-vertex color attribute. This lets it affect the color of ParticleSystems, and SpriteBatches and Meshes even when they use custom per-vertex colors. 2015-06-21 11:20:26 -03:00
Alex Szpakowski 42ae9c9585 Moved the love.graphics Lua code into the graphics module folder. 2015-06-18 14:27:45 -03:00
Alex Szpakowski 2dc8a8ea45 Cleaned up some index buffer code. 2015-06-16 21:27:19 -03:00
Alex Szpakowski 073570b7af Fixed the return type of luax_objlen. 2015-06-16 20:57:31 -03:00
Bart van Strien 3cb777e2b7 Add basic lua 5.3 support 2015-06-16 10:25:41 +02:00
Alex Szpakowski df1bd42dec Implemented efficient FFI versions of ImageData methods.
Note that ImageData:mapPixel (with its optional sub-rectangle parameters) is often many times faster than a loop of ImageData:setPixel and/or getPixel, for anything more than a few pixels.
2015-06-15 00:50:01 -03:00
Alex Szpakowski 409d313bff Added FFI versions of SoundData:getBitDepth and SoundData:getDuration. 2015-06-14 18:58:11 -03:00
Alex Szpakowski 532c61c6c2 Implemented efficient FFI versions of SoundData methods, which are used when the LuaJIT FFI and JIT compiler are present. 2015-06-14 18:41:34 -03:00
Alex Szpakowski 57fa9994af Verify that the bit depth argument in love.sound.newSoundData is valid / supported. 2015-06-14 18:10:40 -03:00
Alex Szpakowski aac595525a Cleaned up some ImageData code. 2015-06-14 01:01:44 -03:00
Alex Szpakowski 16ebe92176 Added a flag to the Mac info.plist which allows high-dpi windows to be created in all situations when requested and supported. 2015-06-12 16:53:05 -03:00
Alex Szpakowski 59e4b1b8d6 Removed some debug prints on iOS. 2015-06-11 21:16:28 -03:00
Alex Szpakowski 3053278048 Moved the no-game screen code to its own file. 2015-06-09 22:38:36 -03:00
Alex Szpakowski b2b5a1d9df Fixed a compiler warning on Linux and iOS. 2015-06-09 21:26:41 -03:00