Commit Graph

1509 Commits

Author SHA1 Message Date
Bill Meltsner cbff71d089 New font engine is implemented and appears to work perfectly. Bugs may be discovered and the internals can certainly be optimized and improved (at some point, perhaps, a less naive packing algorithm would be nice) but for now, it's good to go.
--HG--
branch : newfont
2011-03-06 05:02:35 -05:00
Bill Meltsner 9d38cba626 brutally murdered padding and predefined glyph loading
--HG--
branch : newfont
2011-03-05 23:37:36 -05:00
Bill Meltsner 94b4319878 trashed old unnecessary font stuff - compiles, but obviously will not work yet
--HG--
branch : newfont
2011-03-05 23:17:36 -05:00
vrld a13b792a5c Revert to last commit, as msvc is stuck in the last millenium 2011-02-22 11:15:27 +01:00
vrld 08259a4a0e Change auto.lua to create plaintext instead of hex code. 2011-02-20 23:34:48 +01:00
Bill Meltsner e3e4ae17d8 love.graphics.setFont no longer explodes when passed a nonexistent file (fixes issue #177) 2011-02-02 21:07:21 -05:00
vrld 64b6232c9a Reinitialize event system (via SDL_INIT_VIDEO) in Graphics::setMode(). 2011-01-31 20:27:42 +01:00
vrld d25a3a36ce Revert reverting 8d29d4ca285e. 2011-01-30 16:25:55 +01:00
vrld e7db8c2491 Fix issue #176: unexpected behaivior of love.graphics.line with hash-table argument. 2011-01-30 16:20:31 +01:00
Bart van Strien 04aa189d22 Didn't compile, totally my fault 2011-01-30 00:34:28 +01:00
Bart van Strien 10524be1c8 Fix toggleFullscreen 2011-01-30 00:29:08 +01:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
rude 31c9995082 Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int. 2011-01-09 16:28:30 +01:00
vrld b9b2c4a962 Rewrite Graphics::printf, fixes issue #107
Rewrote the complete logic to not operate on chars, but on lines and
tokens. Uses std streams, iterators and algorithms.
2011-01-09 16:27:19 +01:00
vrld 3587cd4320 Fix issue #165 and part of #129 2011-01-07 14:42:51 +01:00
vrld e3067ff33d Fix issue #136 - Filter for Imagefonts. 2011-01-07 14:08:10 +01:00
vrld 28df1edf03 Code cleanup: remove unnecessary `print' routines 2011-01-02 22:58:53 +01:00
vrld 9dad948263 Add framebuffer filter modes (issue #112) 2011-01-01 19:42:59 +01:00
Bart van Strien 54cfb3738f Applied itsnotabigtruck's fbo patch (issue #133) 2010-12-27 14:38:33 +01:00
Bart van Strien 36226401bf Store and restore caption and mouse visibility when using setMode (bug #142) 2010-12-20 17:38:26 +01:00
Bart van Strien cb1efac715 Wrappers now catch negative width or height in setScissor (bug #125) 2010-12-07 19:52:35 +01:00
Bart van Strien f4da97d46e Add hasFocus (issue #117) 2010-11-28 11:29:48 +01:00
Bart van Strien cee1a95b82 Table support for setBackgroundColor (bug #113) 2010-11-28 11:21:26 +01:00
Bill Meltsner d131c0c883 love.graphics.newFont now errors if the specified file doesn't exist (fixes #115) 2010-11-28 04:16:37 -06:00
rude 6aa8399aa8 Made love.vcproj buildable again. 2010-11-25 15:13:08 +01:00
Bill Meltsner fade6f0cbc Fixed Framebuffers scaling their contents when not sized identically to the main window 2010-11-18 02:40:07 -05:00
Bart van Strien a47fa1462d Added table support for love.graphics.setColor (issue #106) 2010-11-16 20:47:28 +01:00
Bill Meltsner 6bfb05359b Framebuffer needs cstring (fixes #108) 2010-11-12 08:38:41 -05:00
Bill Meltsner 77e5b7f880 moved the FramebufferStrategy structs back to Framebuffer.cpp 2010-11-11 13:17:41 -05:00
Bill Meltsner ba44886cf4 Cleaned up love.graphics.Framebuffer code, using GLee to check for support instead 2010-11-10 16:57:41 -05:00
Bill Meltsner 500e0f1417 image fonts now print from the upper left like truetype fonts do (fixes #100) 2010-11-09 19:29:00 -05:00
Bill Meltsner 37baf32374 changed LUMINOSITY_ALPHA to LUMINANCE_ALPHA (more consistent with opengl's phrasing) 2010-11-09 19:07:51 -05:00
Bill Meltsner 3cb3537db0 Added vrld's text-rotation-fixing patch (finally fixes #56) 2010-11-09 18:56:34 -05:00
Bill Meltsner a34640bcfd (Hopefully) fixed bug where extended ASCII characters would not display properly. 2010-10-14 16:17:21 -05:00
Bill Meltsner 5b62692c7d love.graphics.newImageFont now accepts an Image as its first argument 2010-10-12 19:35:53 -05:00
Bill Meltsner 41124e9032 fixed typo in wrapper function declaration 2010-10-12 18:17:40 -05:00
Bart van Strien fdd8393b13 Fix for blurry text, bug #85 2010-10-11 18:56:10 +02:00
Bill Meltsner 8800fa982a made fonts actually print from the top-left. 2010-10-06 19:33:07 -04:00
Bart van Strien b2386d7201 (Hopefully) Fixed a bug where ImageData was not seen as preconverted by newImageFont (#73) 2010-09-27 21:08:05 +02:00
Bart van Strien d942ff3315 Fix font scaling newline issue (bug #56) 2010-09-22 10:45:34 +02:00
Bart van Strien 7e318cc9b2 Let's hope I finally smashed those mem leaks 2010-09-18 20:22:29 +02:00
Bart van Strien 2b273c0081 Hopefully fixed more memory leakage in fonts 2010-09-18 10:07:52 +02:00
Bart van Strien c96ade1cf0 Prevented a memory leak in the setFont wrapper 2010-09-15 21:10:46 +02:00
rude 1eca14ed9e Fixed artifacts exposed (not really caused) by a0d18b527fb1. GL_CLAMP is deprecated in OpenGL ES. Image::Filter and Image::Wrap did not have reasonable default. 2010-09-14 20:41:14 +02:00
Bart van Strien 26d856a9ce Merged in fbos 2010-09-04 16:53:19 +02:00
Bart van Strien 639eca997d Fixed two cases of inefficient usage of the lua api 2010-09-03 15:30:13 +02:00
vrld 08c06f0fe0 Allow zero arguments in love.graphics.setRenderTarget(), update boot.lua.h
Calling love.graphics.setRenderTarget() as opposed to
love.graphics.setRenderTarget( nil ) was an error before. fixed.
2010-09-03 14:53:37 +02:00
vrld 78a793e08f Add default width/height to love.graphics.newFramebuffer 2010-09-03 14:28:57 +02:00
Bill Meltsner 769842ce6e made Framebuffer Volatile and fixed a few bugs 2010-08-28 13:02:28 -05:00
Bill Meltsner 046f2a3084 Fixed some bugs with font drawing and reverted the display list change - it was causing problems with multiple fonts 2010-08-28 11:42:37 -05:00