lsnes/include/library/lua-framebuffer.hpp

27 lines
631 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"
2014-05-14 11:50:59 +03:00
namespace lua
{
struct render_context
2012-10-20 09:11:07 +03:00
{
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;
};
2014-05-14 11:50:59 +03:00
framebuffer::color get_fb_color(lua::state& L, int index, const std::string& fname)
throw(std::bad_alloc, std::runtime_error);
2014-05-14 11:50:59 +03:00
framebuffer::color get_fb_color(lua::state& L, int index, const std::string& fname, int64_t dflt)
throw(std::bad_alloc, std::runtime_error);
2014-05-14 11:50:59 +03:00
}
2012-10-20 09:11:07 +03:00
#endif