Expose FBOs to engine code.

This commit is contained in:
Paul Chote
2013-06-07 22:20:19 +12:00
parent 0e1c12131a
commit 4c8c010506
7 changed files with 145 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ namespace OpenRA.FileFormats.Graphics
IVertexBuffer<Vertex> CreateVertexBuffer( int length );
ITexture CreateTexture( Bitmap bitmap );
ITexture CreateTexture();
IFrameBuffer CreateFrameBuffer(Size s);
IShader CreateShader( string name );
Size WindowSize { get; }
@@ -81,6 +82,13 @@ namespace OpenRA.FileFormats.Graphics
void SetData(byte[] colors, int width, int height);
}
public interface IFrameBuffer
{
void Bind();
void Unbind();
ITexture Texture { get; }
}
public enum PrimitiveType
{
PointList,