Beispiel #1
0
                protected void EarthView_World_Graphic_CShadowCameraSetup_getShadowCamera_void_CSceneManager_CCamera_CViewport_CLight_CCamera_ev_size_t_Function(IntPtr sm, IntPtr cam, IntPtr vp, IntPtr light, IntPtr texCam, ulong iteration)
                {
                    EarthView.World.Graphic.SceneManager csobj_sm = new EarthView.World.Graphic.SceneManager(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_sm.BindNativeObject(sm, "CSceneManager");
                    csobj_sm.Delegate = true;
                    IClassFactory csobj_smClassFactory = GlobalClassFactoryMap.Get(csobj_sm.GetCppInstanceTypeName());

                    if (csobj_smClassFactory != null)
                    {
                        csobj_sm.Delegate = true;
                        csobj_sm          = csobj_smClassFactory.Create() as EarthView.World.Graphic.SceneManager;
                        csobj_sm.BindNativeObject(sm, "CSceneManager");
                        csobj_sm.Delegate = true;
                    }
                    EarthView.World.Graphic.Camera csobj_cam = new EarthView.World.Graphic.Camera(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_cam.BindNativeObject(cam, "CCamera");
                    csobj_cam.Delegate = true;
                    IClassFactory csobj_camClassFactory = GlobalClassFactoryMap.Get(csobj_cam.GetCppInstanceTypeName());

                    if (csobj_camClassFactory != null)
                    {
                        csobj_cam.Delegate = true;
                        csobj_cam          = csobj_camClassFactory.Create() as EarthView.World.Graphic.Camera;
                        csobj_cam.BindNativeObject(cam, "CCamera");
                        csobj_cam.Delegate = true;
                    }
                    EarthView.World.Graphic.Viewport csobj_vp = new EarthView.World.Graphic.Viewport(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_vp.BindNativeObject(vp, "CViewport");
                    csobj_vp.Delegate = true;
                    IClassFactory csobj_vpClassFactory = GlobalClassFactoryMap.Get(csobj_vp.GetCppInstanceTypeName());

                    if (csobj_vpClassFactory != null)
                    {
                        csobj_vp.Delegate = true;
                        csobj_vp          = csobj_vpClassFactory.Create() as EarthView.World.Graphic.Viewport;
                        csobj_vp.BindNativeObject(vp, "CViewport");
                        csobj_vp.Delegate = true;
                    }
                    EarthView.World.Graphic.Light csobj_light = new EarthView.World.Graphic.Light(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_light.BindNativeObject(light, "CLight");
                    csobj_light.Delegate = true;
                    IClassFactory csobj_lightClassFactory = GlobalClassFactoryMap.Get(csobj_light.GetCppInstanceTypeName());

                    if (csobj_lightClassFactory != null)
                    {
                        csobj_light.Delegate = true;
                        csobj_light          = csobj_lightClassFactory.Create() as EarthView.World.Graphic.Light;
                        csobj_light.BindNativeObject(light, "CLight");
                        csobj_light.Delegate = true;
                    }
                    EarthView.World.Graphic.Camera csobj_texCam = new EarthView.World.Graphic.Camera(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_texCam.BindNativeObject(texCam, "CCamera");
                    csobj_texCam.Delegate = true;
                    IClassFactory csobj_texCamClassFactory = GlobalClassFactoryMap.Get(csobj_texCam.GetCppInstanceTypeName());

                    if (csobj_texCamClassFactory != null)
                    {
                        csobj_texCam.Delegate = true;
                        csobj_texCam          = csobj_texCamClassFactory.Create() as EarthView.World.Graphic.Camera;
                        csobj_texCam.BindNativeObject(texCam, "CCamera");
                        csobj_texCam.Delegate = true;
                    }

                    GetShadowCamera(csobj_sm, csobj_cam, csobj_vp, csobj_light, csobj_texCam, iteration);
                }
 public override void ShadowTextureReceiverPreViewProj(EarthView.World.Graphic.Light light, EarthView.World.Graphic.Frustum frustum)
 {
     base.ShadowTextureReceiverPreViewProj_NoVirtual(light, frustum);
 }
Beispiel #3
0
 //// CFunction to implement -- must set the shadow camera properties
 /// <summary>
 /// 摄像机阴影类默认函数
 /// </summary>
 /// <param name="sm"></param>
 /// <param name="cam"></param>
 /// <param name="vp"></param>
 /// <param name="light"></param>
 /// <param name="texCam"></param>
 /// <param name="iteration"></param>
 /// <returns></returns>
 public virtual void GetShadowCamera_NoVirtual(EarthView.World.Graphic.SceneManager sm, EarthView.World.Graphic.Camera cam, EarthView.World.Graphic.Viewport vp, EarthView.World.Graphic.Light light, EarthView.World.Graphic.Camera texCam, ulong iteration)
 {
     EarthView_World_Graphic_CShadowCameraSetup_getShadowCamera_void_CSceneManager_CCamera_CViewport_CLight_CCamera_ev_size_t_NoVirtual(this.NativeObject, object.Equals(sm, null) ? IntPtr.Zero : sm.NativeObject, object.Equals(cam, null) ? IntPtr.Zero : cam.NativeObject, object.Equals(vp, null) ? IntPtr.Zero : vp.NativeObject, object.Equals(light, null) ? IntPtr.Zero : light.NativeObject, object.Equals(texCam, null) ? IntPtr.Zero : texCam.NativeObject, iteration);
 }
 public override void ShadowTextureCasterPreViewProj(EarthView.World.Graphic.Light light, EarthView.World.Graphic.Camera camera, ulong iteration)
 {
     base.ShadowTextureCasterPreViewProj_NoVirtual(light, camera, iteration);
 }