moved text rendering into renderer dll.

This commit is contained in:
Bob
2010-02-20 21:10:02 +13:00
parent b519f2bace
commit 7e28f28fae
5 changed files with 90 additions and 69 deletions

View File

@@ -25,7 +25,7 @@ namespace OpenRa.FileFormats.Graphics
IVertexBuffer<Vertex> CreateVertexBuffer( int length );
IIndexBuffer CreateIndexBuffer( int length );
ITexture CreateTexture( Bitmap bitmap );
IFont CreateFont( string filename );
IShader CreateShader( Stream stream );
Size WindowSize { get; }
@@ -67,6 +67,13 @@ namespace OpenRa.FileFormats.Graphics
void SetData( Bitmap bitmap );
}
public interface IFont
{
void DrawText( string text, int2 pos, Color c );
int2 Measure( string text );
}
public enum PrimitiveType
{
PointList,