Exemplo n.º 1
0
		public TestImage2(string filename)
		{
			if (Effect == null)
			{
				Effect = SharedEffects.Effects["Imposter2"] as ImposterEffect2;
			}

			m_Filename = filename; 
		}
Exemplo n.º 2
0
		public Imposter2(int width, int height, Format format, Color4 background, ImposterOverlayType overlayType)
		{
			if (Effect == null)
			{
				Effect = SharedEffects.Effects["Imposter2"] as ImposterEffect2; 
			}

			m_Disposed = true;
			m_BackupState = new RenderTargetBackupState();
			m_ImposterView = new View2D(new System.Drawing.Rectangle(0, 0, width, height), width, height);
			m_Format = format;
			m_Background = background;
			m_OverlayType = overlayType; 
		}