love-demo2/src/window.cpp

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;
}