Ejemplo n.º 1
0
        public PlaneOptimalShadowCameraSetup __deref__()
        {
            global::System.IntPtr         cPtr = OgrePINVOKE.PlaneOptimalShadowCameraSetupPtr___deref__(swigCPtr);
            PlaneOptimalShadowCameraSetup ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PlaneOptimalShadowCameraSetup(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
                public static PlaneOptimalShadowCameraSetup FromBaseObject(BaseObject baseObj)
                {
                    if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                    {
                        return(null);
                    }
                    PlaneOptimalShadowCameraSetup obj = baseObj as  PlaneOptimalShadowCameraSetup;

                    if (object.Equals(obj, null))
                    {
                        obj = new PlaneOptimalShadowCameraSetup(CreatedWhenConstruct.CWC_NotToCreate);
                        obj.BindNativeObject(baseObj.NativeObject, "CPlaneOptimalShadowCameraSetup");
                        obj.IncreaseCast();
                    }

                    return(obj);
                }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PlaneOptimalShadowCameraSetup obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
                public BaseObject Create()
                {
                    PlaneOptimalShadowCameraSetup emptyInstance = new PlaneOptimalShadowCameraSetup(CreatedWhenConstruct.CWC_NotToCreate);

                    return(emptyInstance);
                }