Added GenTexture and DeleteTexture helpers for single textures.

This commit is contained in:
the_fiddler 2008-11-20 22:23:08 +00:00
parent dbfe063aee
commit 3749cb0bb7

View file

@ -943,6 +943,26 @@ namespace OpenTK.Graphics
#endregion
#region public static int GenTexture()
public static int GenTexture()
{
int id;
GenTextures(1, out id);
return id;
}
#endregion
#region public static void DeleteTexture(int id)
public static void DeleteTexture(int id)
{
DeleteTextures(1, ref id);
}
#endregion
#endregion
}
}