14 lines
205 B
C++
14 lines
205 B
C++
#include "window.h"
|
|
|
|
namespace window {
|
|
float width = 1;
|
|
float height = 1;
|
|
}
|
|
|
|
// C ABI called from Lua
|
|
void update_window(int width, int height)
|
|
{
|
|
window::width = width;
|
|
window::height = height;
|
|
}
|