private SpriteBatchItem CreateBatchItem(Color Tint, int texId, float Depth) { // allocate 4 vertices for this quad, and set the batch pointer to the right offset. var bi = new SpriteBatchItem() { Tint = Tint, TextureID = texId, Depth = Depth, VertexBase = _vertexArray.Count }; _vertexArray.AddN(4); return(bi); }