Alex Szpakowski
18569979e9
Better cleanup when the graphics and window subsystems are destroyed and restarted.
2015-01-21 18:23:16 -04:00
Alex Szpakowski
5df56d041a
Added GLSL ES 1.00 (OpenGL ES 2) shader support.
...
--HG--
branch : minor
2015-01-20 22:31:54 -04:00
Alex Szpakowski
8067d42df2
Canvases now have OpenGL ES support, updated Texture:setWrap to return false for repeat wrap modes in non-power-of-two textures if OpenGL ES 2 is used and the implementation doesn't have support for repeat on NPOT textures.
...
--HG--
branch : minor
2015-01-20 15:13:59 -04:00
Alex Szpakowski
18ab3973e8
Added support for ETC2/EAC compressed textures. Changed the CompressedFormat enum names to capitalize the format names (e.g. "PVR1rgba4" instead of "pvr1rgba4".) Improved sRGB support for compressed textures.
...
--HG--
branch : minor
2015-01-20 07:53:44 -04:00
Alex Szpakowski
dfdd52e499
Added support for ETC1 and PVR1 compressed textures contained in KTX, PKM, and PVR files.
...
Most desktop graphics drivers don't support those formats.
--HG--
branch : minor
2015-01-20 03:18:28 -04:00
Alex Szpakowski
3db4e8dea0
Fixed compilation on systems other than my own...
...
--HG--
branch : minor
2015-01-19 23:32:45 -04:00
Alex Szpakowski
1124612c1f
Some work towards OpenGL ES 2+ support for love 0.10.
...
--HG--
branch : minor
2015-01-19 23:32:16 -04:00
Alex Szpakowski
a7e4148869
Merged default into minor
...
--HG--
branch : minor
2015-01-16 15:47:26 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
60eceadc0a
Added "mirroredrepeat" wrap mode.
2014-12-22 19:16:36 -04:00
Alex Szpakowski
c4a1457603
Fixed Image:setMipmapFilter keeping bad state around if it errors.
2014-12-05 12:19:50 -04:00
Alex Szpakowski
8dba668ce9
Merged default into minor
...
--HG--
branch : minor
2014-11-15 20:17:18 -04:00
Alex Szpakowski
22bbe74ed9
Allow BC6 and BC7 compressed DDS files to be loaded into Images.
2014-11-05 21:11:22 -04:00
Alex Szpakowski
5eb37d30f7
Cleaned up and simplified some graphics code.
...
--HG--
branch : minor
2014-10-26 15:31:32 -03:00
Alex Szpakowski
af0371361f
Merged default into minor
...
--HG--
branch : minor
2014-10-18 01:45:02 -03:00
Alex Szpakowski
a9630811d8
Fixed a logic error making compressed textures with no mipmaps trigger a Lua error when they're loaded into an Image.
...
--HG--
branch : minor
2014-10-06 20:09:10 -03:00
Alex Szpakowski
1108dea696
Updated the error message when invalid UTF-8 strings are used in love.graphics.print and friends to mention UTF-8.
2014-10-06 19:34:11 -03:00
Alex Szpakowski
8edb90a719
Added support for loading BMFont bitmap font files with love.graphics.newFont (see issue #190.) Some esoteric BMFont features are not supported.
...
Moved the Font module Lua wrapper code out of the freetype implementation folder.
--HG--
branch : minor
2014-09-28 16:00:40 -03:00
Alex Szpakowski
34688e929e
Merged default into minor
...
--HG--
branch : minor
2014-09-28 15:56:04 -03:00
Alex Szpakowski
808e533b02
Tweaked streaming Sources to use fewer OpenAL buffers (and increased the amount of decoded data per buffer to compensate), and removed some unnecessary #include statements.
2014-09-28 14:58:59 -03:00
Alex Szpakowski
b70f72acb3
Fixed a couple potential memory leaks if love.graphics.newShader causes an error, and cleaned up some shader-related code.
2014-09-27 02:26:58 -03:00
Alex Szpakowski
aba33bf2e7
Merged default into minor
...
--HG--
branch : minor
2014-09-20 00:34:34 -03:00
Alex Szpakowski
7f490c4c30
Added ParticleSystem:setLinearDamping and ParticleSystem:getLinearDamping (resolves issue #803.)
2014-09-19 21:00:04 -03:00
Alex Szpakowski
3d7a3c2c3c
Improved the error message when a misspelled filename is given to love.graphics.newShader (resolves issue #928.)
2014-09-18 22:36:22 -03:00
Alex Szpakowski
c6896dfc4e
Consolidated some duplicate code in SpriteBatch:add.
2014-09-18 20:29:47 -03:00
Alex Szpakowski
5dda0c08eb
Slightly improved the performance of SpriteBatch:setBufferSize.
2014-09-18 18:30:56 -03:00
Alex Szpakowski
e6221638e3
Accidentally deleted more than I should have
...
--HG--
branch : minor
2014-09-18 02:44:29 -03:00
Alex Szpakowski
cf7342f8b7
Use C++11's in-line member initializers instead of default constructors with initializer lists, for some structs.
...
--HG--
branch : minor
2014-09-18 02:39:18 -03:00
Alex Szpakowski
fffbd3ecab
Merged default into minor
...
--HG--
branch : minor
2014-09-18 02:15:20 -03:00
Alex Szpakowski
f972c9923f
Fixed love.graphics.reset reverting the current font to nil and breaking love.graphics.print.
2014-09-11 02:42:56 -03:00
Alex Szpakowski
d1bdc9a7e2
Images and Canvases are now drawn using GL_TRIANGLE_FAN instead of GL_QUADS, for future compatibility with GLES and core GL3+.
...
--HG--
branch : minor
2014-09-07 13:19:27 -03:00
Bart van Strien
97cacf1b2d
Merge default into minor
...
--HG--
branch : minor
2014-09-03 18:11:20 +02:00
Alex Szpakowski
77bec45b4a
Fixed SpriteBatch:setBufferSize.
2014-08-31 01:15:58 -03:00
Alex Szpakowski
6f6bf6a2bb
Merged default into minor
...
--HG--
branch : minor
2014-08-30 22:08:10 -03:00
Alex Szpakowski
68b2c9e851
The default filter mode is now included in the state affected by love.graphics.push("all").
2014-08-29 01:31:16 -03:00
Alex Szpakowski
40c6821048
Removed some dead code and fixed luax_pushtype when the object argument is null.
2014-08-28 00:48:32 -03:00
Alex Szpakowski
b59e088d6c
Hopefully fixed the Windows build (see issue #921.)
...
--HG--
branch : minor
2014-08-27 08:17:40 -03:00
Alex Szpakowski
626701fc2b
Merged default into minor
...
--HG--
branch : minor
2014-08-26 23:23:17 -03:00
Alex Szpakowski
1449a81bdf
Removed some dead code.
2014-08-26 22:16:01 -03:00
Alex Szpakowski
3f208f1e60
Fixed love.graphics.setShader with no arguments not properly restoring the default shader.
...
--HG--
branch : minor
2014-08-26 09:44:07 -03:00
Alex Szpakowski
8a7481eaa3
Added optional xoffset/yoffset/width/height arguments to Image:refresh, to specify a sub-rectangle. Specifying a small sub-rectangle can improve the performance of Image:refresh.
...
--HG--
branch : minor
2014-08-26 09:40:24 -03:00
Alex Szpakowski
760304e023
Fixed love.graphics.print.
...
--HG--
branch : minor
2014-08-26 08:08:09 -03:00
Alex Szpakowski
3a51f0ad08
Changed the love.graphics internal code to always use a default shader when none is set externally, and replaced the deprecated OpenGL vertex attribute code with the equivalent generic vertex attribute functions.
...
This will simplify the code and make it more maintainable when OpenGL ES 2+ support is added, compared to using the deprecated VA functions on desktop GL and the generic VA functions on GLES.
--HG--
branch : minor
2014-08-26 03:24:42 -03:00
Alex Szpakowski
d6cd2e2e7e
Prettied up some code.
2014-08-26 00:05:08 -03:00
Alex Szpakowski
766939bdd5
Removed mipmapping restriction on non-power-of-two Images.
...
--HG--
branch : minor
2014-08-25 01:37:05 -03:00
Alex Szpakowski
1978fa9910
Cleaned up a bit of unused code.
2014-08-22 17:44:52 -03:00
Alex Szpakowski
71c71985d3
Merged default into minor
...
--HG--
branch : minor
2014-08-21 16:53:43 -03:00
Alex Szpakowski
8ffe610659
Added love.graphics.getStats. It returns a table with performance-related graphics statistics. Currently it contains these fields:
...
drawcalls: The number of internal draw calls made so far in the current frame.
canvasswitches: The number of times the active Canvas has been changed so far in the current frame.
texturememory: The approximate amount of video memory (in bytes) used by OpenGL textures created by Images, Canvases, and Fonts.
images: The number of active Image objects.
canvases: The number of active Canvas objects.
fonts: The number of active Font objects.
2014-08-21 15:01:29 -03:00
Alex Szpakowski
5f6ee50541
Replaced the GLee OpenGL function loader with a modified version of GLAD (resolves issue #728.)
...
--HG--
branch : minor
2014-08-18 21:35:52 -03:00
Alex Szpakowski
df5e48a082
Merged default into minor
...
--HG--
branch : minor
2014-08-13 01:50:52 -03:00