public virtual void Delete() { if (Id == null) { return; } GlProtection.Protect(DeleteElement); Id = null; }
protected void Create() { GlProtection.Protect(() => Id = CreateElement()); }
public void SetPointer(int stride) { GlProtection.Protect(() => GL.VertexAttribPointer(Index, Count, (VertexAttribPointerType)Type, Normalized, stride, Offset)); }