public void SetPixels(CubeTexture texture, CubeMapFace face, System.Drawing.Bitmap bitmap) { System.Drawing.Imaging.BitmapData bmpdata = bitmap.LockBits( new System.Drawing.Rectangle(0, 0, bitmap.Size.Width, bitmap.Size.Height), System.Drawing.Imaging.ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb); try { ThrowIfFailed(RenderDevice_SetCubePixels(Handle, texture.Handle, face, bmpdata.Scan0)); } finally { bitmap.UnlockBits(bmpdata); } }
public void CopyTexture(CubeTexture dst, CubeMapFace face) { ThrowIfFailed(RenderDevice_CopyTexture(Handle, dst.Handle, face)); }