915 lines
35 KiB
C#
915 lines
35 KiB
C#
#if USE_UNI_LUA
|
|
using LuaAPI = UniLua.Lua;
|
|
using RealStatePtr = UniLua.ILuaState;
|
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|
#else
|
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|
using RealStatePtr = System.IntPtr;
|
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
public class BFRenderManagerWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.RenderManager);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 18, 12, 0);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIDefaultMat", _m_SetUIDefaultMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUITutorialMat", _m_SetUITutorialMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlurMat", _m_SetBlurMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBloomMat", _m_SetBloomMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlitCopyMat", _m_SetBlitCopyMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVividBloomMat", _m_SetVividBloomMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFxaaMat", _m_SetFxaaMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRadialBlur", _m_SetRadialBlur);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshOutlineMaskMat", _m_SetMeshOutlineMaskMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshOutlineFillMat", _m_SetMeshOutlineFillMat);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGrey", _m_SetGrey);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlurBg", _m_GetBlurBg);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlurBgWithBloom", _m_GetBlurBgWithBloom);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScreenShot", _m_GetScreenShot);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenPostEffect", _m_OpenPostEffect);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosePostEffect", _m_ClosePostEffect);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlurSizeID", _g_get_BlurSizeID);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "BloomID", _g_get_BloomID);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIDefaultMat", _g_get_UIDefaultMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "UITutorialMat", _g_get_UITutorialMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlurMat", _g_get_BlurMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "BloomMat", _g_get_BloomMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VividBloomMat", _g_get_VividBloomMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlitCopyMat", _g_get_BlitCopyMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "FxaaMat", _g_get_FxaaMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialBlurMat", _g_get_RadialBlurMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOutlineMaskMat", _g_get_MeshOutlineMaskMat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOutlineFillMat", _g_get_MeshOutlineFillMat);
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "BF.RenderManager does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Create_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = BF.RenderManager.Create( );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Init(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Init( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetUIDefaultMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetUIDefaultMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetUITutorialMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetUITutorialMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetBlurMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetBlurMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetBloomMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetBloomMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetBlitCopyMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetBlitCopyMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetVividBloomMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetVividBloomMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetFxaaMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetFxaaMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetRadialBlur(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetRadialBlur( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetMeshOutlineMaskMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetMeshOutlineMaskMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetMeshOutlineFillMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
|
|
|
|
gen_to_be_invoked.SetMeshOutlineFillMat( _material );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetGrey(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 4&& translator.Assignable<UnityEngine.UI.MaskableGraphic>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
|
{
|
|
UnityEngine.UI.MaskableGraphic _mg = (UnityEngine.UI.MaskableGraphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.MaskableGraphic));
|
|
bool _isGrey = LuaAPI.lua_toboolean(L, 3);
|
|
byte _greyLv = (byte)LuaAPI.xlua_tointeger(L, 4);
|
|
|
|
gen_to_be_invoked.SetGrey( _mg, _isGrey, _greyLv );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.UI.MaskableGraphic>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
|
{
|
|
UnityEngine.UI.MaskableGraphic _mg = (UnityEngine.UI.MaskableGraphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.MaskableGraphic));
|
|
bool _isGrey = LuaAPI.lua_toboolean(L, 3);
|
|
|
|
gen_to_be_invoked.SetGrey( _mg, _isGrey );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.SetGrey!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetBlurBg(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 5&& translator.Assignable<UnityEngine.Camera[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
int _width = LuaAPI.xlua_tointeger(L, 3);
|
|
int _height = LuaAPI.xlua_tointeger(L, 4);
|
|
int _iteration = LuaAPI.xlua_tointeger(L, 5);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBlurBg( _targetCameras, _width, _height, _iteration );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 4&& translator.Assignable<UnityEngine.Camera[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
int _width = LuaAPI.xlua_tointeger(L, 3);
|
|
int _height = LuaAPI.xlua_tointeger(L, 4);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBlurBg( _targetCameras, _width, _height );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetBlurBg!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetBlurBgWithBloom(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 5&& translator.Assignable<UnityEngine.Camera[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
int _width = LuaAPI.xlua_tointeger(L, 3);
|
|
int _height = LuaAPI.xlua_tointeger(L, 4);
|
|
int _iteration = LuaAPI.xlua_tointeger(L, 5);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBlurBgWithBloom( _targetCameras, _width, _height, _iteration );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 4&& translator.Assignable<UnityEngine.Camera[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
int _width = LuaAPI.xlua_tointeger(L, 3);
|
|
int _height = LuaAPI.xlua_tointeger(L, 4);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBlurBgWithBloom( _targetCameras, _width, _height );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetBlurBgWithBloom!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetScreenShot(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& translator.Assignable<System.Action<UnityEngine.Texture2D>>(L, 2))
|
|
{
|
|
System.Action<UnityEngine.Texture2D> _onTexture = translator.GetDelegate<System.Action<UnityEngine.Texture2D>>(L, 2);
|
|
|
|
gen_to_be_invoked.GetScreenShot( _onTexture );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Camera[]>(L, 2))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
|
|
var gen_ret = gen_to_be_invoked.GetScreenShot( _targetCameras );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Camera[]>(L, 2)&& translator.Assignable<UnityEngine.Rect>(L, 3))
|
|
{
|
|
UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[]));
|
|
UnityEngine.Rect _rect;translator.Get(L, 3, out _rect);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetScreenShot( _targetCameras, _rect );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetScreenShot!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OpenPostEffect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3))
|
|
{
|
|
int _effectType = LuaAPI.xlua_tointeger(L, 2);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
|
|
|
|
var gen_ret = gen_to_be_invoked.OpenPostEffect( _effectType, _camera );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<BF.PostEffectType>(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3))
|
|
{
|
|
BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
|
|
|
|
var gen_ret = gen_to_be_invoked.OpenPostEffect( _effectType, _camera );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.OpenPostEffect!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_ClosePostEffect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3))
|
|
{
|
|
int _effectType = LuaAPI.xlua_tointeger(L, 2);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
|
|
|
|
gen_to_be_invoked.ClosePostEffect( _effectType, _camera );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<BF.PostEffectType>(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3))
|
|
{
|
|
BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
|
|
|
|
gen_to_be_invoked.ClosePostEffect( _effectType, _camera );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.ClosePostEffect!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Destroy(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Destroy( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_BlurSizeID(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.BlurSizeID);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_BloomID(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.BloomID);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_UIDefaultMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.UIDefaultMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_UITutorialMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.UITutorialMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_BlurMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.BlurMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_BloomMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.BloomMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_VividBloomMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.VividBloomMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_BlitCopyMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.BlitCopyMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_FxaaMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.FxaaMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_RadialBlurMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.RadialBlurMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MeshOutlineMaskMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.MeshOutlineMaskMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MeshOutlineFillMat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.MeshOutlineFillMat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|