vrld
d5dce6284f
Fix issue #294 : Canvas not working when not rendering to default render target.
2011-09-07 13:42:51 +02:00
Bart van Strien
cc7b6431eb
Change default segments for l.g.circle to max(10, r)
2011-08-31 12:13:06 +02:00
Bart van Strien
5c43ba2779
More float quad work (issue #285 )
2011-08-25 14:06:50 +02:00
Bart van Strien
b14ca78109
Add string mapping for spritebatch usage parameter (issue #264 )
2011-08-24 12:11:08 +02:00
Bart van Strien
f0dad41f39
Switch quads over to floats instead of ints (issue #285 )
2011-08-24 09:58:16 +02:00
vrld
ec2cf3fbe9
Rename Mask to Stencil
2011-08-12 15:31:48 +02:00
vrld
cbe2d12db7
Use singular in l.g.isSupported()
2011-08-12 15:11:04 +02:00
vrld
af1e8761fa
Change l.g.isSupported('framebuffer') to l.g.isSupported('canvas')
2011-08-12 14:45:55 +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
480f936815
Added 'VertexBuffer' abstraction. SpriteBatches are now always supported.
...
Also improved memory usage in SpriteBatch. (No need to retain full copy of
sprites in memory. Can read that data back later to save data from OpenGL
context destruction).
2011-08-12 11:35:14 +02:00
Bart van Strien
620d359331
Add getRenderTarget (issue #257 )
2011-08-06 14:16:28 +02:00
rude
e1d1ebb2f1
Fix warnings in MSVC 2010.
2011-07-24 18:32:11 +02:00
Bart van Strien
3c5c4ee604
Add SpriteBatch support to love.graphics.isSupported
2011-07-24 15:37:02 +02:00
Bart van Strien
bd2b190a19
Add love.graphics.isSupported
...
Replaces love.graphics.hasPixelEffects and also does framebuffer support.
Also fixed 4 compiler warnings.
2011-07-24 15:21:52 +02:00
vrld
7b6836466e
Add missing files
2011-07-24 14:08: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
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
b90771d44a
Fail gracefully on a utf-8 decoding error (bug #244 )
2011-06-24 01:18:48 +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
Bill Meltsner
a763fc8863
some more cleanup
2011-05-08 18:50:01 -04: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
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
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
Bart van Strien
b4139ffab5
Rename loaders to fit their locations
...
--HG--
branch : minor
2011-03-13 20:25:35 +01:00
vrld
61bf387bf9
Change love.graphics.setBackgroundColor() to accept alpha values.
...
--HG--
branch : minor
2011-03-12 14:35:58 +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
a13b792a5c
Revert to last commit, as msvc is stuck in the last millenium
2011-02-22 11:15:27 +01:00
vrld
08259a4a0e
Change auto.lua to create plaintext instead of hex code.
2011-02-20 23:34:48 +01:00
Bill Meltsner
e3e4ae17d8
love.graphics.setFont no longer explodes when passed a nonexistent file (fixes issue #177 )
2011-02-02 21:07:21 -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
cb1efac715
Wrappers now catch negative width or height in setScissor (bug #125 )
2010-12-07 19:52:35 +01:00
Bart van Strien
f4da97d46e
Add hasFocus (issue #117 )
2010-11-28 11:29:48 +01:00
Bart van Strien
cee1a95b82
Table support for setBackgroundColor (bug #113 )
2010-11-28 11:21:26 +01:00
Bill Meltsner
d131c0c883
love.graphics.newFont now errors if the specified file doesn't exist ( fixes #115 )
2010-11-28 04:16:37 -06:00
Bart van Strien
a47fa1462d
Added table support for love.graphics.setColor (issue #106 )
2010-11-16 20:47:28 +01:00
Bill Meltsner
5b62692c7d
love.graphics.newImageFont now accepts an Image as its first argument
2010-10-12 19:35:53 -05:00
Bart van Strien
b2386d7201
(Hopefully) Fixed a bug where ImageData was not seen as preconverted by newImageFont ( #73 )
2010-09-27 21:08:05 +02:00
Bart van Strien
c96ade1cf0
Prevented a memory leak in the setFont wrapper
2010-09-15 21:10:46 +02:00
Bart van Strien
639eca997d
Fixed two cases of inefficient usage of the lua api
2010-09-03 15:30:13 +02:00
vrld
08c06f0fe0
Allow zero arguments in love.graphics.setRenderTarget(), update boot.lua.h
...
Calling love.graphics.setRenderTarget() as opposed to
love.graphics.setRenderTarget( nil ) was an error before. fixed.
2010-09-03 14:53:37 +02:00
vrld
78a793e08f
Add default width/height to love.graphics.newFramebuffer
2010-09-03 14:28:57 +02:00