rxi
46989c8bfd
Made x, y arguments to love.graphics.draw() optional
2016-09-23 20:04:42 +01:00
rxi
dcb909b7ba
Added support for linebreaks in font_blit (effects love.graphics.print)
2016-09-23 19:33:17 +01:00
rxi
1940897a4a
Implemented Font:getWidth/getHeight()
2016-09-23 19:23:56 +01:00
rxi
9ed8ca8f01
Updated love.graphics.clear() to use new color format
2016-09-23 19:12:58 +01:00
rxi
10d491def9
Changed getColorFromArgs to take defaults array, and either all colors or non
2016-09-23 19:10:33 +01:00
rxi
06caffd3ab
Changed font system to use ttf
2016-09-23 00:55:05 +01:00
rxi
0bc06fca53
Added stb_truetype to src/lib
2016-09-22 22:16:26 +01:00
rxi
17d17a80df
Fixed red and blue channels being swapped in palette.c
2016-09-22 19:59:59 +01:00
rxi
b73dea5350
Changed setColor and setBackgroundColor to take rgb arguments
2016-09-22 19:55:16 +01:00
rxi
b42866dbe8
Updated copyright year
2016-09-22 19:31:05 +01:00
rxi
2d9652945c
Improved color palette error in image.c
2016-09-22 19:29:01 +01:00
rxi
a285efbc3d
Changed image_init() to use stb_image and palette functions
2016-09-22 19:18:50 +01:00
rxi
7848c10af9
Removed palette changing functionality from graphics.c
2016-09-22 19:15:11 +01:00
rxi
92511f0132
Added palette.c/h and palette_init() call in main.c
2016-09-22 19:11:56 +01:00
rxi
89eed6001b
Added stb_image to source
2016-09-22 19:09:16 +01:00
rxi
521b7dabef
Version 0.1.5
2014-06-28 11:04:52 +01:00
rxi
73540b5e09
Fixed off-by-one in l_graphics_circle()'s horiz clipping
2014-06-24 23:07:03 +01:00
rxi
68664405d2
Added handling for uclock() returning earlier time
...
On some systems the call to uclock() would sometimes return a slightly
earlier time than the previous call, this would result in a negative
delta time. This is now checked for and uclock() is now called
repeatedly until we have a valid delta time.
2014-06-23 19:53:17 +01:00
rxi
3b100b4c9b
Version 0.1.4
2014-06-21 00:50:30 +01:00
rxi
78ab841f78
Replaced use of luaL_getinteger() with getint() in graphics.c
2014-06-21 00:49:15 +01:00
rxi
58bacfe1d1
Changed love.graphics.setPalette() to set to default on nil
2014-06-21 00:16:01 +01:00
rxi
785f3e3646
Added love.graphics.getPalette()
2014-06-21 00:01:39 +01:00
rxi
255a426cda
Added palette table support to love.graphics.setPalette()
2014-06-20 22:55:05 +01:00
rxi
57688a1e57
Added love.graphics.setPalette() function
2014-06-20 21:30:23 +01:00
rxi
e725a3f335
Set print and xpcall to locals in main.c's lua code
...
This prevents any undesired behaviour from those functions being set to
something else, such as lua errors not being printed to the console if
the global print() function was changed.
2014-06-18 19:05:15 +01:00
rxi
a92d866261
Version 0.1.3
2014-06-16 18:20:20 +01:00
rxi
0900563e67
Fixed color argument of l_image_setPixel()
2014-06-15 13:57:44 +01:00
rxi
e907307eb2
Fixed fonts to not be effected by the current flip mode
2014-06-15 11:50:04 +01:00
rxi
8e89209d0e
Fixed some comments in l_graphics_setCanvas and _setFont
2014-06-14 19:38:14 +01:00
rxi
6074d20917
Version 0.1.2
2014-06-14 18:52:00 +01:00
rxi
311aac14b0
Fixed typo of love.getVersion function in luaopen_love
2014-06-14 18:50:15 +01:00
rxi
61d6f9524e
Removed all default value sets in graphics, added call to reset()
...
All love.graphics state settings are now set to their default by a
single call of love.graphics.reset() when the love.graphics module is
loaded. This means the default value for each love.graphics setter is
now located in the corresponding set function.
2014-06-14 18:07:41 +01:00
rxi
d8758b7ba9
Added love.graphics.reset()
2014-06-14 18:03:28 +01:00
rxi
bd1afc184a
Added onLuaPanic() function to main.c
2014-06-14 16:27:42 +01:00
rxi
70fdd2ed1a
Removed redundant graphics funcs and graphics.h
2014-06-14 16:17:59 +01:00
rxi
ac6c57220e
Neatened l_graphics_setCanvas and _setFont()
2014-06-14 16:10:00 +01:00
rxi
01e09e3294
Changed screen canvas to be real lua object
...
The screen canvas can now be accessed by using love.graphics.getCanvas()
when it is set.
2014-06-14 16:01:59 +01:00
rxi
fb2622bd81
Changed default font to be real lua object
...
The default font is now created as a real lua object and added to the
lua registry under the address of its struct pointer. The
love.graphics.getFont() function can now be used to retrieve the default
font.
2014-06-14 15:40:39 +01:00
rxi
2d48b5eae1
Made filename argument optional in love.graphics.newFont()
2014-06-14 15:16:07 +01:00
rxi
664ffe979c
Moved graphics_initDefaultFont functionality -> font_initEmbedded
2014-06-14 14:14:09 +01:00
rxi
cb56dad31b
Changed love module to init all classes before anything else
2014-06-14 13:59:56 +01:00
rxi
be2a788b05
Added support for non-string values to love.graphics.print()
2014-06-14 13:53:26 +01:00
rxi
4c734fd3c3
Version 0.1.1
2014-06-13 21:37:36 +01:00
rxi
cdd2d67c7d
Fixed default color in image.c to match graphics.c
2014-06-13 21:31:54 +01:00
rxi
c1fc37373e
Version 0.1.0
2014-06-13 21:02:57 +01:00
rxi
f34b4f8beb
Intial commit
2014-06-13 21:01:19 +01:00