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
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
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
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
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
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
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Alex Szpakowski
a9211a1389
Removed direct OpenGL calls in the SDL Window module
2013-01-30 00:27:46 -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
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
Alexander Szpakowski
e24d721381
Renamed all instances of 'ShaderEffect' (previously 'PixelEffect') to 'Shader'.
2013-01-16 07:21:41 -04:00
Alexander Szpakowski
331c883c77
Improved clarity of some comments, variable names, and functions
2013-01-15 20:20:35 -04:00
Alexander Szpakowski
8fdd6cbbb2
Merged in from main repository (originally from love-mipmap fork)
2013-01-12 18:07:14 -05:00
Alexander Szpakowski
808a09f786
Changed shader source list from a vector of sources to a map of shader types to source codes
2013-01-07 19:13:19 -04:00
Alexander Szpakowski
a6f4a3ab0f
Removed names of unused parameters to quiet noisy compilers
2013-01-07 07:29:04 -04:00
Alexander Szpakowski
88af7239c3
Removed unnecessary tabs from empty lines
2013-01-07 06:21:15 -04:00
Alexander Szpakowski
0968fa6f11
More cleanup and some overdone comments
2013-01-05 15:59:01 -04:00
Alexander Szpakowski
8b3fb1d71c
Code cleanup
2013-01-02 17:19:41 -04:00
Alexander Szpakowski
1678252b7a
Applied patch from issue #542 (texture filtering inconsistencies) in main LÖVE repository
2013-01-01 21:29:38 -04:00
Alexander Szpakowski
da661e8e2f
Bind texture id 0 (no texture) instead of disabling/re-enabling texturing entirely, when drawing graphics primitives. This both allows shaders to potentially use their own textures when drawing textureless primitives, and reduces overhead caused by constant GL state changes when drawing many graphics primitives.
2013-01-01 04:08:30 -04:00
Alexander Szpakowski
83204c5dc5
ShaderEffects now take a dynamically sized list of source codes instead of one vertex and one fragment shader string
2012-12-22 22:47:07 -04:00
Alexander Szpakowski
16f925affa
improved GL texture binding api to take texture units into consideration
2012-12-21 20:35:32 -04:00
Alexander Szpakowski
0611234067
changed PixelEffect name to ShaderEffect, added lua-side support for vert/frag shader combinations with love.graphics.newShaderEffect, added tentative support for single-file vertex+fragment shaders
2012-12-20 21:51:31 -04:00
Alexander Szpakowski
28e3b105e9
added C++side support for combinations of vertex and fragment shaders in pixeleffects
2012-12-20 03:42:48 -04:00
vrld
c70cd5b8ee
Merge default branch
...
--HG--
branch : minor
2012-11-23 10:24:46 +01:00
vrld
6882c2c32c
Close issue #519 : Maximum stack depth reached error message.
2012-11-23 09:08:36 +01:00
Bart van Strien
8867f6c329
Merge in default
...
--HG--
branch : minor
2012-10-14 17:23:35 +02:00
vrld
e6711b2837
Fix multiplicative blend mode.
2012-10-12 13:52:16 +02:00
vrld
ccdf6e1c00
Fix Issue #476 : Add HDR Canvas (thanks, Alexander Szpakowski!).
...
* Add `love.graphics.isSupported("hdrcanvas")' to query whether the hardware
actually supports HDR canvases.
* Add optional third argument to `love.graphics.newCanvas(w,h, type)', where
`type' is one of "normal" or "hdr" and defaults to "normal". HDR canvases
use floating point that can have values > 1 to store pixels, allowing for
HDR rendering and other higher level lighting techniques when combined with
pixel effects.
* Add `canvas:getType()'.
2012-10-11 22:22:10 +02:00
Bart van Strien
bddee1753b
Use a flags table for setMode now, implement resizable and borderless windows, and add resize event
...
Example setMode invocation: love.graphics.setMode(800, 600, {fullscreen = false, vsync = true, borderless = true})
t.screen.resizable and t.screen.borderless are available in love.conf
And love.resize(w, h) gets called if it exists on a resize event.
NOTE: love.handlers.resize(w, h) does the required setMode, but that does mean a visual reload
--HG--
branch : minor
2012-07-23 11:53:13 +02:00
Marc Lepage
e5c4f7f43c
Remove call to glAlphaFunc as alpha testing is never enabled.
2012-07-17 21:33:16 -04:00
Marc Lepage
4cc0056a21
Fix some typos in comments.
2012-07-12 00:21:25 -04:00
vrld
6d02057864
Close issue #408 : printf-justify alignment.
...
Add letter_spacing argument to Font::print(). Might be worth to expose to Lua
at some point. Justify alignment may result in mushy/blurred glyphs.
2012-07-08 13:37:09 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bart van Strien
bc4e59ba24
Apply the line width patch
2012-06-11 17:06:57 +02:00
Bart van Strien
1b568fdf39
Make setMode get the actual width and height after setting, fixes bug with width and height 0 (aka desktop resolution)
2012-05-18 17:46:00 +02:00
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