1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Add obj_getRenderPass() Lua func

This commit is contained in:
fgenesis 2023-09-14 00:23:55 +02:00
parent 5a9025a2a7
commit fc920b3040

View file

@ -1633,6 +1633,15 @@ luaFunc(obj_setRenderPass)
luaReturnNil(); luaReturnNil();
} }
luaFunc(obj_getRenderPass)
{
RenderObject *r = robj(L);
int pass = 0;
if (r)
pass = r->getRenderPass();
luaReturnInt(pass);
}
luaFunc(obj_fh) luaFunc(obj_fh)
{ {
RenderObject *r = robj(L); RenderObject *r = robj(L);
@ -2054,6 +2063,7 @@ luaFunc(quad_getBorderAlpha)
RO_FUNC(getter, prefix, setUpdateCull ) \ RO_FUNC(getter, prefix, setUpdateCull ) \
RO_FUNC(getter, prefix, getUpdateCull ) \ RO_FUNC(getter, prefix, getUpdateCull ) \
RO_FUNC(getter, prefix, setRenderPass ) \ RO_FUNC(getter, prefix, setRenderPass ) \
RO_FUNC(getter, prefix, getRenderPass ) \
RO_FUNC(getter, prefix, setPositionX ) \ RO_FUNC(getter, prefix, setPositionX ) \
RO_FUNC(getter, prefix, setPositionY ) \ RO_FUNC(getter, prefix, setPositionY ) \
RO_FUNC(getter, prefix, enableMotionBlur ) \ RO_FUNC(getter, prefix, enableMotionBlur ) \