/// <summary>
 /// Deletes a single GL texture
 /// </summary>
 public virtual void DeleteTexture(int par1)
 {
     TextureNameToImageMap.RemoveObject(par1);
     SingleIntBuffer.Clear();
     SingleIntBuffer.Put(par1);
     SingleIntBuffer.Flip();
     //GL.DeleteTextures(SingleIntBuffer);
 }
        public virtual Entity RemoveEntityFromWorld(int par1)
        {
            Entity entity = (Entity)EntityHashSet.RemoveObject(par1);

            if (entity != null)
            {
                EntityList.Remove(entity);
                SetEntityDead(entity);
            }

            return(entity);
        }