Texture changes:

* The GL texture id is now readonly.
* Added Size property.
* Added GetData() for reading data back from the GPU.
* Added SetEmpty() for creating an empty texture of a given size.
This commit is contained in:
Paul Chote
2013-06-08 11:39:27 +12:00
parent 4c8c010506
commit 22e6966c8e
5 changed files with 44 additions and 4 deletions

View File

@@ -80,6 +80,8 @@ namespace OpenRA.FileFormats.Graphics
void SetData(Bitmap bitmap);
void SetData(uint[,] colors);
void SetData(byte[] colors, int width, int height);
byte[] GetData();
Size Size { get; }
}
public interface IFrameBuffer