| #ifdef WITH_RIVE_SCRIPTING | |
| #include "rive/lua/rive_lua_libs.hpp" | |
| int luaopen_rive_path(lua_State* L); | |
| int luaopen_rive_gradient(lua_State* L); | |
| int luaopen_rive_mesh(lua_State* L); | |
| int luaopen_rive_image(lua_State* L); | |
| int luaopen_rive_blob(lua_State* L); | |
| int luaopen_rive_paint(lua_State* L); | |
| int luaopen_rive_renderer(lua_State* L); | |
| int luaopen_rive_transition(lua_State* L); | |
| int luaopen_rive_font(lua_State* L); | |
| int luaopen_rive_text(lua_State* L); | |
| #if defined(RIVE_CANVAS) && defined(RIVE_ORE) | |
| int luaopen_rive_gpu(lua_State* L); | |
| #endif | |
| static const lua_CFunction rendererTypes[] = { | |
| luaopen_rive_path, | |
| luaopen_rive_gradient, | |
| luaopen_rive_mesh, | |
| luaopen_rive_image, | |
| luaopen_rive_blob, | |
| luaopen_rive_paint, | |
| luaopen_rive_renderer, | |
| luaopen_rive_transition, | |
| luaopen_rive_font, | |
| luaopen_rive_text, | |
| #if defined(RIVE_CANVAS) && defined(RIVE_ORE) | |
| luaopen_rive_gpu, | |
| #endif | |
| }; | |
| int luaopen_rive_renderer_library(lua_State* L) | |
| { | |
| int added = 0; | |
| for (auto type : rendererTypes) | |
| { | |
| added += type(L); | |
| } | |
| return added; | |
| } | |
| #endif |