コード例 #1
0
ファイル: GLTexture.cs プロジェクト: KingAtreyu/super-sawndz
 private unsafe void ClearTexture(GLContext context)
 {
     if (_texId != 0)
     {
         uint id = _texId;
         context.glDeleteTextures(1, &id);
         _texId = 0;
     }
 }
コード例 #2
0
ファイル: GLTexture.cs プロジェクト: KingAtreyu/super-sawndz
 public unsafe void Delete()
 {
     if ((_context != null) && (_id != 0))
     {
         uint id = _id;
         _context.glDeleteTextures(1, &id);
         _id      = 0;
         _context = null;
     }
 }