Commit Graph

188 Commits

Author SHA1 Message Date
vrld f3bf2bbfe5 Fix bug where the compat message crashed love.
If in conf.lua `t.screen' is set to false or nil, the OpenGL context will not
be initialized, leading to a crash in 'Font::print()' when printing the compat
message later on.
2012-10-17 18:36:32 +02:00
Bart van Strien 8867f6c329 Merge in default
--HG--
branch : minor
2012-10-14 17:23:35 +02:00
vrld 5e3e24dcfb love.run(): Sleep after presenting graphics buffer.
Less sluggish controls w/o vsync.
2012-10-01 22:11:51 +02:00
vrld e35854acdc Remove love_ScreenSize from shaders.
PixelEffects would fail to load when screen_coords were unused.

Reopens issue #435: "PixelEffects have flipped screen_coords.y".
2012-10-01 21:39:52 +02:00
vrld 87c6646705 Fix #435 (for real this time). Unfixes #324.
Add a extern vec2 love_ScreenSize to the pixel effects that will
be (re)set upon PixelEffect::loadVolatile() and is used to flip
the fragment coordinate.

Unfixes #324 because canvases can have different dimensions than
the screen.
2012-08-05 16:08:22 +02:00
vrld 6f1ff69b61 Fix issue #435: PixelEffects have flipped screen_coords.y. 2012-08-03 19:39:41 +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
vrld 85fa71c519 Make love.graphics.getFont() return (and set) default font when no font set.
Use closures instead of love.graphics.print(f)1() and love.graphics.newFont1.
2012-07-05 16:14:44 +02:00
Bart van Strien 7793e7f02f CRLF to LF 2012-07-04 14:40:24 +02:00
Bart van Strien 0a423d3e67 Export boot.lua as love.boot, and make it return a function that 'does everything'
Of course love.cpp is modified accordingly (now calls the result of boot.lua)
2012-05-29 23:26:23 +02:00
Bart van Strien f933d5983b Add basic support for file:// uri scheme (issue #425)
Note that this won't unescape, or anything, just remove the file:// prefix if present
2012-05-19 01:27:35 +02:00
Bart van Strien cadde8947f Use love.run's return value as return value (if valid), default to 0 2012-05-18 18:56:05 +02:00
Bart van Strien db7fba1d3a Now returns return value 1 on error 2012-05-18 18:12:25 +02:00
Bart van Strien 0f0a64819e Add --fused command line argument, to override fused game detection
(Designed to make launchers work for 'fake-fused' games, for example
ones you'd easily distribute on linux.)
2012-05-18 15:15:03 +02:00
vrld 4370f6c9d6 Fix typo in PixelEffect:send() dispatcher when trying to send unsupported type 2012-04-23 19:11:04 +02:00
Bart van Strien 2e8939febe Add automatic seeding to love.run 2012-02-05 23:13:42 +01:00
Bart van Strien db9e264685 Update auto.lua to bring it into the wonderful 2012 2012-02-05 23:13:18 +01:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
vrld d218291473 Fix issue #348 - strict mode. Use setCanvas instead of setRenderTarget in
love.releaseerrhand.
2012-01-04 14:01:14 +01:00
Bart van Strien d3bd9b1156 Events now have 4 arguments (or less) 2011-12-20 19:17:26 +01:00
Bart van Strien adf25991e8 Fix the joystick event handler names, to match the new event names 2011-12-19 14:15:48 +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 a003f5d581 tostring all errors in the error handler (issue #332) 2011-12-06 21:55:16 +01:00
Bart van Strien 35cfb66bf7 Poll for events before update/run and do a first timestep after window creation
Moving the event loop improves accuracy of various input functions, and thus decreases mouse lag for custom pointers, for instance.
Doing a timestep after window creation makes sure that engine initialization isn't in the first dt.
NOTE: A near-zero dt can occur.
2011-11-19 15:38:51 +01:00
Bart van Strien 03927f5207 Use a fixed module loading order (bug #261)
And yes, this means there won't be segfaults with jit builds, woo.
2011-11-12 15:11:09 +01:00
Bart van Strien f9077ee1a6 Store the vera font as file data, instead of doing that every time it is loaded 2011-11-08 22:33:08 +01:00
Bart van Strien f0aa29f9a5 The actual commit 2011-11-05 23:18:30 +01:00
Bart van Strien 49ec65dbf3 Oops, didn't have a clean tree 2011-11-05 23:17:32 +01:00
Bart van Strien d8666202cd Improve compatibility check (I still can't believe robin was right) 2011-11-05 22:07:15 +01:00
Bill Meltsner a6eca47cef Add love.audio.stop() call to the error handlers 2011-10-20 18:30:49 -04:00
vrld 6b7b68ebd0 Fix issue #314: Can't use #define in shader code. 2011-10-12 12:37:09 +02:00
Bart van Strien 4f70742875 Display a warning if the game's version is incompatible. 2011-10-03 00:52:44 +02:00
Bart van Strien bd2172f826 Update version keeping 2011-10-02 17:00:09 +02:00
vrld eec0250545 Fix issue #292: Can't send arrays to pixeleffects.
Arrays of numbers, vectors and matrices are supported.
2011-09-07 23:32:54 +02:00
Bart van Strien 3d1fac07b2 Switch love.timer.sleep to seconds 2011-08-28 17:12:59 +02:00
vrld 28b4008797 Rename Framebuffer to Canvas (issue #263). Move error reporting code.
Error reporting now resides in Graphics::newCanvas() instead of the
previous location wrap_newFramebuffer(). Changed error text for
"Error in implementation" to point to a possible fix.
2011-08-12 14:41:18 +02:00
vrld 24a52f056b Add pixel effects (love-glsl) 2011-07-24 14:03:46 +02:00
vrld 26277b6450 Transformation tables are unlövely 2011-07-23 13:52:04 +02:00
Bart van Strien 9923c02b64 Fix automatic load of default font 2011-07-16 20:40:46 +02:00
Bart van Strien 4fa609a059 Use LÖVE as window title for the no game screen (apply Boolsheet's patch for issue #260) 2011-07-15 20:22:36 +02:00
vrld 6ea187b2f1 Use *ARB versions for VBOs in SpriteBatch. Throw error if SpriteBatch not
supported. Prettier overloading of SpriteBatch:add[q]().
2011-07-05 16:06:14 +02:00
vrld dd143c76ac Add transform tables to SpriteBatch:add() and SpriteBatch:addq(). 2011-07-05 15:26:42 +02:00
vrld d420d68048 Add shear transformation and transform object (issue #152).
Add origin parameters to love.graphics.print.

New shear parameters kx,ky for:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print,
- SpriteBatch:add,
- SpriteBatch:addq.

Transform objects apply to:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print.
2011-07-05 14:33:34 +02:00
Bart van Strien a012a4408e New no-game screen (credits go to rude), updated version number and codename 2011-06-23 17:08:26 +02:00
Bart van Strien 160c17c180 Drop old require syntax (no more .lua extension) 2011-06-22 14:54:29 +02:00
Bart van Strien d34d907b00 Rewrite auto.lua
Biggest advantages being automatic header+footer generation, minimal code verification and smaller diffs (from now on)
2011-06-21 19:45:00 +02:00
Bart van Strien fc5cda36e2 Allow merged games marked as 'release' to have their save dir directly in the appdata dir 2011-06-15 13:09:32 +02:00
Bart van Strien 7fb2681836 Improve the release error handler a bit 2011-05-29 15:33:48 +02:00