Commit graph

24 commits

Author SHA1 Message Date
Ilari Liusvaara
f2e1930909 Lua: (D)BITMAP:draw_clip, (D)BITMAP:draw_outside, TILEMAP:draw_outside 2014-04-03 00:59:05 +03:00
Ilari Liusvaara
5d0fb0f39a Error out creating too large bitmaps / tilemaps instead of corrupting memory 2014-03-31 14:15:24 +03:00
Ilari Liusvaara
7ba7fc24f6 Use overcommit for palettes, bitmaps, dbitmaps and tilemaps
This makes the large size of these objects visible to Lua, hopefully
allowing Lua GC to make better decisions.
2014-03-31 12:42:33 +03:00
Ilari Liusvaara
e0827ce54f Add base support for Lua object overcommit 2014-03-31 11:31:25 +03:00
Ilari Liusvaara
4f0e636b9b Refactor workthread.hpp and threadtypes.hpp (renamed to threads.hpp)
Also rename all variables and fields named "mutex" (gdb does not like
that name).
2014-03-23 09:45:42 +02:00
Ilari Liusvaara
85d78e2632 Lua: Give the print method as pointer instead of assuming T::print 2014-01-29 11:32:52 +02:00
Ilari Liusvaara
53d7bbd633 Lua: Make class methods take lua::parameters 2014-01-28 14:38:25 +02:00
Ilari Liusvaara
b7ea7bb2c7 Lua: cleanup some more files 2014-01-26 17:42:22 +02:00
Ilari Liusvaara
b54a776f13 Lua: Scaling blits, color priority blits, Porter-Duff blits 2014-01-22 19:18:03 +02:00
Ilari Liusvaara
43952138a3 Lua: Bitmap/renderq object methods 2013-12-23 16:32:11 +02:00
Ilari Liusvaara
2c4a3a5f84 Refactor library Lua base to dedicated namespace 2013-12-20 02:02:22 +02:00
Ilari Liusvaara
dce933b76d Refactor library framebuffer to dedicated namespace 2013-12-19 07:00:43 +02:00
Ilari Liusvaara
5661c7ca59 Save bitmaps as PNG
Also:
- Refactor PNG code to have PNG writing support
- Add functions to dump SNES sprites and palettes
2013-10-28 21:15:08 +02:00
Ilari Liusvaara
59ef6961e3 Merge branch 'rr1-maint' 2013-09-27 10:47:19 +03:00
Ilari Liusvaara
a42c0bf6ea Extend userdata printing 2013-09-27 10:36:19 +03:00
Ilari Liusvaara
9092dea931 Lua: Automatically pass Lua state to lua class ctors 2013-08-21 23:19:20 +03:00
Ilari Liusvaara
ff86d2f0c2 Merge branch 'rr1-maint' 2013-07-17 22:58:24 +03:00
Ilari Liusvaara
a8a1f09e94 Lua: Allow direct loading of PNG/PAL/BITMAP from string 2013-07-17 22:28:54 +03:00
Ilari Liusvaara
236b9075d9 Merge branch 'rr1-maint'
Conflicts:
	include/core/framebuffer.hpp
2013-02-28 04:06:37 +02:00
Ilari Liusvaara
80c9dcee2d Fix crash with bitmaps and resetting Lua VM
Kill requests depending on bitmaps and palettes going away, to avoid
having the emulator crash if there is a request using those bitmaps
and palettes in flight while Lua VM is reset.

Noticed by FatRatKnight.
2013-02-28 04:03:01 +02:00
Ilari Liusvaara
8578b8812a Use system mutex/condition types instead of platform ones 2013-01-21 09:24:46 +02:00
Ilari Liusvaara
1f631a8ad0 Librarify screen rendering 2012-06-20 17:40:27 +03:00
Ilari Liusvaara
72a8296eb9 Lock palettes to protect color array structure 2012-03-07 14:44:24 +02:00
Ilari Liusvaara
d8319ef4a9 Lua Bitmap WIP 2012-03-03 11:27:26 +02:00