void AddSentanceBlock (TextureHandle handle, Vector4 fontColor, Matrix4 transform) { var block = new SentanceBlock { Colour = fontColor, Transform = transform, Handle = handle, }; Blocks.Add (block); }
public void RenderChunk (TextureHandle handle, Vector4 fontColor, Matrix4 transform, uint noOfVertices, List<float> vertexChunk, List<uint> indicesChunk) { uint firstIndex = (uint)mIndices.Count; uint baseVertex = mTotalVertices; uint currentBlock = (uint)Blocks.Count; AddVertices (vertexChunk); AddIndices (indicesChunk); AddDrawIDs (currentBlock); AddSentanceBlock (handle, fontColor, transform); AddDrawCommand (indicesChunk, firstIndex, baseVertex, currentBlock); mTotalVertices += noOfVertices; }