Exemplo n.º 1
0
        public static IDXTextureOut CreateTextureOutput(this IPluginHost host, OutputAttribute attribute, Type type)
        {
            IDXTextureOut result = null;

            host.CreateTextureOutput(attribute.Name, (TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result);
            result.Order = attribute.Order;
            return(result);
        }
Exemplo n.º 2
0
 public Texture GetTexture(IDXTextureOut ForPin, Device OnDevice, int Slice)
 {
     if (FDeviceData.ContainsKey(OnDevice))
     {
         return(FDeviceData[OnDevice].Data[Slice]);
     }
     return(null);
 }
Exemplo n.º 3
0
 public TextureOutStream(IInternalPluginHost host, OutputAttribute attribute)
 {
     FInternalTextureOut = host.CreateTextureOutput2(
         this,
         attribute.Name,
         (TSliceMode)attribute.SliceMode,
         (TPinVisibility)attribute.Visibility
         );
 }
Exemplo n.º 4
0
 public Texture GetTexture(IDXTextureOut ForPin, Device OnDevice, int Slice)
 {
     if (this.FDepthTex.ContainsKey(OnDevice))
     {
         return(this.FDepthTex[OnDevice]);
     }
     else
     {
         return(null);
     }
 }
		public Texture GetTexture(IDXTextureOut ForPin, Device OnDevice, int Slice)
		{
			if (ForPin == FOutColor)
				return FindTexture(FColorTexture, OnDevice);

			if (ForPin == FOutDepth)
				return FindTexture(FDepthTexture, OnDevice);

			if (ForPin == FOutWorld)
				return FindTexture(FWorldTexture, OnDevice);

			return null;
		}
Exemplo n.º 6
0
        EX9.Texture IPluginDXTexture2.GetTexture(IDXTextureOut pin, EX9.Device device, int slice)
        {
            var renderer = FWebRenderers[slice];

            return(renderer.GetTexture(device));
        }
		public void GetTexture(IDXTextureOut ForPin, int OnDevice, out int tex)
		{
			tex = 0;
			if (ForPin == this.FPinOutTexture)
			{	
				if (this.FTextures.ContainsKey(OnDevice))
				{
					tex = this.FTextures[OnDevice].ComPointer.ToInt32();
				}
			}

		}
Exemplo n.º 8
0
        public void CreateTextureOutput(string Name, TSliceMode SliceMode, TPinVisibility Visibility, out IDXTextureOut Pin)
        {
            Pin = new TTexturePin(this, Name, TPinDirection.Output, TSliceMode.Single, Visibility);

            AddPin(Pin as TBasePin);
        }
		public Texture GetTexture(IDXTextureOut ForPin, Device OnDevice, int Slice)
		{
			if (this.FDepthTex.ContainsKey(OnDevice))
			{
				return this.FDepthTex[OnDevice];
			}
			else
				return null;
		}