Rename uniform setters to avoid future ambiguity.

This commit is contained in:
Paul Chote
2013-03-02 10:33:05 +13:00
parent 2f3def3f86
commit 786c3b1f1a
7 changed files with 18 additions and 17 deletions

View File

@@ -132,15 +132,16 @@ namespace OpenRA.Renderer.Glsl
ErrorHandler.CheckGlError();
}
public void SetValue(string name, ITexture t)
public void SetTexture(string name, ITexture t)
{
if( t == null ) return;
if (t == null)
return;
int texUnit;
if( samplers.TryGetValue( name, out texUnit ) )
if (samplers.TryGetValue(name, out texUnit))
textures[texUnit] = t;
}
public void SetValue(string name, float x, float y)
public void SetVec(string name, float x, float y)
{
Gl.glUseProgramObjectARB(program);
ErrorHandler.CheckGlError();