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:
parent
5a9025a2a7
commit
fc920b3040
1 changed files with 10 additions and 0 deletions
|
@ -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 ) \
|
||||||
|
|
Loading…
Reference in a new issue