You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
384 B

#include "lua/modules/render.hpp"
#include <sol/sol.hpp>
#include "engine/dx.h"
#include "engine/render/text_render.hpp"
namespace devilution {
sol::table LuaRenderModule(sol::state_view &lua)
{
return lua.create_table_with(
"string", [](std::string_view text, int x, int y) { DrawString(GlobalBackBuffer(), text, { x, y }); });
}
} // namespace devilution