Beispiel #1
0
 public void Copy(Cubelet src)
 {
     for (int i = 0; i < 6; i++)
     {
         _sides[i][0] = src._sides[i][0];
         _sides[i][1] = src._sides[i][1];
         _sides[i][2] = src._sides[i][2];
     }
 }
Beispiel #2
0
        public Cube3D(GL gl)
        {
            this.gl = gl;
            _cubeX = _cubeY = _cubeZ = 0;
            for (int i = 0; i < 3; i++)
            {
                _rotateX[i] = _rotateY[i] = _rotateZ[i] = 0;
            }

            for (int i = 0; i < 3; i++)
            {
                for (int j = 0; j < 3; j++)
                {
                    for (int k = 0; k < 3; k++)
                    {
                        _cubelets[i, j, k] = new Cubelet(gl);
                        _savedCubes[i, j, k] = new Cubelet(gl);
                    }
                }
            }

            Reset();
        }