remove IShader.Commit
This commit is contained in:
@@ -64,7 +64,6 @@ namespace OpenRA.FileFormats.Graphics
|
|||||||
{
|
{
|
||||||
void SetValue( string name, float x, float y );
|
void SetValue( string name, float x, float y );
|
||||||
void SetValue( string param, ITexture texture );
|
void SetValue( string param, ITexture texture );
|
||||||
void Commit();
|
|
||||||
void Render( Action a );
|
void Render( Action a );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ namespace OpenRA.Graphics
|
|||||||
s.SetValue( "Scroll", (int) scroll.X, (int) scroll.Y );
|
s.SetValue( "Scroll", (int) scroll.X, (int) scroll.Y );
|
||||||
s.SetValue( "r1", r1.X, r1.Y );
|
s.SetValue( "r1", r1.X, r1.Y );
|
||||||
s.SetValue( "r2", r2.X, r2.Y );
|
s.SetValue( "r2", r2.X, r2.Y );
|
||||||
s.Commit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void EndFrame( IInputHandler inputHandler )
|
public void EndFrame( IInputHandler inputHandler )
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ using System;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.FileFormats.Graphics;
|
using OpenRA.FileFormats.Graphics;
|
||||||
using Tao.Cg;
|
|
||||||
|
|
||||||
namespace OpenRA.Renderer.Cg
|
namespace OpenRA.Renderer.Cg
|
||||||
{
|
{
|
||||||
@@ -81,7 +80,5 @@ namespace OpenRA.Renderer.Cg
|
|||||||
if (param != IntPtr.Zero)
|
if (param != IntPtr.Zero)
|
||||||
Tao.Cg.CgGl.cgGLSetParameter2f(param, x, y);
|
Tao.Cg.CgGl.cgGLSetParameter2f(param, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Commit() { }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,12 +9,12 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.FileFormats.Graphics;
|
using OpenRA.FileFormats.Graphics;
|
||||||
using Tao.OpenGl;
|
using Tao.OpenGl;
|
||||||
using System.Text;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace OpenRA.Renderer.Glsl
|
namespace OpenRA.Renderer.Glsl
|
||||||
{
|
{
|
||||||
@@ -141,7 +141,5 @@ namespace OpenRA.Renderer.Glsl
|
|||||||
Gl.glUniform2fARB(param,x,y);
|
Gl.glUniform2fARB(param,x,y);
|
||||||
GraphicsDevice.CheckGlError();
|
GraphicsDevice.CheckGlError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Commit() { }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user