Exemple #1
0
 public MultiVertexesDrawable(int mode, Vector2D[][] polygon)
 {
     if (polygon == null)
     {
         throw new ArgumentNullException("vertexes");
     }
     this.buffer = new MultiARBArrayBuffer <Vector2D>(polygon, Vector2D.Size);
     this.mode   = mode;
 }
Exemple #2
0
 public Colored4MultiVertexesDrawable(int mode, Vector2D[][] vertexes, ScalarColor4[][] colors)
 {
     if (vertexes == null)
     {
         throw new ArgumentNullException("vertexes");
     }
     if (colors == null)
     {
         throw new ArgumentNullException("colors");
     }
     if (colors.Length != vertexes.Length)
     {
         throw new ArgumentException("TODO length !=");
     }
     this.vertexes = new MultiARBArrayBuffer <Vector2D>(vertexes, Vector2D.Size);
     this.colors   = new MultiARBArrayBuffer <ScalarColor4>(colors, ScalarColor4.Size);
     this.mode     = mode;
 }