Пример #1
0
        public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
        {
            Mesh mesh = null;

            FDeviceMeshes.TryGetValue(OnDevice, out mesh);
            return(mesh);
        }
Пример #2
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (FDeviceData.ContainsKey(OnDevice))
     {
         return(FDeviceData[OnDevice].Data);
     }
     return(null);
 }
Пример #3
0
        public static IDXMeshOut CreateMeshOutput(this IPluginHost host, OutputAttribute attribute, Type type)
        {
            IDXMeshOut result = null;

            host.CreateMeshOutput(attribute.Name, (TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result);
            result.Order = attribute.Order;
            return(result);
        }
Пример #4
0
 public MeshOutStream(IInternalPluginHost host, OutputAttribute attribute)
 {
     FInternalMeshOut = host.CreateMeshOutput2(
         this,
         attribute.Name,
         (TSliceMode)attribute.SliceMode,
         (TPinVisibility)attribute.Visibility
         );
 }
Пример #5
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMeshes.ContainsKey(OnDevice))
     {
        return this.FMeshes[OnDevice];
     }
     else
         return null;
 }
Пример #6
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMesh != null)
     {
         return(this.FMesh);
     }
     else
     {
         return(null);
     }
 }
Пример #7
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMeshes.ContainsKey(OnDevice))
     {
         return(this.FMeshes[OnDevice]);
     }
     else
     {
         return(null);
     }
 }
Пример #8
0
 public void GetMesh(IDXMeshOut ForPin, int OnDevice, out int mesh)
 {
     mesh = 0;
     //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
     if (ForPin == this.FPinOutMesh)
     {
         if (this.FMeshes.ContainsKey(OnDevice))
         {
             mesh = this.FMeshes[OnDevice].ComPointer.ToInt32();
         }
     }
 }
Пример #9
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
     if (ForPin == this.FPinOutMesh && this.FMeshes.ContainsKey(OnDevice))
     {
         return(this.FMeshes[OnDevice]);
     }
     else
     {
         return(null);
     }
 }
Пример #10
0
        public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
        {
            //this is called from the plugin host from within directX beginscene/endscene
            //therefore the plugin shouldn't be doing much here other than handing back the right mesh

            //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
            if (ForPin == FMyMeshOutput && FDeviceMeshes.ContainsKey(OnDevice))
            {
                return(FDeviceMeshes[OnDevice]);
            }
            else
            {
                return(null);
            }
        }
Пример #11
0
        public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
        {
            // Called by the PluginHost everytime a mesh is accessed via a pin on the plugin.
            // This is called from the PluginHost from within DirectX BeginScene/EndScene,
            // therefore the plugin shouldn't be doing much here other than handing back the right mesh

            //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
            if (ForPin == FMyMeshOutput && FDeviceMeshes.ContainsKey(OnDevice))
            {
                return(FDeviceMeshes[OnDevice]);
            }
            else
            {
                return(null);
            }
        }
Пример #12
0
        public void GetMesh(IDXMeshOut ForPin, int OnDevice, out int MeshPointer)
        {
            // Called by the PluginHost everytime a mesh is accessed via a pin on the plugin.
            // This is called from the PluginHost from within DirectX BeginScene/EndScene,
            // therefore the plugin shouldn't be doing much here other than handing back the right mesh

            MeshPointer = 0;
            //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
            if (ForPin == MeshOut)
            {
                Mesh m = FDeviceMeshes[OnDevice];
                if (m != null)
                    MeshPointer = m.ComPointer.ToInt32();
            }
        }
        public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
        {
            // Called by the PluginHost everytime a mesh is accessed via a pin on the plugin.
            // This is called from the PluginHost from within DirectX BeginScene/EndScene,
            // therefore the plugin shouldn't be doing much here other than handing back the right mesh

            //MeshPointer = 0;
            //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
            if (ForPin == this.MeshOut&& FDeviceMeshes.ContainsKey(OnDevice))

                //Mesh m = FDeviceMeshes[OnDevice];
                //if (m != null)
                //	MeshPointer = m.ComPointer.ToInt32();
                return FDeviceMeshes[OnDevice];
            else
                return null;
        }
Пример #14
0
        public void CreateMeshOutput(string Name, TSliceMode SliceMode, TPinVisibility Visibility, out IDXMeshOut Pin)
        {
            Pin = new TMeshPin(this, Name, TPinDirection.Output, SliceMode, Visibility);

            AddPin(Pin as TBasePin);
        }
Пример #15
0
 public void GetMesh(IDXMeshOut ForPin, int OnDevice, out int mesh)
 {
     mesh = 0;
     //in case the plugin has several mesh outputpins a test for the pin can be made here to get the right mesh.
     if (ForPin == this.FPinOutMesh)
     {
         if (this.FMeshes.ContainsKey(OnDevice))
         {
             //this.FLogger.Log(LogType.Debug,this.FMeshes[OnDevice].ComPointer.ToInt32().ToString());
             mesh = this.FMeshes[OnDevice].ComPointer.ToInt32();
         }
     }
 }