Alex Szpakowski
2a4d47e614
Added a missing newline to a print statement
2014-01-29 23:10:57 -04:00
Alex Szpakowski
33f12a6091
Source:play now returns false if alSourcePlay failed
2014-01-29 17:04:03 -04:00
Alex Szpakowski
007d0d5216
Windows: create the console before modules are loaded (allows information printed during module initialization to be displayed.)
2014-01-29 16:20:05 -04:00
Alex Szpakowski
a49c2a88c1
Increased robustness of audio module initialization (see issue #646.) Also changed Source:play to return a boolean indicating success.
2014-01-29 05:24:47 -04:00
Alex Szpakowski
a7ed581204
Reverted ParticleSystem:setPosition’s functionality to 0.9.0’s beheaviour, added ParticleSystem:moveTo which has the new behaviour (new particles spawn in a line between the old position and where the emitter was moved to.)
2014-01-28 03:20:08 -04:00
Alex Szpakowski
6b538b5827
The emission rate for ParticleSystems is no longer restricted to integer numbers.
2014-01-27 23:42:26 -04:00
Alex Szpakowski
d70023e350
Enable OpenGL’s debug output when the LOVE_GRAPHICS_DEBUG environment variable is ‘1’. Resolves issue #607 .
2014-01-27 23:30:16 -04:00
Alex Szpakowski
a2a8b14cfd
Added love.getVersion (resolves issue #809 ).
...
Syntax is: major, minor, revision, codename = love.getVersion().
2014-01-27 19:24:14 -04:00
Alex Szpakowski
c5c788e976
Added a built-in variable readable in shaders: ‘love_ScreenSize’. Its x and y components contain the width and height of the current viewport. Resolves issue #841 .
2014-01-27 02:58:34 -04:00
Alex Szpakowski
3a24e73891
0.9.1’s API is designed to be backwards-compatible with 0.9.0 games (resolves issue #839 )
2014-01-27 02:28:38 -04:00
Alex Szpakowski
988404e4ca
Added love.graphics.getSystemLimit (resolves issue #840 ). Deprecated love.graphics.getMaxPointSize.
...
love.graphics.getSystemLimit currently accepts these enum strings: “pointsize”, “texturesize”, “multicanvas”, and “canvasfsaa”.
2014-01-27 02:19:30 -04:00
Alex Szpakowski
7556fde5e6
Added antialiasing (MSAA) support to Canvases via a new optional parameter. Added Canvas:getFSAA.
2014-01-27 01:31:41 -04:00
Alex Szpakowski
10f1e23931
Increased version to 0.9.1
2014-01-22 18:26:10 -04:00
Alex Szpakowski
ba7e69d776
Added Mesh:setDrawRange(min, max) and Mesh:getDrawRange().
...
If no vertex map is set, this restricts the drawn vertices to those whose indices in the vertex array are between [min, max] inclusive.
If a vertex map is set, this restricts the values used in the vertex map to those whose indices in the vertex map array are between [min, max] inclusive.
Added Mesh constructor variant: love.graphics.newMesh(vertexcount, texture, drawmode). Creates a Mesh with a certain number of vertices with x,y,u,v,r,g,b,a values of (0,0,0,0,255,255,255,255).
2014-01-21 06:16:47 -04:00
Alex Szpakowski
73f1ce0d40
Added instancing support to Meshes via Mesh:setInstanceCount. Added a new built-in variable to vertex shaders: int love_InstanceID.
...
love.graphics.draw(mesh) will draw the mesh instancecount times, using hardware instancing when available. The only way to draw individual instances differently from each other is to use the love_InstanceID variable in a vertex shader.
Added love.graphics.isSupported(“instancing”). Hardware instancing is supported if true, otherwise a (slower) pseudo-instancing fallback is used internally when drawing instanced meshes.
2014-01-21 06:01:50 -04:00
Alex Szpakowski
81d9810ed8
Fixed t.window.highdpi in love.conf, updated the nogame screen to look slightly better on retina displays
2014-01-18 00:41:02 -04:00
Alex Szpakowski
0e13975c11
Improved some error message text
2014-01-17 22:28:06 -04:00
Alex Szpakowski
50b7bdcea9
And another typo…
2014-01-17 21:17:11 -04:00
Alex Szpakowski
0d52ac6d52
Fixed dumb typo
2014-01-17 21:12:30 -04:00
Alex Szpakowski
309193895a
Added opt-in support for high-dpi mode in OS X when on a retina display (resolves issue #761 ).
...
Added a ‘highdpi’ boolean flag to t.window/love.window.setMode (defaults to false.)
When the window is actually in high-dpi mode on a supported display, the graphics width and height and the mouse position are in pixels, rather than ‘window coordinates’.
Added love.window.getPixelScale. Returns the scale factor of the window from user-space points to pixels (e.g. it will be 1 normally, and 2 on a retina display in OS X with high-dpi mode enabled.)
2014-01-17 21:11:20 -04:00
Alex Szpakowski
29f47d9a10
Changed particle spawning behaviour in ParticleSystems to spawn at an interpolated position between the location at the previous update and the current one. This results in much smoother behaviour when moving a ParticleSystem constantly via ParticleSystem:setPosition.
...
Also fixed particle spawning to better fill up the buffer.
2014-01-16 16:20:30 -04:00
Alex Szpakowski
dc35db1c7b
Fixed tab characters (‘\t’) in text to be drawn properly with love.graphics.print.
2014-01-15 23:38:39 -04:00
Alex Szpakowski
9b9671f5ee
Fixed a potential memory leak when a Font object errors
2014-01-15 23:03:39 -04:00
Alex Szpakowski
7f77c2d0b3
Canvas:renderTo now restores the previously active Canvas when done, instead of erroring if another Canvas is already active
2014-01-15 14:56:28 -04:00
Alex Szpakowski
113093e4fc
Separated canvas texture creation code from FBO creation code
2014-01-13 01:47:06 -04:00
Alex Szpakowski
fda005c5ff
love.graphics.getScissor now has a proper C++ module method
2014-01-09 22:49:00 -04:00
Alex Szpakowski
c64b3d2527
Renamed love.graphics.getMaxImageSize to love.graphics.getMaxTextureSize (old function is still there, but deprecated.)
2014-01-09 22:18:37 -04:00
Alex Szpakowski
1d3c4e125e
Make love.graphics.reset call love.graphics.origin instead of clearing the internal pixel size stack
2014-01-05 15:52:12 -04:00
Alex Szpakowski
510ed6f11e
Abstracted lua bindings for general Texture methods into wrap_Texture.cpp
2014-01-04 21:19:03 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
aa69a695d3
Canvases can now be used in SpriteBatches, ParticleSystems, and Meshes (resolves issue #782 ).
...
Canvases and Images are now subclasses of the new Texture class.
Added setTexture and getTexture methods for Meshes, ParticleSystems, and SpriteBatches (the old set/getImage methods are deprecated but not removed.)
Canvas texture coordinates are no longer flipped.
2014-01-03 17:07:12 -04:00
Alex Szpakowski
1d3f6e967d
Added CircleShape:get/setPoint.
2014-01-03 14:06:23 -04:00
Alex Szpakowski
b091746118
Removed some unused variable warnings when compiling
2014-01-03 02:05:23 -04:00
Alex Szpakowski
9c747f1476
Switched to using bearing and advance metrics from the actual bitmap glyph object, removed old unused method declarations in the Filesystem class.
2014-01-01 03:52:43 -04:00
Alex Szpakowski
ccc5535a82
The love.filesystem module searchers for require are now tried after package.preload instead of before.
2014-01-01 02:08:50 -04:00
Alex Szpakowski
ab1cf7fdc5
Really fixed setting the scissor and then changing Canvases
2013-12-31 23:37:04 -04:00
Alex Szpakowski
279cecaa6b
Improved the error text for LÖVE’s module searchers (used in require.)
2013-12-31 22:31:08 -04:00
Alex Szpakowski
98b258b75f
Fixed font textures in OpenGL returning black RGB values when a shader is active (reverts changeset 69b0b4e)
2013-12-31 22:09:04 -04:00
Alex Szpakowski
90f4dea4ab
The TrueType rasterizer now properly recognizes the monochrome bitmap pixel mode for glyphs (resolves issue #818 )
2013-12-31 21:32:58 -04:00
Alex Szpakowski
f3bd944cf5
Reduced the RAM and VRAM space taken up by TrueType font glyphs by 1/2.
2013-12-31 20:15:55 -04:00
Alex Szpakowski
a00c006c44
The graphics viewport is now properly restored when switching from an active Canvas to no Canvas (resolves issue #817 )
2013-12-30 23:52:46 -04:00
Alex Szpakowski
cd303c7c62
Added Mesh:setWireframe and Mesh:isWireframe.
...
This should *only* be used for debugging: the wireframe lines behave differently from regular love.graphics lines, and the functionality may not work on OpenGL ES.
2013-12-30 01:44:04 -04:00
Alex Szpakowski
27f36455e8
Fixed ParticleSystem:clone not duplicating position and area spread properly
2013-12-28 01:51:50 -04:00
Bart van Strien
5963e7a9cb
Check whether pitch is actually a sane number
2013-12-27 16:50:30 +01:00
Bart van Strien
90d041ed1b
Patch GLee for missing GLXContextID typedef after upstream (mesa) removal from header
2013-12-27 16:50:07 +01:00
Alex Szpakowski
bccac13432
Added ParticleSystem:clone()
2013-12-25 05:30:07 -04:00
Alex Szpakowski
4d1846b745
Removed love.audio.newSource(source) (see issue #319 )
2013-12-25 02:19:59 -04:00
Alex Szpakowski
44d87212b7
Fixed Joystick:isDown to accept 1-based instead of 0-based button indices
2013-12-23 00:28:03 -04:00
Alex Szpakowski
e6f2d4f1ac
Added Source:clone() and love.audio.newSource(source): creates a new (stopped) Source which has all of the settable state of the original.
...
Static sources don’t duplicate their OpenAL data buffer when cloned (resolves issue #319 ). Cloned streaming sources also clone the original Decoder.
2013-12-20 00:20:41 -04:00
Alex Szpakowski
d0d629a314
Fixed line width after love.graphics.scale with negative numbers (resolves issue #808 )
2013-12-18 03:15:44 -04:00