Commit Graph

293 Commits

Author SHA1 Message Date
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
Bill Meltsner 21516fc658 Add padding around every glyph in a Font texture, fixing the fringing seen with scaled text (actually fixes issue #321) 2012-01-08 20:59:52 -06:00
Bill Meltsner 4c5d11d582 Backout changeset e90d89c7b9712297c14ba73eda37ec28f25101f9 2012-01-08 20:14:27 -06:00
Bart van Strien 5fa0a4cfa3 Drastically improve the font scaling quality (issue #321)
Note that it isn't perfect yet, but a lot better.
2012-01-08 14:11:40 +01:00
Bart van Strien 1509403ca7 Add SpriteBatch:getImage (issue #321) 2012-01-08 13:46:01 +01:00
Bart van Strien e0b420c988 Properly export love modules to lua, package.loaded is correct now 2012-01-07 14:08:41 +01:00
Bart van Strien 870973197c Only bind images when they weren't (issue #353) 2012-01-07 11:37:50 +01:00
vrld 9c9b1810b7 Decrese core-line width when overdrawing to preserve original line width. 2011-12-30 14:09:26 +01:00
vrld 6178aea6ef Discard active stencil when switching canvas. 2011-12-29 15:27:04 +01:00
vrld b0fbff108c Better line smoothing.
- Overdraw now uses only one array buffer.
- Line endings are overdrawn if the line is not closed.
- Includes more magic.
2011-12-29 15:16:53 +01:00
vrld cde8b92113 Remove some type conversion warnings. 2011-12-28 14:17:10 +01:00
vrld a7e040001b Reset current color after drawing smooth lines.
GL_COLOR_ARRAY used by line smoothing leaves the current color
undefined after calling glDrawArrays. This makes it defined again.
2011-12-27 23:32:11 +01:00
Bart van Strien 864c800e10 Fix some warnings 2011-12-27 21:25:06 +01:00
vrld a855a01f02 Fix two particle system typos (thanks, Boolsheet!) 2011-12-26 21:29:47 +01: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 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
Bill Meltsner bc278cf2b8 love.graphics.arc is now better and actually draws in the right direction 2011-12-22 03:37:34 -06:00
Bart van Strien 951d420db7 Eliminate more warnings 2011-12-20 21:02:59 +01:00
Bart van Strien 53e010a832 Remove all uses of LOVE_UNUSED, and simply not name the arguments instead 2011-12-20 20:26:17 +01:00
Bill Meltsner 969c53e592 make love build on OS X again - there's no need to include gl.h directly, GLee.h does that for us in a cross-platform way 2011-12-19 00:28:45 -06:00
Bart van Strien e37470f54d No more Font:set(), instead love.graphics.setNewFont 2011-12-13 19:22:59 +01:00
Bart van Strien 9682ebecf9 Remove love.graphics.setFont([<file>,] <size>) shorthand, idiom is now love.graphics.newFont([<file>,] <size>):set()
This makes sure that setFont doesn't create any fonts.
2011-12-13 18:51:24 +01:00
Bart van Strien 7c8fff979a Create love.window, abstract SDL out of love.graphics 2011-12-11 16:55:52 +01:00
vrld 2b7da8ea27 Rename love.graphics.[sg]etRenderTarget to love.graphics.[sg]etCanvas 2011-12-11 16:24:59 +01:00
Bart van Strien 5fb4f2c63d Request ALL the bits 2011-11-30 17:50:41 +01:00
vrld 66f640fa0e Fix typo in Quad::mirror(). 2011-11-19 16:11:49 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
vrld 983b00c510 Revert Canvas flipping (commits 9cb824e2fa84, e0234edd0026) in order to fix issue #324. 2011-11-12 22:09:56 +01:00
vrld c208f4b08d Add missing license headers. 2011-11-12 21:19:35 +01:00
vrld fec5b9ac91 Issue #327 again: w__gc's correctness depending on order of inheritance. 2011-11-12 21:13:38 +01:00
vrld 7a513e1434 Make love::Exception safe(r).
Now allows exceptions of arbitrary length.
Now allows catching a non-reference, i.e. catch(love::Exception e).
2011-11-12 21:11:41 +01:00
vrld aedf532cdc Fix 3/4 of issue #327: memory allocation issues. 2011-11-08 23:22:48 +01:00
Bart van Strien 49ec65dbf3 Oops, didn't have a clean tree 2011-11-05 23:17:32 +01:00
Bart van Strien d8666202cd Improve compatibility check (I still can't believe robin was right) 2011-11-05 22:07:15 +01:00
vrld 9d63f08472 Make GLSL compiler messages NULL-terminated strings, even if they already are. 2011-11-04 19:08:37 +01:00
vrld cd66b01da3 Add GLSL version number check to PixelEffect::isSupported() 2011-10-26 21:17:40 +02:00
vrld f296fbb903 Add format guard 2011-10-26 21:12:17 +02:00
Bart van Strien d8b1d67a34 Centralize NPOT support check for image, export it to isSupported 2011-10-24 17:43:56 +02:00
Bart van Strien dc66ea20c1 Add SpriteBatch:set(q) and make add(q) return the index 2011-10-20 20:19:01 +02:00
Bill Meltsner 57f9cf439e Add LOVE_UNUSED macro to stamp out all those "unused parameter" warnings 2011-10-12 14:03:38 -05:00
vrld 5eb26e8f7e Probably fix issue #312. Needs more testing with intel cards. 2011-10-12 17:11:13 +02:00
vrld 51443454c2 Determine FramebufferStrategy only once 2011-10-12 17:10:04 +02:00
Bill Meltsner c5cf3fefeb that awkward moment when you forget you can't automatically allocate arrays with variable expressions in C++ 2011-10-12 00:06:15 -05:00
Bill Meltsner bc0cd3b2d5 Changing flipping broke Canvas:getImageData - fortunately, it also made it much simpler (fixes issue #311) 2011-10-11 23:29:10 -05:00
vrld ce9e694acc Make setDefaultImageFilter() not break image:setFilter() (thanks adrix89!) 2011-10-10 12:16:28 +02:00
vrld b0b9117721 Add uniform cache in pixel effect. Remove a compiler warning and debug output. 2011-10-07 14:44:57 +02: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 bee9d49515 Add premultiplied blending 2011-10-06 15:17:21 +02:00
Bill Meltsner 4f4fbae9a5 Properly #include DrawQable in wrap_Graphics.cpp 2011-10-04 12:38:40 -04:00
Bill Meltsner 14348f6146 Create DrawQable class, make Image and Canvas DrawQable, and make love.graphics.drawq take a DrawQable as its first argument 2011-10-04 12:33:34 -04:00