Beispiel #1
0
 public void SetPointer(OpenTK.Graphics.OpenGL.ArrayCap type, int nel, int stride, int offset)
 {
     pointers[type] = new vpoint()
     {
         size = nel, stride = stride, offset = offset
     };
 }
Beispiel #2
0
 public void ArrayEnabled(OpenTK.Graphics.OpenGL.ArrayCap type, bool enabled)
 {
     if (!enabled)
     {
         enables.Remove(type);
     }
     else if (enables.ContainsKey(type))
     {
         throw new ArgumentException();
     }
     else
     {
         enables.Add(type, new object());
     }
 }