diff --git a/OpenRA.Renderer.Cg/GraphicsDevice.cs b/OpenRA.Renderer.Cg/GraphicsDevice.cs index 1688bb498c..43260fe5dc 100755 --- a/OpenRA.Renderer.Cg/GraphicsDevice.cs +++ b/OpenRA.Renderer.Cg/GraphicsDevice.cs @@ -300,24 +300,11 @@ namespace OpenRA.Renderer.Cg throw new NotImplementedException(); } - static int IndicesPerPrimitive( PrimitiveType pt ) - { - switch( pt ) - { - case PrimitiveType.PointList: return 1; - case PrimitiveType.LineList: return 2; - case PrimitiveType.TriangleList: return 3; - case PrimitiveType.QuadList: return 4; - } - throw new NotImplementedException(); - } - public IVertexBuffer CreateVertexBuffer( int size ) { return new VertexBuffer( this, size ); } public ITexture CreateTexture() { return new Texture( this ); } public ITexture CreateTexture( Bitmap bitmap ) { return new Texture( this, bitmap ); } public IShader CreateShader( string name ) { return new Shader( this, name ); } - public int GpuMemoryUsed { get { return 0; } } } } diff --git a/OpenRA.Renderer.Gl/GraphicsDevice.cs b/OpenRA.Renderer.Gl/GraphicsDevice.cs index 624e774da6..deee2f97e6 100755 --- a/OpenRA.Renderer.Gl/GraphicsDevice.cs +++ b/OpenRA.Renderer.Gl/GraphicsDevice.cs @@ -299,18 +299,6 @@ namespace OpenRA.Renderer.Glsl throw new NotImplementedException(); } - static int IndicesPerPrimitive( PrimitiveType pt ) - { - switch( pt ) - { - case PrimitiveType.PointList: return 1; - case PrimitiveType.LineList: return 2; - case PrimitiveType.TriangleList: return 3; - case PrimitiveType.QuadList: return 4; - } - throw new NotImplementedException(); - } - public IVertexBuffer CreateVertexBuffer( int size ) { return new VertexBuffer( this, size ); } public ITexture CreateTexture() { return new Texture( this ); } public ITexture CreateTexture( Bitmap bitmap ) { return new Texture( this, bitmap ); }