Split lua_render_context into library/
This commit is contained in:
parent
eba2e73608
commit
a8d9a1eb7c
2 changed files with 16 additions and 12 deletions
15
include/library/lua-framebuffer.hpp
Normal file
15
include/library/lua-framebuffer.hpp
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#ifndef _library__lua_framebuffer__hpp__included__
|
||||||
|
#define _library__lua_framebuffer__hpp__included__
|
||||||
|
|
||||||
|
struct lua_render_context
|
||||||
|
{
|
||||||
|
uint32_t left_gap;
|
||||||
|
uint32_t right_gap;
|
||||||
|
uint32_t top_gap;
|
||||||
|
uint32_t bottom_gap;
|
||||||
|
struct render_queue* queue;
|
||||||
|
uint32_t width;
|
||||||
|
uint32_t height;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -5,18 +5,7 @@
|
||||||
#include "core/keymapper.hpp"
|
#include "core/keymapper.hpp"
|
||||||
#include "core/movie.hpp"
|
#include "core/movie.hpp"
|
||||||
#include "library/framebuffer.hpp"
|
#include "library/framebuffer.hpp"
|
||||||
|
#include "library/lua-framebuffer.hpp"
|
||||||
|
|
||||||
struct lua_render_context
|
|
||||||
{
|
|
||||||
uint32_t left_gap;
|
|
||||||
uint32_t right_gap;
|
|
||||||
uint32_t top_gap;
|
|
||||||
uint32_t bottom_gap;
|
|
||||||
struct render_queue* queue;
|
|
||||||
uint32_t width;
|
|
||||||
uint32_t height;
|
|
||||||
};
|
|
||||||
|
|
||||||
void init_lua(bool soft = false) throw();
|
void init_lua(bool soft = false) throw();
|
||||||
void quit_lua() throw();
|
void quit_lua() throw();
|
||||||
|
|
Loading…
Add table
Reference in a new issue