Ejemplo n.º 1
0
        public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
        {
            Mesh mesh = null;

            FDeviceMeshes.TryGetValue(OnDevice, out mesh);
            return(mesh);
        }
Ejemplo n.º 2
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (FDeviceData.ContainsKey(OnDevice))
     {
         return(FDeviceData[OnDevice].Data);
     }
     return(null);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public MeshOutStream(IInternalPluginHost host, OutputAttribute attribute)
 {
     FInternalMeshOut = host.CreateMeshOutput2(
         this,
         attribute.Name,
         (TSliceMode)attribute.SliceMode,
         (TPinVisibility)attribute.Visibility
         );
 }
Ejemplo n.º 5
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMeshes.ContainsKey(OnDevice))
     {
        return this.FMeshes[OnDevice];
     }
     else
         return null;
 }
Ejemplo n.º 6
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMesh != null)
     {
         return(this.FMesh);
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 7
0
 public Mesh GetMesh(IDXMeshOut ForPin, Device OnDevice)
 {
     if (this.FMeshes.ContainsKey(OnDevice))
     {
         return(this.FMeshes[OnDevice]);
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 13
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

            //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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
         }
     }
 }