Commit Graph

1434 Commits

Author SHA1 Message Date
Alex Szpakowski 1edfbb766f Misc. fixes 2013-05-01 16:17:42 -07:00
Alex Szpakowski 8b50dd499b Removed now-unnecessary optional filter parameters from love.graphics.newImageFont 2013-04-28 18:15:03 -07:00
Alex Szpakowski ad2239aaaf Error instead of crash when love.graphics.newScreenshot fails 2013-04-28 11:12:19 -07:00
Alex Szpakowski b44c083894 Added Shader:sendInt 2013-04-27 19:26:32 -07:00
Alex Szpakowski fb9f8d2962 Added the getString method to all Data objects (issue #608) 2013-04-26 22:35:01 -07:00
Alex Szpakowski 16f3a93f28 Removed vestigial internal code for Data:getPointer 2013-04-26 22:05:58 -07:00
Bart van Strien 5c2b70f8ab Add man page (thanks Miriam Ruiz for the original) and make automake install and distribute it 2013-04-26 14:42:16 +02:00
Michał Górny 53408e3768 Install file associations and icons using autotools (issue #605)
Condensed version of pull request #24, containing the following commits:
- 31f803f Install .desktop and mime-info files with autotools.
- a354096 unix: Install icon using autotools as well.
- 4b1beb2 Fix Icon= in love.desktop.
- d0d3fe4 unix: Install game file icon as well.
- 9a6e291 unix: Update/fix README file name in Makefile.am.

All of the above commits were made by Michał Górny, and this single
code import was committed by Bart van Strien (so blame me if I broke
it..)
2013-04-26 14:20:49 +02:00
Alex Szpakowski 97f7ad1a54 Fixed extern matrices 2013-04-25 11:16:43 -07:00
Alex Szpakowski 0130b726de Improved error messages when sending bad values to a shader (also issue #587) 2013-04-24 23:19:37 -07:00
Alex Szpakowski 4e9050216f Updated changelog 2013-04-24 16:01:16 -07:00
Alex Szpakowski d0970658bf Exposed Geometry:setVertexColors and Geometry:hasVertexColors, to enable/disable per-vertex colors.
Vertex colors are automatically enabled if newGeometry or setVertex is called with a color other than 255,255,255,255
2013-04-24 12:04:24 -07:00
Alex Szpakowski 3b05ec0635 Geometries now automatically use per-vertex colors when drawing if any vertex has a custom color set, otherwise the constant color is used.
Still not a perfect solution, but it works better than before
2013-04-23 23:25:45 -07:00
Alex Szpakowski a5eaffe625 Disabled opengl debug output until it can be improved & made optional 2013-04-23 16:47:22 -07:00
Alex Szpakowski 97d61dda96 Optimized Geometry:setVertex 2013-04-23 01:02:13 -07:00
Alex Szpakowski 8de3a7c708 Fixed love.graphics.getColor before setColor is called 2013-04-22 23:34:28 -07:00
Alex Szpakowski ce8c8876fd Updated Visual Studio project for Geometry files (thanks Boolsheet) 2013-04-22 10:02:49 -07:00
Alex Szpakowski 38b7e19914 Fixed Geometry:flip 2013-04-21 19:54:05 -07:00
Alex Szpakowski f05e681b24 Error instead of crash when love.graphics.newGeometry fails 2013-04-21 18:49:56 -07:00
vrld 1e54049fbb Fix SpriteBatch.
Broken in my last commit (6e0f6a4).
2013-04-21 20:01:03 +02:00
Alex Szpakowski 27bbfaac42 Updated Xcode project and removed now-unneeded Quad source files 2013-04-21 10:13:20 -07:00
vrld 71317c4359 Add Geometries (replaces Quads).
A Geometry is a collection of vertices describing a non self-intersecting
(simple) polygon. In addition to screen coordinates, the vertices have
attributes for texture coordinates (s,t) and color (r,g,b,a).

It can be used as a quad, to display distorted images, or anything in between.

Added:
^^^^^^

-- geometry from table, where table has the format:
-- info = {
-- {x,y, s,t, [r = 255, g = 255, b = 255, a = 255]}
-- {x,y, s,t, [r = 255, g = 255, b = 255, a = 255]}
-- ...
-- }
geom = love.graphics.newGeometry(info)

-- convenience wrapper for quads (same as before)
geom = love.graphics.newQuad(x,y, w,h, sw,sh)

-- retrieve vertex i (1-indexed)
x,y,s,t,r,g,b,a = geom:getVertex(i)

-- set vertex i (1-indexed)
geom:setVertex(i, x,y, s,t, [r,g,b,a])

-- flip geometry
geom:flip(x, y)


Renamed:
^^^^^^^^

love.graphics.drawq() -> love.graphics.drawg()


Removed:
^^^^^^^^

quad:setViewport()
quad:getViewport()
2013-04-21 18:53:13 +02:00
Alex Szpakowski 9d62d0044c Macro hard, microsoft 2013-04-19 16:11:39 -03:00
Alex Szpakowski a477223629 Fixed love.audio.newSource, love.sound.newSoundData, and love.sound.newDecoder crashing when given a nonexistant filepath 2013-04-19 16:00:36 -03:00
Alex Szpakowski 426ca03315 Added ParticleSystem:setLinearAcceleration(xmin, ymin, xmax, ymax) and removed ParticleSystem:setGravity (issue #599) 2013-04-19 15:33:30 -03:00
Alex Szpakowski e9ff803c42 alpha values for ImageData:mapPixel default to 255 (issue #603) 2013-04-19 14:20:11 -03:00
Alex Szpakowski 6142352cd4 love._openConsole is now called before main.lua is loaded 2013-04-18 17:03:32 -03:00
Alex Szpakowski ce59756463 Fixed a case-sensitivity typo 2013-04-18 04:57:50 -03:00
Alex Szpakowski b6247f9ae1 Added many getters of questionable utility to ParticleSystems.
Storing your own values is blasphemy, clearly.
2013-04-18 04:54:53 -03:00
Alex Szpakowski bf6d1c258b Misc. code cosmetics and improvements 2013-04-18 02:14:35 -03:00
Alex Szpakowski 6fd3038405 Improved clarity/readability of internal OpenGL state shadowing functions 2013-04-17 01:06:33 -03:00
Alex Szpakowski f1770edaa1 Updated Visual Studio project for math module changes (thanks Boolsheet) 2013-04-16 15:52:29 -03:00
Alex Szpakowski 385c1ac4db Merged math-randobject into default (also addresses issue #586) 2013-04-15 16:00:45 -03:00
Alex Szpakowski 2d0b3b5226 ParticleSystems now use their own RNG instead of the global one (prevents ParticleSystems from modifying the global math.random state)
--HG--
branch : math-randobject
2013-04-15 15:11:06 -03:00
Alex Szpakowski d98e2cb40c Renamed randnormal to randomnormal
--HG--
branch : math-randobject
2013-04-15 14:57:20 -03:00
Alex Szpakowski 3046981fce Added love.math.newRandomGenerator. Returns a RNG object with its own seed and random methods.
--HG--
branch : math-randobject
2013-04-14 23:02:44 -03:00
Alex Szpakowski 96f4f532bb Updated Visual Studio project files for image module changes (thanks Boolsheet) 2013-04-13 05:35:38 -03:00
Alex Szpakowski 6a27e1aa2f Ensure the current color is set properly after drawing particlesystems and spritebatches 2013-04-12 15:40:53 -03:00
Alex Szpakowski 3edf033498 Internally keep track of the value of the current color (issue #564) 2013-04-12 15:24:21 -03:00
Alex Szpakowski ba3a363fd3 Potentially worked around an SDL resize event bug in windows causing initial window creation to happen twice 2013-04-12 14:20:00 -03:00
Alex Szpakowski 995210e594 Updated changelog 2013-04-11 20:12:15 -03:00
Alex Szpakowski 7391d9821f Merged love.graphics.origin into default (issue #124) 2013-04-11 17:59:32 -03:00
Alex Szpakowski c7838b78b6 Added love.graphics.setAlphaTest (issue #534) 2013-04-10 13:17:54 -03:00
Alex Szpakowski b22f1aa16a Added Image:refresh(), reloads a love.graphics image using the imagedata that created it 2013-04-10 00:15:43 -03:00
Alex Szpakowski c215541d6c Merged mage-CompressedData into default 2013-04-09 23:44:00 -03:00
Alex Szpakowski 4cd14d5c08 Made the getSize() and getData() methods for CompressedData consistent with each other. Note that CompressedData's data may not all be contiguous in memory, so getData(miplevel) and getSize(miplevel) should always be used instead.
--HG--
branch : image-CompressedData
2013-04-09 23:39:20 -03:00
Alex Szpakowski 9abfb9e23b Improved performance of ImageData:getPixel and ImageData:mapPixel 2013-04-09 18:12:03 -03:00
Alex Szpakowski b59b967f6b Fixed a memory leak in Canvas:getImageData() (issue #590) 2013-04-09 14:08:05 -03:00
Alex Szpakowski 1b80853118 Fixed an OpenGL error when MSAA isn't supported 2013-04-09 10:57:43 -03:00
Alex Szpakowski 85ee87c12e Merged in darthfodder/love/sounddata-samplecount (pull request #23)
Add getSampleCount method to SoundData. resolves #578
2013-04-09 00:31:23 -03:00