protected void EarthView_World_Graphic_CRenderObjectListener_notifyRenderSingleObjectStarted_void_CRenderable_CPass_CAutoParamDataSource_LightList_ev_bool_Function(IntPtr rend, IntPtr pass, IntPtr source, IntPtr pLightList, bool suppressRenderStateChanges) { EarthView.World.Graphic.Renderable csobj_rend = new EarthView.World.Graphic.Renderable(CreatedWhenConstruct.CWC_NotToCreate); csobj_rend.BindNativeObject(rend, "CRenderable"); csobj_rend.Delegate = true; IClassFactory csobj_rendClassFactory = GlobalClassFactoryMap.Get(csobj_rend.GetCppInstanceTypeName()); if (csobj_rendClassFactory != null) { csobj_rend.Delegate = true; csobj_rend = csobj_rendClassFactory.Create() as EarthView.World.Graphic.Renderable; csobj_rend.BindNativeObject(rend, "CRenderable"); csobj_rend.Delegate = true; } EarthView.World.Graphic.Pass csobj_pass = new EarthView.World.Graphic.Pass(CreatedWhenConstruct.CWC_NotToCreate); csobj_pass.BindNativeObject(pass, "CPass"); csobj_pass.Delegate = true; IClassFactory csobj_passClassFactory = GlobalClassFactoryMap.Get(csobj_pass.GetCppInstanceTypeName()); if (csobj_passClassFactory != null) { csobj_pass.Delegate = true; csobj_pass = csobj_passClassFactory.Create() as EarthView.World.Graphic.Pass; csobj_pass.BindNativeObject(pass, "CPass"); csobj_pass.Delegate = true; } EarthView.World.Graphic.AutoParamDataSource csobj_source = new EarthView.World.Graphic.AutoParamDataSource(CreatedWhenConstruct.CWC_NotToCreate); csobj_source.BindNativeObject(source, "CAutoParamDataSource"); csobj_source.Delegate = true; IClassFactory csobj_sourceClassFactory = GlobalClassFactoryMap.Get(csobj_source.GetCppInstanceTypeName()); if (csobj_sourceClassFactory != null) { csobj_source.Delegate = true; csobj_source = csobj_sourceClassFactory.Create() as EarthView.World.Graphic.AutoParamDataSource; csobj_source.BindNativeObject(source, "CAutoParamDataSource"); csobj_source.Delegate = true; } EarthView.World.Graphic.LightList csobj_pLightList = new EarthView.World.Graphic.LightList(CreatedWhenConstruct.CWC_NotToCreate); csobj_pLightList.BindNativeObject(pLightList, "LightList"); csobj_pLightList.Delegate = true; IClassFactory csobj_pLightListClassFactory = GlobalClassFactoryMap.Get(csobj_pLightList.GetCppInstanceTypeName()); if (csobj_pLightListClassFactory != null) { csobj_pLightList.Delegate = true; csobj_pLightList = csobj_pLightListClassFactory.Create() as EarthView.World.Graphic.LightList; csobj_pLightList.BindNativeObject(pLightList, "LightList"); csobj_pLightList.Delegate = true; } NotifyRenderSingleObjectStarted(csobj_rend, csobj_pass, csobj_source, csobj_pLightList, suppressRenderStateChanges); }
/// <summary> /// 开始渲染单个对象时调用该事件 /// </summary> /// <param name="rend">渲染接口</param> /// <param name="pass">渲染通路</param> /// <param name="source">动态参数源</param> /// <param name="pLightList">光照列表</param> /// <param name="suppressRenderStateChanges">抑制渲染状态改变的参数</param> /// <returns></returns> public virtual void NotifyRenderSingleObjectStarted_NoVirtual(EarthView.World.Graphic.Renderable rend, EarthView.World.Graphic.Pass pass, EarthView.World.Graphic.AutoParamDataSource source, EarthView.World.Graphic.LightList pLightList, bool suppressRenderStateChanges) { EarthView_World_Graphic_CRenderObjectListener_notifyRenderSingleObjectStarted_void_CRenderable_CPass_CAutoParamDataSource_LightList_ev_bool_NoVirtual(this.NativeObject, object.Equals(rend, null) ? IntPtr.Zero : rend.NativeObject, object.Equals(pass, null) ? IntPtr.Zero : pass.NativeObject, object.Equals(source, null) ? IntPtr.Zero : source.NativeObject, object.Equals(pLightList, null) ? IntPtr.Zero : pLightList.NativeObject, Convert.ToByte(suppressRenderStateChanges)); }