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
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
9251c2b4b1
handle love.graphics.arc being passed identical angles
...
--HG--
branch : minor
2011-03-19 10:13:11 -04:00
Bill Meltsner
33a2110b00
added love.graphics.arc
...
--HG--
branch : minor
2011-03-17 20:50:27 -04:00
vrld
61bf387bf9
Change love.graphics.setBackgroundColor() to accept alpha values.
...
--HG--
branch : minor
2011-03-12 14:35:58 +01:00
rude
2546f27b07
Merge default into minor.
...
--HG--
branch : minor
2011-03-09 12:39:21 +01:00
rude
10a1602840
Silence int -> float warnings on Windows.
2011-03-09 11:11:21 +01:00
Bill Meltsner
cbff71d089
New font engine is implemented and appears to work perfectly. Bugs may be discovered and the internals can certainly be optimized and improved (at some point, perhaps, a less naive packing algorithm would be nice) but for now, it's good to go.
...
--HG--
branch : newfont
2011-03-06 05:02:35 -05: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
vrld
64b6232c9a
Reinitialize event system (via SDL_INIT_VIDEO) in Graphics::setMode().
2011-01-31 20:27:42 +01:00
vrld
d25a3a36ce
Revert reverting 8d29d4ca285e.
2011-01-30 16:25:55 +01:00
vrld
e7db8c2491
Fix issue #176 : unexpected behaivior of love.graphics.line with hash-table argument.
2011-01-30 16:20:31 +01:00
Bart van Strien
04aa189d22
Didn't compile, totally my fault
2011-01-30 00:34:28 +01:00
Bart van Strien
10524be1c8
Fix toggleFullscreen
2011-01-30 00:29:08 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
rude
31c9995082
Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int.
2011-01-09 16:28:30 +01:00
vrld
b9b2c4a962
Rewrite Graphics::printf, fixes issue #107
...
Rewrote the complete logic to not operate on chars, but on lines and
tokens. Uses std streams, iterators and algorithms.
2011-01-09 16:27:19 +01: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
Bill Meltsner
3cb3537db0
Added vrld's text-rotation-fixing patch (finally fixes #56 )
2010-11-09 18:56:34 -05:00
Bart van Strien
d942ff3315
Fix font scaling newline issue (bug #56 )
2010-09-22 10:45:34 +02:00
Bart van Strien
26d856a9ce
Merged in fbos
2010-09-04 16:53:19 +02:00
Bart van Strien
9ba06d65f6
Added subtractive and multiplicative blend modes (thanks vrld)
2010-08-28 17:27:35 +02:00
Bart van Strien
4bfd5a905b
setMode now accepts 0, 0 as width and height for screen width and height
2010-08-28 17:03:21 +02:00