Commit Graph

54 Commits

Author SHA1 Message Date
Bart van Strien 8867f6c329 Merge in default
--HG--
branch : minor
2012-10-14 17:23:35 +02:00
vrld ccdf6e1c00 Fix Issue #476: Add HDR Canvas (thanks, Alexander Szpakowski!).
* Add `love.graphics.isSupported("hdrcanvas")' to query whether the hardware
  actually supports HDR canvases.

* Add optional third argument to `love.graphics.newCanvas(w,h, type)', where
  `type' is one of "normal" or "hdr" and defaults to "normal". HDR canvases
  use floating point that can have values > 1 to store pixels, allowing for
  HDR rendering and other higher level lighting techniques when combined with
  pixel effects.

* Add `canvas:getType()'.
2012-10-11 22:22:10 +02:00
Bart van Strien bddee1753b Use a flags table for setMode now, implement resizable and borderless windows, and add resize event
Example setMode invocation: love.graphics.setMode(800, 600, {fullscreen = false, vsync = true, borderless = true})
t.screen.resizable and t.screen.borderless are available in love.conf
And love.resize(w, h) gets called if it exists on a resize event.
NOTE: love.handlers.resize(w, h) does the required setMode, but that does mean a visual reload

--HG--
branch : minor
2012-07-23 11:53:13 +02:00
Marc Lepage 4cc0056a21 Fix some typos in comments. 2012-07-12 00:21:25 -04:00
Bart van Strien 7793e7f02f CRLF to LF 2012-07-04 14:40:24 +02:00
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
Bart van Strien 1e00f0f981 Move the default image filter to the Image class, instead of Graphics applying it on newImage 2012-05-18 17:35:51 +02:00
Bart van Strien 2ac4a9e6d0 Manually keep track of bound textures, so we don't have to poll each frame
Patch submitted by slime73.
2012-01-10 15:36:18 +01:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
vrld 247f57c10b Fix issue 246: Add line antialiasing through 'overdraw'.
Points to consider:
- Make softness customizable (`halo' in Graphics::polyline()).
- Add overdraw at beginning and ending edge of the line.
2011-12-25 19:05:04 +01:00
Bart van Strien 7c8fff979a Create love.window, abstract SDL out of love.graphics 2011-12-11 16:55:52 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
vrld 48137cd2e1 Fix Issue #278: Set default filter mode for new images.
Add the somewhat lengthy named love.graphics.getDefaultImageFilter() and
love.graphics.getDefaultImageFilter(). The verbose name should point to the
fact that changing the default filter midway through the game will not affect
the images already loaded using love.graphics.newImage().
2011-10-07 14:44:17 +02:00
Bart van Strien 5c43ba2779 More float quad work (issue #285) 2011-08-25 14:06:50 +02:00
vrld ec2cf3fbe9 Rename Mask to Stencil 2011-08-12 15:31:48 +02:00
vrld 28b4008797 Rename Framebuffer to Canvas (issue #263). Move error reporting code.
Error reporting now resides in Graphics::newCanvas() instead of the
previous location wrap_newFramebuffer(). Changed error text for
"Error in implementation" to point to a possible fix.
2011-08-12 14:41:18 +02:00
vrld 24a52f056b Add pixel effects (love-glsl) 2011-07-24 14:03:46 +02:00
Bart van Strien cc4f0e2661 Add love.graphics.getMode, thanks Boolsheet (issue #254) 2011-07-11 17:14:52 +02:00
vrld d420d68048 Add shear transformation and transform object (issue #152).
Add origin parameters to love.graphics.print.

New shear parameters kx,ky for:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print,
- SpriteBatch:add,
- SpriteBatch:addq.

Transform objects apply to:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print.
2011-07-05 14:33:34 +02:00
Bart van Strien 43a6357b54 Use correct height for y correction in set/getScissor (bug #234) 2011-06-08 23:17:32 +02:00
Bart van Strien efb8efb45e Prevent overflows and underflows in love.graphics.push and love.graphics.pop (bug #118)
Maximum is hardware maximum - 5, so the engine itself has a few matrices.
2011-06-08 22:45:28 +02:00
Bill Meltsner 09ed781f66 tabs for indentation, not spaces (dammit Xcode) 2011-06-03 17:04:35 -05:00
Bill Meltsner c981d835d3 Cleaned up/updated love.graphics doc comments. 2011-06-03 16:43:33 -05:00
vrld 30d6968ef9 Rename 'defineMask' to 'newMask'. Add inverted mask (issue #226). 2011-05-30 14:45:33 +02:00
vrld 939041886c Add masking (see issue #211). Only "hard" masks are supported, no
semitransparent ones.

--HG--
branch : minor
2011-04-26 22:10:34 +02:00
vrld aa5eb4380d Add Color class.
--HG--
branch : minor
2011-04-06 21:20:32 +02:00
vrld 2a42c64a35 Replace line drawing via GL_LINE with custom line drawing (issue #153)
Allows for correctly scaleable lines, (very) big line widths. Corners in
rectangles/triangles/... join up nicely (issue #197).

--HG--
branch : minor
2011-03-22 01:08:31 +01:00
Bill Meltsner 33a2110b00 added love.graphics.arc
--HG--
branch : minor
2011-03-17 20:50:27 -04:00
Bill Meltsner 94b4319878 trashed old unnecessary font stuff - compiles, but obviously will not work yet
--HG--
branch : newfont
2011-03-05 23:17:36 -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 e3067ff33d Fix issue #136 - Filter for Imagefonts. 2011-01-07 14:08:10 +01:00
vrld 28df1edf03 Code cleanup: remove unnecessary `print' routines 2011-01-02 22:58:53 +01:00
Bart van Strien 36226401bf Store and restore caption and mouse visibility when using setMode (bug #142) 2010-12-20 17:38:26 +01:00
Bart van Strien f4da97d46e Add hasFocus (issue #117) 2010-11-28 11:29:48 +01:00
Bart van Strien 9d35792fe5 Did the name change 2010-08-13 13:33:13 +02:00
Bart van Strien f87738edb5 Added first review of vrld's FBO patch 2010-08-10 19:05:56 +02:00
Bart van Strien b8c82d51b8 Oops, that wasn't supposed to be in the repo (yet) 2010-08-10 16:43:35 +02:00
Bart van Strien 8362e86627 First import and review of vrld's patch 2010-08-10 16:23:11 +02:00
Bill Meltsner 176645e25d added love.graphics.setIcon 2010-08-01 08:56:05 -05:00
Bill Meltsner 0f84907996 Dropped the required OS X version to 10.4 - some frameworks may have to be recompiled but the source itself compiles fine (with a couple tweaks) 2010-05-22 18:17:08 -05:00
Bill Meltsner f8f812a719 did a bunch of other stuff, sorry about the monolithic changeset but the diffs should be understandable enough 2010-04-15 10:19:01 -04:00
rude aa01c984b9 Updated all dates to 2010. 2010-01-31 16:54:47 +01:00
Bill Meltsner 8de70ca2aa added polyline support to love.graphics.line (the syntax is the same as love.graphics.polygon - either a list or a table of vertices) 2010-01-19 08:27:12 -05: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
rude 623e701549 Modules now reside in Lua and are treated (almost) like normal objects.
Also added a way of getting a pointer to abstract module instances internally.
2009-09-02 21:18:13 +02:00
bill@Ixion cece5fe625 readded support for screenshots - love.graphics.newScreenshot() returns ImageData that can be manipulated as one pleases 2009-09-01 03:56:00 -05:00
rude a237008ce2 ParticleSystem works now. Error handler no longer loops forever. :) 2009-08-27 00:48:08 +02:00
rude c52c218ba1 Renamed Frame to Quad; added drawq/addq; fixed some bugs. 2009-08-17 23:35:04 +02:00
rude 26625c46cb Fixed RBG -> RGB in Graphics. 2009-07-30 00:59:46 +02:00
rude 0c241a14fb Added resources, and changed slightly how wrappers expose functions. 2009-07-30 00:37:43 +02:00