lsnes/include/library/lua-framebuffer.hpp
2013-12-24 04:58:09 +02:00

23 lines
625 B
C++

#ifndef _library__lua_framebuffer__hpp__included__
#define _library__lua_framebuffer__hpp__included__
#include "lua-base.hpp"
#include "framebuffer.hpp"
struct lua_render_context
{
uint32_t left_gap;
uint32_t right_gap;
uint32_t top_gap;
uint32_t bottom_gap;
struct framebuffer::queue* queue;
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);
#endif