remove IShader.Commit

This commit is contained in:
Chris Forbes
2011-04-30 14:29:32 +12:00
parent 279413f05b
commit 7155747337
4 changed files with 2 additions and 9 deletions

View File

@@ -64,7 +64,6 @@ namespace OpenRA.FileFormats.Graphics
{
void SetValue( string name, float x, float y );
void SetValue( string param, ITexture texture );
void Commit();
void Render( Action a );
}

View File

@@ -89,7 +89,6 @@ namespace OpenRA.Graphics
s.SetValue( "Scroll", (int) scroll.X, (int) scroll.Y );
s.SetValue( "r1", r1.X, r1.Y );
s.SetValue( "r2", r2.X, r2.Y );
s.Commit();
}
public void EndFrame( IInputHandler inputHandler )

View File

@@ -12,7 +12,6 @@ using System;
using System.IO;
using OpenRA.FileFormats;
using OpenRA.FileFormats.Graphics;
using Tao.Cg;
namespace OpenRA.Renderer.Cg
{
@@ -81,7 +80,5 @@ namespace OpenRA.Renderer.Cg
if (param != IntPtr.Zero)
Tao.Cg.CgGl.cgGLSetParameter2f(param, x, y);
}
public void Commit() { }
}
}

View File

@@ -9,12 +9,12 @@
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using OpenRA.FileFormats;
using OpenRA.FileFormats.Graphics;
using Tao.OpenGl;
using System.Text;
using System.Collections.Generic;
namespace OpenRA.Renderer.Glsl
{
@@ -141,7 +141,5 @@ namespace OpenRA.Renderer.Glsl
Gl.glUniform2fARB(param,x,y);
GraphicsDevice.CheckGlError();
}
public void Commit() { }
}
}