Commit Graph

1751 Commits

Author SHA1 Message Date
Alex Szpakowski 259bb8ffdb Fixed errors caused by love exceptions to give a line number (see issue #772) 2013-10-23 15:20:31 -03:00
Alex Szpakowski faf483d156 Fixed error message when an invalid vertex index is given to Mesh:setVertex, Mesh:getVertex, and Mesh:setVertexMap (resolves issue #772) 2013-10-23 13:52:04 -03:00
Alex Szpakowski cfd030d4ab Fixed building on Mac OS 10.9 2013-10-23 06:53:52 -03:00
rude 27de844472 Include <algorithm> when std::min/max is used.
It won't build in Visual Studio 2013 unless we do this.
2013-10-23 00:09:12 +02:00
Alex Szpakowski 037ba6f93d Updated changelog 2013-10-21 19:52:42 -03:00
Alex Szpakowski d9da19d665 Error for misspelled / invalid window attributes in love.window.setMode (resolves issue #736) 2013-10-20 13:17:57 -03:00
Alex Szpakowski 249dad3cae love.filesystem.mkdir -> love.filesystem.createDirectory, love.filesystem.enumerate -> love.filesystem.getDirectoryItems. Resolves issue #609. 2013-10-20 04:07:37 -03:00
Alex Szpakowski 3e9fcacf07 Code style fixes 2013-10-20 04:02:09 -03:00
Alex Szpakowski 5542ab7f4e Fixed crash when checking if a sound file can be decoded by GME 2013-10-19 16:16:42 -03:00
Alex Szpakowski cf6acfa258 Added Source:getChannels. Positional/directional audio only works with 1-channel (mono) sources. 2013-10-15 23:09:35 -04:00
Bart van Strien f846ed60b2 Old merge? 2013-10-15 20:03:58 +02:00
Bart van Strien f6f8251234 Hopefully fix appdata dir creation on windows 2013-10-15 20:03:22 +02:00
Alex Szpakowski b556dde3cb love.graphics.draw(image, quad, x, y, ...) now errors instead of shifting parameters if the quad argument is nil 2013-10-14 03:38:07 -03:00
Alex Szpakowski 43b3629e01 Improved performance of Image:refresh 2013-10-13 16:31:29 -03:00
Alex Szpakowski e068aab6ea The function passed to ImageData:mapPixel must return at least r,g,b. Alpha component defaults to 255 (resolves issue #603) 2013-10-12 00:40:18 -03:00
Alex Szpakowski e5f56d93ce Updated visual studio project files (thanks Boolsheet) 2013-10-11 21:21:11 -03:00
Alex Szpakowski 13ea750454 Added Source:setCone(innerAngle, outerAngle, outerVolume). Resolves issue #643.
When combined with Source:setDirection (and Source:setPosition or love.audio.setPosition), the cone parameters allow for directional sound output from a Source.
2013-10-11 05:30:11 -03:00
Alex Szpakowski e2eb99a6af Added BezierCurve:getControlPointCount (resolves issue #759) 2013-10-11 02:53:53 -03:00
Alex Szpakowski b21f8ed3af Updated CMakeLists.txt 2013-10-11 02:44:44 -03:00
Alex Szpakowski 7f3cd7f044 Added Source:setRelativePosition and Source:hasRelativePosition, if enabled the Source's position will always be relative to the listener instead of absolute. 2013-10-11 02:25:48 -03:00
Alex Szpakowski 2710c6c488 Renamed Source:s/getDistance to Source:s/getAttenuationDistances (resolves issue #632).
Fixed detection for mipmap sharpness support.
2013-10-10 23:05:45 -03:00
Alex Szpakowski bf070afffa Fixed a SoundData constructor to compile in Visual C++ 2010 2013-10-08 18:17:31 -03:00
Alex Szpakowski 1c7c72472a Removed unused wrap_Geometry.cpp file 2013-10-08 17:29:07 -03:00
Alex Szpakowski 206e184cde love.graphics.print's x and y arguments now default to 0 (resolves issue #638) 2013-10-07 23:52:30 -03:00
Alex Szpakowski 951f5740bb Renamed ChainShape:setPrevVertex to ChainShape:setPreviousVertex (see issue #691) 2013-10-07 23:49:49 -03:00
Alex Szpakowski 4fa7347e26 Reduced code duplication in love.graphics.newImage 2013-10-07 22:18:44 -03:00
Alex Szpakowski 0f3c28392f Updated changelog 2013-10-07 18:29:18 -03:00
Alex Szpakowski 83a9e5912f Merged bartbes/love-experiments/Mesh into default 2013-10-07 15:43:32 -03:00
Alex Szpakowski fb34f5bc9e Auto-padded NPOT images' texture coordinates are now scaled at draw time via the texture matrix (fixes auto-padded images with Meshes.) Also fixed love.graphics.newQuad.
--HG--
branch : Mesh
2013-10-06 23:25:29 -03:00
Alex Szpakowski f87f97e4fe Better parameter checking for SoundData (resolves issue #764) 2013-10-06 21:52:05 -03:00
Alex Szpakowski 25caa188ba Fixed Joystick:getName to be more consistent 2013-10-05 04:07:39 -03:00
Alex Szpakowski 8b7f151a4d Added joystick vibration support for most common controllers (resolves issue #159).
Added Joystick:setVibration(left, right), Joystick:getVibration, and Joystick:isVibrationSupported.
left and right are numbers between 0 and 1 which correspond to the strength of the gamepad's left and right rumble motors, if it has them.
2013-10-05 01:54:41 -03:00
Bart van Strien 6aa150fe8b Add t.window.icon to love.conf (resolves #668) 2013-10-04 14:36:29 +02:00
Bart van Strien 0e6786988e Try to create appdata dir if it doesn't exist (hopefully resolves #680) 2013-10-04 14:30:56 +02:00
Bart van Strien 89140ee657 Add currently disabled automake rule for updating scripts 2013-10-04 14:18:09 +02:00
Bart van Strien 3ba22cad7b Seed love.math's random, instead of lua's in love.run (resolves #732) 2013-10-04 14:01:55 +02:00
Alex Szpakowski d161d5c0fc Fixed an uncaught exception in Mesh:getVertexMap
--HG--
branch : Mesh
2013-10-01 23:52:20 -03:00
Alex Szpakowski c426998b04 Fixed Mesh:setVertexMap when the mesh has more than 2^16-1 vertices (still needs more work to make it use smaller data types when available), added Mesh:setVertices
--HG--
branch : Mesh
2013-09-30 04:30:17 -03:00
Alex Szpakowski 857296f107 Merged default into Mesh
--HG--
branch : Mesh
2013-09-30 04:00:28 -03:00
Alex Szpakowski 95eedcd1be Using auto for some iterators for less dense-looking code 2013-09-30 02:35:10 -03:00
Alex Szpakowski 8d0246ada6 Xcode project now builds for 64 bit x86 only, by default (resolves issue #760).
Building for 32 bit x86 in OS X still works if you enable it.
2013-09-29 22:44:04 -03:00
Alex Szpakowski b59e3d9c35 Meshes now use vertex buffers for more efficient drawing.
--HG--
branch : Mesh
2013-09-29 21:24:19 -03:00
rude d07f0cc71e Add CMakeLists.txt.
This currently only works on Windows with Megasource
( http://bitbucket.org/rude/megasource ).
2013-09-30 00:49:56 +02:00
Bart van Strien 6cf25f9209 Clean up warnings in luasocket and box2d 2013-09-29 12:56:48 +02:00
Bart van Strien 375cbd4003 Make autoconf detect and enable c++11 support in compilers 2013-09-29 12:47:34 +02:00
Alex Szpakowski c63e2ec624 Merged default into Mesh
--HG--
branch : Mesh
2013-09-29 04:58:26 -03:00
Alex Szpakowski 5f609c2e2b OS X: switched to -std=c++11, fixed compilation, cleaned up obsolete files in src/platform/macosx/ 2013-09-29 02:50:37 -03:00
rude fc5d5e3f26 Fixed shutdown crash in ~Math.
The 'registry' global in Module.cpp appears to be destroyed before the last
module is destroyed, specifically the math module. This is bad, because ~Module
tries to look for itself in 'registry' after it's gone. This causes a nasty
debug assert in VS2012, and a shutdown crash in release builds.

Fixed by dynamically allocating/releasing the registry.
2013-09-29 00:49:50 +02:00
Alex Szpakowski 1e696c4505 Added Mesh objects and love.graphics.newMesh. Mesh objects are similar to Geometry but they're drawables (the relationship between meshes and images is the opposite of geometry and images.)
Removed Geometry objects and re-added Quads.

example:
local vertices = {{0, 0, 0, 0}, {100, 0, 1, 0}, {100, 100, 1, 1}, {0, 100, 0, 1}}
mesh = love.graphics.newMesh(vertices, image, "fan")
..
love.graphics.draw(mesh, 0, 0)

--HG--
branch : Mesh
2013-09-28 18:26:47 -03:00
Alex Szpakowski 1be8ac5be4 Removed some unused functions and fixed up some wrap_ headers 2013-09-26 00:48:48 -03:00