diff options
Diffstat (limited to 'src/window/window.h')
-rw-r--r-- | src/window/window.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/window/window.h b/src/window/window.h new file mode 100644 index 0000000..c0083ba --- /dev/null +++ b/src/window/window.h @@ -0,0 +1,36 @@ +/** @file */ + +#ifndef HONEY_WINDOW_H +#define HONEY_WINDOW_H + +#include "../common.h" + +#define HONEY_WINDOW_DEFAULT_WIDTH 640 +#define HONEY_WINDOW_DEFAULT_HEIGHT 480 + +typedef struct { + honey_window window; + int width; + int height; + bool fullscreen; +} honey_window_information; + +/** @brief Push the various honey.window table to the stack. + * + * @param[in] L The lua state to push to + * @param[in] window The window created by honey_setup() + * + * @returns Nothing. + */ +bool honey_setup_window(lua_State* L); + +/** @brief Set whether or not the window is fullscreen. + * + * Lua parameters: + * @param[in] fullscreen Boolean set to true if the window is to be fullscreen and false otherwise. + * + * @returns Nothing. + */ +int honey_window_set_fullscreen(lua_State* L); + +#endif |