mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-21 07:47:49 +00:00
Added GenTexture and DeleteTexture helpers for single textures.
This commit is contained in:
parent
5f483b5298
commit
03fabcfb91
|
@ -943,6 +943,26 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
#endregion
|
#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
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue