Commit Graph

1407 Commits

Author SHA1 Message Date
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
Alex Szpakowski ab2c4aca7e Removed an unused graphics Image method
--HG--
branch : image-CompressedData
2013-04-08 21:58:20 -03:00
Alex Szpakowski 299ee64320 Added Image:isCompressed()
--HG--
branch : image-CompressedData
2013-04-07 23:11:11 -03:00
Alex Szpakowski 7403245715 Cosmetic code improvements
--HG--
branch : image-CompressedData
2013-04-07 22:58:08 -03:00
darthfodder 2bdc4b04a8 Fix formatting to be like original default
--HG--
branch : sounddata-samplecount
2013-04-07 18:25:59 -07:00
darthfodder f55a282f34 Fix conflicts with default
--HG--
branch : sounddata-samplecount
2013-04-07 18:22:56 -07:00
Alex Szpakowski 88d64954a4 Replaced the devil love.image module with love.image.magpie, which can decide which image library to use in a similar manner to love.sound.lullaby. Some rough edges still exist.
love.filesystem.newFileData now accepts filepaths and File objects.

--HG--
branch : image-CompressedData
2013-04-07 17:18:34 -03:00
Alex Szpakowski 1c720afaf8 Cleaned up some shader code internals 2013-04-06 14:14:11 -03:00
Alex Szpakowski cfe6014b68 Improved shader:getWarnings() to return shader compiler warnings as well as shader program linker and usage warnings 2013-04-06 14:02:24 -03:00
Alex Szpakowski 8a8adcce39 Code cleanup
--HG--
branch : image-CompressedData
2013-04-05 18:55:44 -03:00
Alex Szpakowski 5301026f3c Added support for DXT1/3/5 and BC5/7 compressed textures via love.image.CompressedData. Some internals are still iffy.
- added a new CompressedData type to love.image
- added love.image.isCompressed(file or data)
- love.graphics.newImage automatically tests for compression when loading a file
- added love.graphics.isSupported strings for DXT, BC5, and BC7

Compressed textures meant to be used on the GPU offer huge performance gains when
- loading the texture from a file
- loading the texture from RAM to VRAM
- loading mipmaps
- rendering

--HG--
branch : image-CompressedData
2013-04-04 19:09:18 -03:00
Alex Szpakowski 7e658861d7 love.graphics.drawq's x,y parameters are now optional, to match love.graphics.draw 2013-04-01 16:47:45 -03:00
Alex Szpakowski d5aa807747 More internal code cleanup 2013-03-31 19:02:27 -03:00
Alex Szpakowski eef4eed636 Cleaned up some Lua binding code 2013-03-31 04:55:03 -03:00
Alex Szpakowski ab3302e969 Updated GLee with opengl 4.3 and recent extension definitions 2013-03-31 00:31:21 -03:00
Alex Szpakowski b9533d5cb8 Fixed love.timer.getFPS and love.timer.getAverageDelta during the first second of runtime 2013-03-30 21:56:57 -03:00
Alex Szpakowski 1a1d59384a Fixed some memory leaks in love.graphics.newImageData and ImageData:encode. 2013-03-30 16:39:50 -03:00
Alex Szpakowski f0860a488d Added argument type checking to Channel:push (nil now errors instead of crashing) 2013-03-30 14:42:09 -03:00
Alex Szpakowski f3915757c5 Updated changelog 2013-03-30 04:45:21 -03:00
Alex Szpakowski 63ac9aa52a De-obfuscated more shader error message tracebacks 2013-03-27 19:44:50 -03:00
Alex Szpakowski 23a0f3a69c Merged love-experiments/love.graphics.setColorMask into default 2013-03-27 19:43:04 -03:00
Alex Szpakowski fd839bbee9 Removed some internal vestigial traces of EncodedImageData 2013-03-27 01:32:29 -03:00
Alex Szpakowski 7b8884965e Added ParticleSystem:emit(num) (issue #577) 2013-03-27 01:09:53 -03:00
Alex Szpakowski 702f9515d8 Merged bartbes/love-experiments/MRTs into default 2013-03-26 23:41:46 -03:00
Alex Szpakowski fa799227a2 Fixed SoundData:getDuration 2013-03-26 19:45:32 -03:00
Alex Szpakowski a55c7e871e fixed canvas:clear() when multi-canvas rendering is active, changed some names and wording
--HG--
branch : MRTs
2013-03-26 04:58:43 -03:00
darthfodder 11dc74c7db Add SoundData:getSampleCount() function
Adds SoundData:getSampleCount(), calculates how many samples there are
in this particular SoundData. resolves #578

--HG--
branch : sounddata-samplecount
2013-03-25 22:04:39 -07:00
darthfodder 275a144907 Remove commented out line 2013-03-25 20:43:51 -07:00