All pastes #82867 Raw Edit

Untitled

public text v1 · immutable
·published 2006-07-09 00:48 UTC
rendered paste body
int[] array = new int[6];

                    array[0] = ((y * (gridWidth + 1)) + (x + 1)); //6
                    array[1] = (((y * (gridWidth + 1)) + x)); //5 
                    array[2] = (((y + 1) * (gridWidth + 1)) + x); //9
                    
                    array[3] = (((y + 1) * (gridWidth + 1)) + x); //9
                    array[4] = (((y + 1) * (gridWidth + 1)) + x + 1); //10  
                    array[5] = ((y * (gridWidth + 1)) + (x + 1)); //6

                    GraphicsStream stm = ibs[tex][orientation].Lock(0, 0, LockFlags.None);

                    stm.Position = start * 4;

                    stm.Write(array);

                    ibs[tex][orientation].Unlock();