Support additive blending for D2K explosions.

This commit is contained in:
Paul Chote
2013-08-14 17:00:57 +12:00
parent 2b6b212d02
commit a1dd7cff7b
9 changed files with 55 additions and 26 deletions

View File

@@ -32,6 +32,8 @@ namespace OpenRA.FileFormats.Graphics
IGraphicsDevice Create( Size size, WindowMode windowMode );
}
public enum BlendMode { None, Alpha, Additive }
public interface IGraphicsDevice
{
IVertexBuffer<Vertex> CreateVertexBuffer( int length );
@@ -55,8 +57,7 @@ namespace OpenRA.FileFormats.Graphics
void EnableDepthBuffer();
void DisableDepthBuffer();
void EnableAlphaBlending();
void DisableAlphaBlending();
void SetBlendMode(BlendMode mode);
}
public interface IVertexBuffer<T>