lsnes/include/library/lua-framebuffer.hpp

24 lines
625 B
C++
Raw Normal View History

2012-10-20 09:11:07 +03:00
#ifndef _library__lua_framebuffer__hpp__included__
#define _library__lua_framebuffer__hpp__included__
#include "lua-base.hpp"
#include "framebuffer.hpp"
2012-10-20 09:11:07 +03:00
struct lua_render_context
{
uint32_t left_gap;
uint32_t right_gap;
uint32_t top_gap;
uint32_t bottom_gap;
struct framebuffer::queue* queue;
2012-10-20 09:11:07 +03:00
uint32_t width;
uint32_t height;
};
framebuffer::color lua_get_fb_color(lua::state& L, int index, const std::string& fname)
throw(std::bad_alloc, std::runtime_error);
framebuffer::color lua_get_fb_color(lua::state& L, int index, const std::string& fname, int64_t dflt)
throw(std::bad_alloc, std::runtime_error);
2012-10-20 09:11:07 +03:00
#endif