Bill Meltsner
21516fc658
Add padding around every glyph in a Font texture, fixing the fringing seen with scaled text (actually fixes issue #321 )
2012-01-08 20:59:52 -06:00
Bill Meltsner
4c5d11d582
Backout changeset e90d89c7b9712297c14ba73eda37ec28f25101f9
2012-01-08 20:14:27 -06:00
Bart van Strien
5fa0a4cfa3
Drastically improve the font scaling quality (issue #321 )
...
Note that it isn't perfect yet, but a lot better.
2012-01-08 14:11:40 +01:00
Bart van Strien
1509403ca7
Add SpriteBatch:getImage (issue #321 )
2012-01-08 13:46:01 +01:00
Bart van Strien
7c1e1fd0db
Return nil if the raycasts don't hit anything (issue #335 )
2012-01-08 13:27:10 +01:00
Bart van Strien
c1f68e058d
Use Box2D's callbacks for destruction of physics objects and wait until the end of the timestep before destroying them.
...
Merge of box2d-id2 from love-experiments
2012-01-08 13:16:50 +01:00
Bart van Strien
e0b420c988
Properly export love modules to lua, package.loaded is correct now
2012-01-07 14:08:41 +01:00
Bart van Strien
870973197c
Only bind images when they weren't (issue #353 )
2012-01-07 11:37:50 +01:00
Bart van Strien
c78c6801e9
Formatting fix
2012-01-06 17:08:52 +01:00
Bart van Strien
f58f80397e
Fix fsaa crash on OSX, can't enable multisampling before a window is created (bug #350 )
2012-01-06 17:04:48 +01:00
Bart van Strien
ee231e7b4c
Fix DistanceModel enum conversion
2011-12-31 18:40:54 +01:00
Bart van Strien
7bd08ad72d
Dramatically speed up ImageData:paste (issue #336 )
2011-12-31 16:34:34 +01:00
Bart van Strien
3a9c71ad8f
Check if enum-string conversions succeed in love.audio.get/setDistanceModel (bug #347 )
2011-12-31 15:54:11 +01:00
vrld
751d7aa368
Leaner source distance model API.
2011-12-30 15:03:50 +01:00
vrld
9c9b1810b7
Decrese core-line width when overdrawing to preserve original line width.
2011-12-30 14:09:26 +01:00
vrld
3b01da803e
Merge pull request 2 by Bloutiouf: Sound attenuation by distanceSound
...
attenuation by distance.
Adds:
love.audio.[gs]etDistanceModel(model-identifier)
Source:[gs]etMinVolume(min-volume)
Source:[gs]etMaxVolume(max-volume)
Source:[gs]etDistance(reference, max)
Source:[gs]etRolloffFactor(rolloff)
Valid Distance models:
"none", "inverse", "inverse clamped", "linear", "linear clamped", "exponent",
"exponent clamped"
Suggestion:
Merge Source:setMinVolume, Source:setMinVolume and Source:setVolume. May be
confusing for lovers though.
May have broken platform/msvc2010/love.vcxproj.filters (had to be modified by
hand without really knowing what I am doing).
2011-12-29 22:45:51 +01:00
vrld
6178aea6ef
Discard active stencil when switching canvas.
2011-12-29 15:27:04 +01:00
vrld
b0fbff108c
Better line smoothing.
...
- Overdraw now uses only one array buffer.
- Line endings are overdrawn if the line is not closed.
- Includes more magic.
2011-12-29 15:16:53 +01:00
Bart van Strien
ae833449d4
Move some includes over to the right file, fixing an include loop in the process
2011-12-29 13:47:39 +01:00
Bart van Strien
5ad9821290
ASSERT_GUARD raycasts
2011-12-29 13:37:42 +01:00
Bart van Strien
4b6df9baa2
Hopefully fix some more warnings in filesystem
2011-12-28 14:39:13 +01:00
vrld
cde8b92113
Remove some type conversion warnings.
2011-12-28 14:17:10 +01:00
vrld
a7e040001b
Reset current color after drawing smooth lines.
...
GL_COLOR_ARRAY used by line smoothing leaves the current color
undefined after calling glDrawArrays. This makes it defined again.
2011-12-27 23:32:11 +01:00
Bart van Strien
cd330783f0
Apparently some compilers hate macros being redefined..
2011-12-27 23:04:50 +01:00
Bart van Strien
864c800e10
Fix some warnings
2011-12-27 21:25:06 +01:00
vrld
a855a01f02
Fix two particle system typos (thanks, Boolsheet!)
2011-12-26 21:29:47 +01:00
vrld
247f57c10b
Fix issue 246: Add line antialiasing through 'overdraw'.
...
Points to consider:
- Make softness customizable (`halo' in Graphics::polyline()).
- Add overdraw at beginning and ending edge of the line.
2011-12-25 19:05:04 +01:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
e0dcf55703
Make love.event.clear thread-safe, though it's only callable from the main thread (with SDL backend, anyway)
2011-12-23 12:16:36 +01:00
Bill Meltsner
bc278cf2b8
love.graphics.arc is now better and actually draws in the right direction
2011-12-22 03:37:34 -06:00
Bill Meltsner
7378a90101
Upgrade love.filesystem to use 64-bit numbers for dealing with file sizes, thus (hopefully) enabling lovers to work with very large files (based on Boolsheet's patch in issue #179 )
2011-12-22 02:45:11 -06:00
Bart van Strien
951d420db7
Eliminate more warnings
2011-12-20 21:02:59 +01:00
Bart van Strien
53e010a832
Remove all uses of LOVE_UNUSED, and simply not name the arguments instead
2011-12-20 20:26:17 +01:00
Bart van Strien
9fb63dc4b8
Make the new event sink thread-safe (hopefully) and make small usability fixes
2011-12-20 19:51:50 +01:00
Bart van Strien
d3bd9b1156
Events now have 4 arguments (or less)
2011-12-20 19:17:26 +01:00
Bill Meltsner
6277f4c75b
lua libraries, even on mac, almost never come in .dylib form, but rather .so - change love.filesystem.require accordingly
2011-12-19 01:42:34 -06:00
Bill Meltsner
969c53e592
make love build on OS X again - there's no need to include gl.h directly, GLee.h does that for us in a cross-platform way
2011-12-19 00:28:45 -06:00
Jonathan Giroux
36a93e46c7
Add control to the sound attenuation by distance.
2011-12-14 00:32:18 +01:00
Bart van Strien
735260d4d8
Thread:kill()? What Thread:kill()?
2011-12-13 19:24:10 +01:00
Bart van Strien
e37470f54d
No more Font:set(), instead love.graphics.setNewFont
2011-12-13 19:22:59 +01:00
Bart van Strien
9682ebecf9
Remove love.graphics.setFont([<file>,] <size>) shorthand, idiom is now love.graphics.newFont([<file>,] <size>):set()
...
This makes sure that setFont doesn't create any fonts.
2011-12-13 18:51:24 +01:00
Bart van Strien
083dd11185
Switch to a custom event system, where SDL pumps into
...
To do this we needed to take ThreadVariant out of love.thread, and move it to common.
This also changes event names, instead of 1/2-letter abbreviations, full names!
2011-12-13 17:50:38 +01:00
Bart van Strien
91fefbd1ee
*click* *pop* *POOF*
2011-12-13 17:11:57 +01:00
Bart van Strien
362a7835b4
Make keyboard repeat better.. or something
2011-12-11 19:08:01 +01:00
Bart van Strien
7c8fff979a
Create love.window, abstract SDL out of love.graphics
2011-12-11 16:55:52 +01:00
vrld
2b7da8ea27
Rename love.graphics.[sg]etRenderTarget to love.graphics.[sg]etCanvas
2011-12-11 16:24:59 +01:00
Bart van Strien
1503533ee6
Key repeat gets seconds too
2011-12-06 21:30:31 +01:00
Bart van Strien
5fb4f2c63d
Request ALL the bits
2011-11-30 17:50:41 +01:00
vrld
66f640fa0e
Fix typo in Quad::mirror().
2011-11-19 16:11:49 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00