Commit Graph

2348 Commits

Author SHA1 Message Date
Bart van Strien bd271ce5cb Remove OpenGL as compile-time dependency on linux, SDL loads it at runtime (and also GLES, if applicable) 2015-03-15 21:37:04 +01:00
Bart van Strien b049dd0387 Also add *.hpp files to autotools sources lists 2015-03-15 21:36:35 +01:00
Alex Szpakowski 468127eed4 Added a variant of love.graphics.clear which accepts a color table argument for each active canvas, allowing it to clear active canvases to different colors without having to call love.graphics.setCanvas. 2015-03-15 15:15:21 -03:00
Alex Szpakowski 5bc5a2b780 Show the compatibility warning message box before creating the window and loading main.lua, so it will still display even if there are errors in main.lua.
Also snprintf is only supported in VS2015...
2015-03-15 12:34:40 -03:00
Bart van Strien 715cab4f6f Fix love.joystick.setGamepadMapping suffix overwriting bug
Previously, if "leftx" was mapped before "x", the latter mapping would overwrite
the former, or in general if any mapping was a suffix of another, it needed to
be mapped first.
2015-03-15 15:53:48 +01:00
Alex Szpakowski 44b9efb43e Added love.isVersionCompatible. Returns true if the running version of love is compatible with the specified version. 2015-03-13 19:26:09 -03:00
Alex Szpakowski a119e6a862 Added an optional spacing argument to love.graphics.newImageFont, allowing additional spacing (positive or negative) to be applied to all glyphs rendered using that font. 2015-03-11 18:28:22 -03:00
Alex Szpakowski b1f4beac56 Fixed the internal color mask state not being updated when love.graphics.setColorMask is called. 2015-03-10 01:13:39 -03:00
Alex Szpakowski 2e8f19930c Fixed love.graphics.stencil 2015-03-09 23:08:42 -03:00
Alex Szpakowski 52b2701cf0 Removed love.graphics.clearStencil. love.graphics.stencil now clears the stencil buffer unless true is passed as an optional second argument ('keep the existing contents'.) 2015-03-09 23:05:29 -03:00
Alex Szpakowski b76b7bac8b Added support for a few more mouse buttons (via "x3", "x4", and "x5" button constants.) 2015-03-07 23:28:58 -04:00
Alex Szpakowski 4ef0d257e9 Added an optional font hinting argument to love.graphics.newFont / love.font.newRasterizer when loading TrueType fonts. Resolves issue #963.
Accepted values are "normal", "light", "mono", and "none".
2015-03-07 22:05:37 -04:00
Alex Szpakowski afcad4defc Added new flag t.accelerometerjoystick to love.conf (true by default.) When set to false on mobile, the device's accelerometer will not show up as a joystick even if the joystick module is loaded.
This can reduce CPU usage if you don't use the accelerometer but you don't want to disable the joystick module entirely.
2015-03-07 15:36:53 -04:00
Alex Szpakowski 7e99ea6839 Added a boolean argument to love.mousemoved indicating whether the event came from a touch press (love.mousepressed and love.mousereleased already have it.) 2015-03-07 00:41:18 -04:00
Alex Szpakowski 4dc73959a6 Hopefully fixed a major bug related to using Shader:send with textures. 2015-03-06 02:08:33 -04:00
Alex Szpakowski b39036eaa5 Added Image:getFlags. 2015-03-04 23:07:05 -04:00
Alex Szpakowski c561308c96 Font:getWrap's second return value is now a table containing the text split into lines. Resolves issue #1002. 2015-03-04 20:35:41 -04:00
Alex Szpakowski 4fa5ab4a07 Fixed the winding order of triangles in SpriteBatches and ParticleSystems. 2015-03-04 16:03:01 -04:00
Alex Szpakowski 4263de89ab The default offset for particles in a ParticleSystem is now updated when ParticleSystem:setQuads or ParticleSystem:setTexture is used (resolves issue #998.) 2015-03-04 03:57:41 -04:00
Alex Szpakowski e2652fddc1 Updated the readme. 2015-03-04 03:21:26 -04:00
Alex Szpakowski 06fa7bd7a4 Don't enable SDL_GL_FRAMEBUFFER_SRGB_CAPABLE in Linux when creating the window, to work around a potential bug. sRGB windows are still possible even without that. 2015-03-03 17:48:19 -04:00
Alex Szpakowski 8277eb9abd Renamed the internal OpenGL buffer class from VertexBuffer to GLBuffer. 2015-03-03 02:21:28 -04:00
Alex Szpakowski d7667ea8fc Updated changelog. 2015-03-03 00:49:46 -04:00
Alex Szpakowski 17be869293 Merged minor into default 2015-03-03 00:13:46 -04:00
Alex Szpakowski 275a9a300f Multi-canvas rendering (love.graphics.setCanvas with multiple canvases) now allows canvases with different formats, if the system supports it. Added 'multicanvasformats' to the table returned by love.graphics.getSupported.
--HG--
branch : minor
2015-03-02 23:43:09 -04:00
Alex Szpakowski 3ced9ca38f Added one- and two-channel Canvas formats: r8, rg8, r16f, rg16f, r32f, and rg32f.
--HG--
branch : minor
2015-03-02 18:06:14 -04:00
Alex Szpakowski 3fea174008 Cleaned up some shader code.
--HG--
branch : minor
2015-03-02 15:18:12 -04:00
Alex Szpakowski 3536f2665f love.graphics.clear can accept an array of color components.
--HG--
branch : minor
2015-03-02 02:32:53 -04:00
Alex Szpakowski 9869999fda Added a missing key constant.
--HG--
branch : minor
2015-03-02 00:52:07 -04:00
Alex Szpakowski bf5f0b4175 bmp isn't a supported format for ImageData:encode.
--HG--
branch : minor
2015-03-01 23:38:34 -04:00
Alex Szpakowski dcbe7c4871 Added a static assert to make sure type IDs always have a corresponding type name.
--HG--
branch : minor
2015-03-01 18:42:02 -04:00
Alex Szpakowski 2f419c1c83 Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
Alex Szpakowski 3830a0969c Moved the Texture and Quad Lua wrapper files out of the opengl graphics implementation folder.
--HG--
branch : minor
2015-03-01 03:51:44 -04:00
Alex Szpakowski c572b1af19 Moved the Lua wrapper code for love.event out of the sdl implementation folder.
--HG--
branch : minor
2015-03-01 02:55:50 -04:00
Alex Szpakowski a8276105c7 Renamed love.touch.getTouchIDs to love.touch.getIDs.
--HG--
branch : minor
2015-03-01 02:46:00 -04:00
Alex Szpakowski 395bb0bea8 Fixed a crash when Canvas:newImageData should error.
--HG--
branch : minor
2015-02-28 16:22:02 -04:00
Alex Szpakowski faa4a33fe9 Use triangle strips rather than triangle fans when possible.
--HG--
branch : minor
2015-02-28 02:32:34 -04:00
Alex Szpakowski 9313484fcc Cleaned up graphics.lua a bit
--HG--
branch : minor
2015-02-28 00:11:27 -04:00
Alex Szpakowski 9a2bf4b210 Fixed the check for OpenGL extensions that support glInvalidateFramebuffer to check for GL_ARB_invalidate_subdata instead of GL_ARB_ES3_compatibility.
--HG--
branch : minor
2015-02-27 23:34:08 -04:00
Alex Szpakowski b9c90e8a6f Fixed the background color for the error screen, and updated LodePNG to the latest version.
--HG--
branch : minor
2015-02-27 21:20:31 -04:00
Alex Szpakowski b52b9c7a2b Added love.graphics.discard, which discards the contents of the screen (or currently active Canvas.)
Using it just after activating a Canvas can improve performance on many mobile devices, if the conditions for using it are right.

--HG--
branch : minor
2015-02-27 04:51:38 -04:00
Alex Szpakowski 1326ae9a5d Added love.graphics.clearStencil, which only clears the stencil buffer.
--HG--
branch : minor
2015-02-27 03:58:40 -04:00
Alex Szpakowski 3efcf3901b Removed Canvas:clear. love.graphics.clear now accepts r,g,b,a values (and defaults to 0,0,0,0 with no arguments given.) love.graphics.clear clears the content of the currently active Canvas(es.)
--HG--
branch : minor
2015-02-27 03:47:25 -04:00
Alex Szpakowski f83c2db471 Cleaned up the Canvas code.
--HG--
branch : minor
2015-02-26 17:06:09 -04:00
Alex Szpakowski a66a7b7ce9 Prevent invalid stencil buffer contents from being used when switching to a Canvas on mobile.
--HG--
branch : minor
2015-02-26 01:00:38 -04:00
Alex Szpakowski 95f87ed886 Added love.lowmemory event callback function, called when the app is close to running out of memory on iOS and Android.
--HG--
branch : minor
2015-02-26 00:45:48 -04:00
Alex Szpakowski e8ce59038f Renamed Canvas:getImageData to Canvas:newImageData (see issue #1001.)
--HG--
branch : minor
2015-02-26 00:13:46 -04:00
Alex Szpakowski 8239d472d4 Removed Canvas:getPixel and added optional x/y/width/height arguments to Canvas:getImageData to specify a sub-rectangle (see issue #1001.)
--HG--
branch : minor
2015-02-25 23:27:35 -04:00
Alex Szpakowski 1b29679912 Merged default into minor
--HG--
branch : minor
2015-02-24 21:42:55 -04:00
Alex Szpakowski c4dd3df799 Added a placeholder default launch screen nib for iOS so the app always uses the device's native resolution (in iOS 8+, at least.)
--HG--
branch : minor
2015-02-24 03:54:29 -04:00