Commit Graph

59 Commits

Author SHA1 Message Date
rude 81c38e22d0 Applied the new style guidelines.
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Boolsheet 73672bd674 Clean up love.image because we own the memory, not DevIL 2012-05-29 23:36:49 +02:00
Bart van Strien 830283ff17 Properly catch exceptions thrown by ImageData:getPixel/setPixel, thereby preventing an uncaught exception for an invalid index. (Bug #381) 2012-03-03 12:35:55 +01:00
Bart van Strien 4ee7e780e7 Fix ImageData:paste optimization, missing dy and sy and check of sw and sh 2012-02-26 18:24:14 +01:00
Bart van Strien d525349549 Fix usage of a string past its lifetime, and set a default type for encode 2012-01-12 11:30:09 +01:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
Bart van Strien 7bd08ad72d Dramatically speed up ImageData:paste (issue #336) 2011-12-31 16:34:34 +01:00
Bart van Strien c707a4ca45 Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations) 2011-12-24 01:10:40 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
Bart van Strien ceab3f7a44 Catch exceptions thrown while encoding image data (issue #282) 2011-08-22 18:07:50 +02:00
Bart van Strien 94ec448a1b Fix getPixel 2011-07-03 12:49:11 +02:00
Bart van Strien f993fe99d3 Catch errors in getPixel and setPixel (bug #93) 2011-07-02 16:24:58 +02:00
Bart van Strien e5cd9f04d2 Apply Boolsheet's cosmetics (ticket #200) 2011-06-30 13:13:58 +02:00
Bart van Strien 176fb7d2f5 Manage our own ImageData, thereby bypassing DevILs thread-safety issues (bug #200) 2011-06-29 12:49:31 +02:00
Bart van Strien 360c190ef7 Move po2ifying to Image, Quads broken at the moment 2011-05-15 23:31:12 +02:00
Bill Meltsner 2e9e5a1502 make po2 stuff better 2011-05-15 16:33:38 -04:00
Bart van Strien af809ab210 Switch to bitwise ops to po2ify 2011-05-15 22:10:17 +02:00
Bart van Strien cf60754ef0 Make love.image automatically pad ImageData (and thus all images) to PO2.
Two notes:
- I don't think I ever clear the textures, so are they only transparent by coincidence?
- Maybe it's best if we surround the actually po2-ifying with ifs if we ever find a way to test if it's needed.
2011-05-13 15:55:41 +02:00
Bart van Strien 4fd9888a16 Merge in minor branch, now minor is our next development target 2011-05-07 14:12:41 +02:00
Bart van Strien 316ca607df Oops 2011-04-23 19:18:05 +02:00
Bart van Strien d60ad99da1 Prevent old DevIL errors from causing love errors 2011-04-23 19:16:17 +02:00
Bart van Strien cdf85280b6 Fix 2 compiler warnings 2011-04-08 09:12:30 +02:00
Bart van Strien d55941f7fa No more crashes when there is no memory for newImageData (issue #209) 2011-04-07 19:22:55 +02:00
rude 3fe9b2ff16 Reverted module selection feature. This is not really desired.
Users (or lovers) do not get to choose which implementation of
a module they would like to use.

The abstraction is for dealing with portability issues, not
for giving people the ability to choose an alternative
(inferior) backend. The best choice for any platform/situation
should at all times be the *default* for that platform/situation.
If this is not the case; it's a bug (that is easily fixed).

Any module should provide the functionality promised in the docs.
The lover (or user) should not care how, and if [s]he does, [s]he
does still not get to choose.

Also, a related note: duplication of wrapper code is something I
especially wanted to avoid when I first (or should I say ...
"eventually") formed the current architecture.

--HG--
branch : minor
2011-03-26 17:06:05 +01:00
Bill Meltsner cee7a4ccdb Removed EncodedImageData, added three new encoded image formats, and changed the way screenshots work - saving screenshots will be broken until we have some way of flipping ImageData, though
--HG--
branch : minor
2011-03-19 23:41:07 -05:00
Bart van Strien b4139ffab5 Rename loaders to fit their locations
--HG--
branch : minor
2011-03-13 20:25:35 +01:00
Bart van Strien ff387790ce Move luaopen_love_image from love.image to love.image.devil
--HG--
branch : minor
2011-03-13 19:51:08 +01:00
Bill Meltsner f512bd192f added TGA alpha support as per Boolsheet's patch in issue #156 2011-02-11 11:40:37 -05:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
vrld c5eb50d0d5 Fix issue #158 by forcing the image origin to be upper left. 2011-01-09 18:24:02 +01:00
Bart van Strien 8ae53765c7 Images are now bound before they are encoded (fixes #95) 2010-10-23 18:24:52 +02:00
Bill Meltsner 9a76ac7bea You can no longer access out-of-range pixels in ImageData 2010-10-19 17:15:27 -04:00
Bart van Strien 2107f6810b Fixed memory leak in EncodedImageData, thanks Michael R 2010-09-07 17:16:58 +02:00
Bill Meltsner e3a5aacd5a Overhauled ImageRasterizer, fixed a bunch of other crap, getting ready to poke around in love.graphics 2010-04-14 21:51:35 -04:00
Bill Meltsner b1dac7f381 EncodedImageData was implemented really stupidly. Now it's less stupid. 2010-04-11 23:09:29 -04:00
rude 78c783bb57 Fixed ImageFont. 2010-03-03 20:38:21 +01:00
bart@bartbes.ath.cx 736f7ab1a2 love.thread can now share full userdata 2010-02-14 17:41:11 +01:00
Bill Meltsner 73aba4bdd4 eliminated a whole bunch of gcc warnings 2010-02-09 13:21:25 -05:00
rude 72efaa283f Fixed crash on attempt to open non-existent file. 2010-02-03 20:48:58 +01:00
rude aa01c984b9 Updated all dates to 2010. 2010-01-31 16:54:47 +01:00
rude 435fc43f68 Fixed love.keyboard.setKeyRepeat, fixed issues with Body:getWhatever, and made the save directory settable. 2009-10-29 22:34:54 +01:00
rude 87e3c4131c Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal. 2009-10-10 11:11:04 +02:00
bill@Ixion cc90e43464 Fixed some more warnings/errors 2009-09-06 12:53:26 -05:00
bill@Ixion 716830882d Fixed some sign issues in ImageData 2009-09-06 11:29:17 -05:00
bill@Ixion 81c4f69148 Fixed errors and warnings on Linux (and probably Windows, just not Mac for some reason...) 2009-09-06 02:43:18 -05:00
bill@Ixion e21ce73554 now supports encoding to BMP as well as TGA, hooray 2009-09-05 14:07:05 -05:00
rude 3c2bd1bd9c Fixed epic bug in runtime.cpp causing non-Lua-owned objects to be released by Lua GC. 2009-09-05 16:14:52 +02:00
bart@bart 41a7c11f9f Fixed a few errors, buildable again 2009-09-04 08:49:39 +02:00
bill@Ixion 3655c9caae Lots changed: ImageData can now encode itself to any format you like as long as it's tga, love.filesystem can now write data to files, added EncodedImageData class. 2009-09-04 00:34:13 -05:00
bill@Ixion 4d2994e05f Fixed up love.graphics.newScreenshot() to return a right-side up image without breaking abstraction layers. 2009-09-02 20:42:38 -05:00