public Colored3MultiVertexesDrawable(int mode, Vector2D[][] vertexes, ScalarColor3[][] 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<ScalarColor3>(colors, ScalarColor3.Size); this.mode = mode; }
public MultiVertexesDrawable(int mode,Vector2D[][] polygon) { if (polygon == null) { throw new ArgumentNullException("vertexes"); } this.buffer = new MultiARBArrayBuffer<Vector2D>(polygon, Vector2D.Size); this.mode = mode; }