Exemple #1
0
 public Texture2d LoadTexture(sd.Bitmap bitmap)
 {
     var sdbmp = (sd.Bitmap)bitmap.Clone();
     TextureWrapper tw = new TextureWrapper();
     tw.SDBitmap = sdbmp;
     IntPtr id = GenTexture();
     ResourceIDs.Lookup[id.ToInt32()] = tw;
     return new Texture2d(this, id, null, bitmap.Width, bitmap.Height);
 }
Exemple #2
0
		public Texture2d LoadTexture(sd.Bitmap bitmap)
		{
			var sdbmp = (sd.Bitmap)bitmap.Clone();
			TextureWrapper tw = new TextureWrapper();
			tw.SDBitmap = sdbmp;
			return new Texture2d(this, tw, bitmap.Width, bitmap.Height);
		}