Commit Graph

731 Commits

Author SHA1 Message Date
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 0d174cfb81 Fix compiler warnings 2011-08-26 12:48:57 +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 873a99aba1 Add missing #include in VertexBuffer.cpp. 2011-08-12 13:38:42 +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 4165ac7e66 Add love.event.quit 2011-08-06 14:22:00 +02:00
Bart van Strien 620d359331 Add getRenderTarget (issue #257) 2011-08-06 14:16:28 +02:00
rude 9a4b921605 Particles now have fixed origin. (ParticleSystem::SetPosition will only affect
new particles, and existing particles will not gravitate against the new point).

This is another requirement to implement ParticleSystem in GLSL.
2011-07-24 18:47:13 +02:00
rude 1274b5d55a Do not allow more than eight sizes and colors in ParticleSystem. This makes it
less impossible to implement ParticleSystem as a vertex shader in the future.
2011-07-24 18:40:22 +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
rude 387a8ab2dc Issue #262: Add per-sprite colors. 2011-07-23 17:12:29 +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 fd5ca8e2c3 Missing a not, of course 2011-07-02 18:20:43 +02:00
Bart van Strien 60128e1b06 Fix quads on computers supporting npot textures 2011-07-02 18:17:47 +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 d613505a77 Only pad when needed 2011-06-10 15:03:27 +02:00
Bart van Strien bd158faaaa Revise spritebatch locking (binding now) (issue #231) 2011-06-10 14:40:37 +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
Bart van Strien 480568e654 Fix quads with padded images, tiling will still fail 2011-05-16 17:12:37 +02:00
Bart van Strien 87fd3362e2 Mixed up s and t, po2ify should work correctly now, quads still broken 2011-05-16 17:02:43 +02:00
Bart van Strien 360c190ef7 Move po2ifying to Image, Quads broken at the moment 2011-05-15 23:31:12 +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
Bill Meltsner a763fc8863 some more cleanup 2011-05-08 18:50:01 -04:00
Bart van Strien 4fd9888a16 Merge in minor branch, now minor is our next development target 2011-05-07 14:12:41 +02:00
José Romero dc2d87a90f Apply patch for issue #219 2011-04-27 16:35:14 +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 2425ea9979 Change particle system to accept an arbitrary number of colors and sizes to inerpolate.
API changes:
- ParticleSystem:setSize(min, max, var) -> ParticleSystem:setSizes(s0, ..., sN)
  !! ParticleSystem:setSize() drops variation parameter !!
- ParticleSystem:setColor([color1], [color2]) -> ParticleSystem:setColor([color1], ..., [colorN])

--HG--
branch : minor
2011-04-06 21:24:09 +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