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