From 3749cb0bb7287a2473ce0aa6e899b915f1924ad8 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 20 Nov 2008 22:23:08 +0000 Subject: [PATCH] Added GenTexture and DeleteTexture helpers for single textures. --- Source/OpenTK/Graphics/GL/GLHelper.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs index 15e6afde..3ddb68bd 100644 --- a/Source/OpenTK/Graphics/GL/GLHelper.cs +++ b/Source/OpenTK/Graphics/GL/GLHelper.cs @@ -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 } }