Make the underlying types of TextureChannel and BlendMode enums a byte to save memory.

This commit is contained in:
RoosterDragon
2014-11-22 18:12:46 +00:00
parent 20fdd1ccb5
commit 35da7d8a6e
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA
IGraphicsDevice Create(Size size, WindowMode windowMode);
}
public enum BlendMode { None, Alpha, Additive, Subtractive, Multiply }
public enum BlendMode : byte { None, Alpha, Additive, Subtractive, Multiply }
public interface IGraphicsDevice : IDisposable
{

View File

@@ -47,7 +47,7 @@ namespace OpenRA.Graphics
}
}
public enum TextureChannel
public enum TextureChannel : byte
{
Red = 0,
Green = 1,