Fix race between killing object and drawing object
[lsnes.git] / include / library / lua-framebuffer.hpp
blob61d3f71efc8a3548d262f070727e302fe0dcad43
1 #ifndef _library__lua_framebuffer__hpp__included__
2 #define _library__lua_framebuffer__hpp__included__
4 #include "lua-base.hpp"
5 #include "framebuffer.hpp"
7 namespace lua
9 struct render_context
11 uint32_t left_gap;
12 uint32_t right_gap;
13 uint32_t top_gap;
14 uint32_t bottom_gap;
15 struct framebuffer::queue* queue;
16 uint32_t width;
17 uint32_t height;
20 framebuffer::color get_fb_color(lua::state& L, int index, const std::string& fname)
21 throw(std::bad_alloc, std::runtime_error);
22 framebuffer::color get_fb_color(lua::state& L, int index, const std::string& fname, int64_t dflt)
23 throw(std::bad_alloc, std::runtime_error);
26 #endif