2012-10-20 09:11:07 +03:00
|
|
|
#ifndef _library__lua_framebuffer__hpp__included__
|
|
|
|
#define _library__lua_framebuffer__hpp__included__
|
|
|
|
|
2013-12-24 04:58:09 +02:00
|
|
|
#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;
|
2013-12-19 06:57:22 +02:00
|
|
|
struct framebuffer::queue* queue;
|
2012-10-20 09:11:07 +03:00
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
};
|
|
|
|
|
2013-12-24 04:58:09 +02:00
|
|
|
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
|