Texture changes:
* The GL texture id is now readonly. * Added Size property. * Added GetData() for reading data back from the GPU. * Added SetEmpty() for creating an empty texture of a given size.
This commit is contained in:
@@ -72,7 +72,7 @@ namespace OpenRA.Renderer.Cg
|
||||
var texture = (Texture)t;
|
||||
var param = Tao.Cg.Cg.cgGetNamedEffectParameter(effect, name);
|
||||
if (param != IntPtr.Zero && texture != null)
|
||||
Tao.Cg.CgGl.cgGLSetupSampler(param, texture.texture);
|
||||
Tao.Cg.CgGl.cgGLSetupSampler(param, texture.ID);
|
||||
}
|
||||
|
||||
public void SetVec(string name, float x)
|
||||
|
||||
Reference in New Issue
Block a user