Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateIndexData()

static short[] Microsoft.Xna.Framework.Graphics.SpriteBatch.CreateIndexData ( )
inlinestaticprivate

Definition at line 186 of file SpriteBatch.cs.

187 {
188 short[] array = new short[12288];
189 for (int i = 0; i < 2048; i++)
190 {
191 array[i * 6] = (short)(i * 4);
192 array[i * 6 + 1] = (short)(i * 4 + 1);
193 array[i * 6 + 2] = (short)(i * 4 + 2);
194 array[i * 6 + 3] = (short)(i * 4);
195 array[i * 6 + 4] = (short)(i * 4 + 2);
196 array[i * 6 + 5] = (short)(i * 4 + 3);
197 }
198 return array;
199 }

References System.array.

Referenced by Microsoft.Xna.Framework.Graphics.SpriteBatch.AllocateBuffers().