Alex Szpakowski
d39bb315af
love.graphics.newScreenshot replaces alpha with full opacity by default (issue #374 , thanks Boolsheet)
...
Some additional overhead was added to newScreenshot because it doesn't use glPixelTransfer (not supported in ES2 / core GL3+, and like all GL functions has the slight potential to be buggy on some drivers). This choice might be revisited in the future.
2013-03-12 20:48:40 -03:00
Alex Szpakowski
94f140454f
More Quad code cleanup
2013-03-11 22:46:25 -03:00
Alex Szpakowski
17bcab4f32
Added love.graphics.getDimensions and Image/Canvas/ImageData:getDimensions (issue #566 )
2013-03-11 19:03:37 -03:00
Alex Szpakowski
4704c4e19e
Cleaned up some ParticleSystem and Quad code
2013-03-11 17:56:55 -03:00
Alex Szpakowski
6a83eba5f2
Merged love-experiments/particlesystem-quads into default
2013-03-11 01:53:49 -03:00
Alex Szpakowski
318f335c7c
ParticleSystem:setQuads can now accept a table argument, cleaned up the ParticleSystem quad code
...
--HG--
branch : particlesystem-quads
2013-03-11 01:44:43 -03:00
Bart van Strien
7efe11b11f
Add centered flag to setMode, optionally centers the window (on by default, as before) (issue #463 )
2013-03-10 23:00:31 +01:00
Alex Szpakowski
d30809ebff
Added ParticleSystem:setQuads(q1, q2, ...), quads are chosen based on current particle lifetime in a similar style to ParticleSystem:setColors
...
--HG--
branch : particlesystem-quads
2013-03-10 03:40:25 -03:00
Alex Szpakowski
738f471978
Fixed shader creation
2013-03-07 17:47:40 -04:00
Alex Szpakowski
65a3206ae4
Fixed another case of issue #538 (check for non power of two support does not cover all possibilities)
2013-03-04 14:02:35 -04:00
Alex Szpakowski
524368331d
Removed love.graphics.setColorMode
...
- The "replace" color mode can easily be duplicated with love.graphics.setColor(255, 255, 255)
- The current color mode has no effect when a shader is active
- Color mode functionality can easily be replicated with shaders
- OpenGL ES 2 (iOS, Android, etc) does not have the functions used by love.graphics.setColorMode
2013-03-04 13:58:14 -04:00
Alex Szpakowski
4ae126ac44
Fixed some potential instability or crash issues
2013-03-03 20:23:40 -04:00
Alex Szpakowski
f0ca4f6c97
Removed internal code for love.graphics.triangle and love.graphics.quad
2013-03-03 18:49:56 -04:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
Alex Szpakowski
d3cdb7d609
Added SpriteBatch:isEmpty() and SpriteBatch:isFull()
2013-03-01 17:32:38 -04:00
Alex Szpakowski
395a1dbced
The "alpha" blend mode now outputs more useful/intuitive alpha values (thanks Boolsheet)
...
See https://love2d.org/forums/viewtopic.php?f=4&t=16223 and http://www.opengl.org/discussion_boards/showthread.php/167554-FBO-and-blending
2013-02-26 21:44:01 -04:00
Alex Szpakowski
86ced3c70e
Simplified the error message on image creation failure
2013-02-24 15:02:56 -04:00
Alex Szpakowski
1d34dda48b
Removed SpriteBatch:remove(id) (reverted commit 2ca82dd)
...
The implementation had issues with sprite draw order when SpriteBatch:add used indices in the vertex buffer previously freed with SpriteBatch:remove
2013-02-24 09:47:03 -04:00
Alex Szpakowski
7d579308dc
LÖVE now errors when Image creation fails
2013-02-24 00:50:39 -04:00
Alex Szpakowski
472915a4bb
Worked around ATI/AMD driver bugs when creating mipmaps for Images
2013-02-23 15:52:03 -04:00
Alex Szpakowski
d9736ab3ab
Removed mipmap support from Font graphics objects
2013-02-19 14:21:01 -04:00
Alex Szpakowski
5bf78f891d
Fixed OpenGL vertex buffer function usage (issue #489.)
...
The functions will be assigned to their core version counterparts if the extension version isn't supported but the core version is.
2013-02-19 03:17:05 -04:00
Alex Szpakowski
23968d3b4a
Fixed image mipmap creation on some systems with buggy video drivers
2013-02-17 11:36:17 -04:00
Alex Szpakowski
8c21c4dce0
Fixed love.graphics.getBlendMode on systems which don't support the subtractive blend mode
2013-02-17 00:19:46 -04:00
Alex Szpakowski
a68bdfe7a2
Constified many Graphics and Window methods
2013-02-16 01:45:01 -04:00
Alex Szpakowski
eba8cbc0b5
Removed internal code support for multitexturing without shaders, since it's not currently used and there are no plans to do so
2013-02-16 01:04:00 -04:00
Alex Szpakowski
1945b7975d
Cleaned up exception handling code when creating new fonts, spritebatches, and shaders
2013-02-14 21:49:11 -04:00
Alex Szpakowski
e1779897ab
Removed love.graphics.drawTest
2013-02-14 08:03:55 -04:00
Alex Szpakowski
77ab120424
Fixed SpriteBatch file includes
2013-02-11 20:27:29 -04:00
Alex Szpakowski
ceb0ee6c7e
Added SpriteBatch:remove(id)
2013-02-11 18:27:57 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Alex Szpakowski
e16b5afa6d
Fixed love.graphics.getPointStyle
2013-02-01 01:44:00 -04:00
Alex Szpakowski
a76ffd5715
Fixed VertexIndex::getElementSize
2013-01-30 19:01:14 -04:00
Alex Szpakowski
de959b7275
Added a method to VertexIndex to determine the size in bytes of an element in the index array
2013-01-30 17:50:32 -04:00
Alex Szpakowski
a9211a1389
Removed direct OpenGL calls in the SDL Window module
2013-01-30 00:27:46 -04:00
Alex Szpakowski
7a16e4cb49
Made Visual Studio play nice with the C++ STL min/max functions in the new shader code
2013-01-29 13:01:34 -04:00
Alex Szpakowski
7384bf15d3
Merged rude/love into default
2013-01-29 11:25:38 -04:00
Alex Szpakowski
02d2a872ab
Improved shader member variable names, fixed up XCode project file
2013-01-29 04:34:36 -04:00
Bart van Strien
0fd4b147a4
Merge in default
...
--HG--
branch : minor
2013-01-27 19:15:55 +01:00
Alex Szpakowski
5cae5ea37e
Removed code for tesselation and geometry shader detection
2013-01-24 18:26:40 -04:00
Alex Szpakowski
022f549554
Use unsigned ints instead of unsigned shorts to represent UTF8 font glyphs
2013-01-22 23:43:35 -04:00
Alexander Szpakowski
f016840ed0
Merged in changes from main repository
2013-01-21 02:31:15 -04:00
Bart van Strien
4221d55468
Enfore limits on ParticleSystem:setSizeVariation (issue #545 )
2013-01-18 21:03:07 +01:00
Bart van Strien
32684b674e
Add Font:getAscent/getDescent/getBaseline (issue #445 )
2013-01-18 13:20:40 +01:00
Bart van Strien
84b6eedf1f
Make the default point style to setPoint 'smooth' (issue #543 ), and fix setPointStyle ignoring normal operation
2013-01-18 12:43:43 +01:00
Alexander Szpakowski
ce75b3af69
Merge from root
2013-01-17 20:29:48 -04:00
Bart van Strien
501beb7d02
Add blend mode 'none' (issue #536 )
2013-01-18 00:48:36 +01:00
Bart van Strien
b97765b169
Check for OpenGL 2.0 in NPOT check (issue #538 )
2013-01-18 00:29:01 +01:00
Alexander Szpakowski
9f8f493aed
Texel (texture2D) calls in shaders now return pure white instead of pure black when drawing untextured graphics primitives. This prevents the need for separate "passthrough" shaders to be used when drawing graphics primitives vs images.
2013-01-17 04:18:38 -04:00
Alexander Szpakowski
e24d721381
Renamed all instances of 'ShaderEffect' (previously 'PixelEffect') to 'Shader'.
2013-01-16 07:21:41 -04:00