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