Пример #1
0
 public virtual void Delete()
 {
     if (Id == null)
     {
         return;
     }
     GlProtection.Protect(DeleteElement);
     Id = null;
 }
Пример #2
0
 protected void Create()
 {
     GlProtection.Protect(() => Id = CreateElement());
 }
Пример #3
0
 public void SetPointer(int stride)
 {
     GlProtection.Protect(() => GL.VertexAttribPointer(Index, Count, (VertexAttribPointerType)Type, Normalized, stride, Offset));
 }