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
vrld
26780681ea
Remove artifacts at line endings (see 4f9c5db78143).
2012-05-09 17:45:50 +02:00
vrld
b5f3addd35
Remove antialiasing artifacts when drawing lines at a very big scale.
...
When drawing lines at scales>1 the inner workings (gradients) of the
antialiasing too were upscaled and became visible. When the scale was very
large this produced interesing yet unexpected visuals.
2012-05-09 17:17:16 +02:00
Bill Meltsner
b956813e8e
Freeze, Allman police!
2012-03-03 20:41:42 -05:00
Bill Meltsner
fc6a9df304
Report lack of support for the subtract blendmode through the Blue Screen of LÖVE instead of stderr spam.
2012-03-03 20:33:55 -05:00
Bill Meltsner
57b4d2c5b9
Add support for falling back to glBlendEquationEXT if necessary.
...
This should help keep LÖVE from crashing on old cards with crappy drivers.
2012-03-03 19:25:42 -05:00
Bill Meltsner
d69ec266be
Call PixelEffect::detach() in Graphics::reset, not Graphics::clear (fixes issue #379 )
2012-03-02 19:26:40 -05:00
Bill Meltsner
84634affd5
Make love.graphics.toggleFullscreen properly handle graphics state.
2012-02-29 18:55:08 -05:00
Bill Meltsner
8f781e9f13
Add "combine" color mode, for colorizing images (see https://love2d.org/forums/viewtopic.php?f=4&t=7648 )
2012-01-26 15:00:40 -05:00
Bill Meltsner
a0be14869f
Fix state saving to handle any blend/colormode
2012-01-26 14:46:59 -05:00
vrld
1a9eafb76a
Fix buffer over-read in draw_overdraw() (thanks, Boolsheet!).
2012-01-15 14:36:51 +01: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
9c9b1810b7
Decrese core-line width when overdrawing to preserve original line width.
2011-12-30 14:09:26 +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
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
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
53e010a832
Remove all uses of LOVE_UNUSED, and simply not name the arguments instead
2011-12-20 20:26:17 +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
5fb4f2c63d
Request ALL the bits
2011-11-30 17:50:41 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01: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
ce9e694acc
Make setDefaultImageFilter() not break image:setFilter() (thanks adrix89!)
2011-10-10 12:16:28 +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
Bart van Strien
190e11d016
Move wrapping to Font::getWrap and make printf use that (fixes issue #230 )
2011-09-03 14:31:31 +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
rude
e1d1ebb2f1
Fix warnings in MSVC 2010.
2011-07-24 18:32:11 +02:00
vrld
24a52f056b
Add pixel effects (love-glsl)
2011-07-24 14:03:46 +02:00
vrld
b1c5b948c3
Fix issue #259 : oy ignored in love.graphics.drawq
2011-07-18 02:07:46 +02:00
Bart van Strien
94d16c095c
Always check if the fsaa succeeded
2011-07-11 21:08:49 +02:00
Bart van Strien
cc4f0e2661
Add love.graphics.getMode, thanks Boolsheet (issue #254 )
2011-07-11 17:14:52 +02:00
vrld
6ea187b2f1
Use *ARB versions for VBOs in SpriteBatch. Throw error if SpriteBatch not
...
supported. Prettier overloading of SpriteBatch:add[q]().
2011-07-05 16:06:14 +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
vrld
30d6968ef9
Rename 'defineMask' to 'newMask'. Add inverted mask (issue #226 ).
2011-05-30 14:45:33 +02:00
Bart van Strien
1a340cd6a0
Do not wrap when a single word is longer than the wrap limit.
...
(So no extra, empty, newline.)
2011-05-14 23:02:52 +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
vrld
a18632ce2d
Change Graphics::reset() to unbind FBO and clear stencil buffer. Change error
...
screen to call love.graphics.reset() instead of individual resets.
--HG--
branch : minor
2011-04-26 23:20:58 +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
1b8b144bc8
Fix polygon drawing: index of coordinates was off by one.
...
--HG--
branch : minor
2011-04-25 23:45:15 +02:00
vrld
aa5eb4380d
Add Color class.
...
--HG--
branch : minor
2011-04-06 21:20:32 +02:00
vrld
678f6fdadf
Fix getBlendMode() to detect subtractive and multiplicative blend modes.
2011-04-03 16:54:18 +02:00
rude
9ba2c4eb1d
Fixed MSVC2010 compiler errors (ambiguous use of ::fmod).
...
--HG--
branch : minor
2011-03-26 17:10:41 +01:00