Esempio n. 1
0
		public void Create(Raster.Image image)
		{
			this.SetFormat(image);
			this.Use();
			this.Create(image.Pointer);
			this.UnUse();
		}
Esempio n. 2
0
		public void Load(Raster.Image image, Geometry2D.Integer.Point offset)
		{
			TextureType type = this.Context.GetTextureType(image);
			this.Use();
			this.Load(image.Pointer, new Geometry2D.Integer.Box(offset, image.Size), type);
			this.UnUse();
		}
Esempio n. 3
0
		void SetFormat(Raster.Image image)
		{
			TextureType type;
			if (image is Raster.Bgra)
				type = TextureType.Rgba;
			else if (image is Raster.Bgr)
				type = TextureType.Rgb;
			else
				type = TextureType.Monochrome;
			this.SetFormat(type, image.Size);
		}