Esempio n. 1
0
        public Block(GraphicsDevice graphicsDevice, IntPoint3D position)
        {
            this.graphicsDevice = graphicsDevice;

            Position = position.ToVector() * BlockSize;

            vertices = CubeFactory.GetCube(BlockSize, IntPoint3D.GetNeighbourPositions());

            effect = new BasicEffect(graphicsDevice);
        }
Esempio n. 2
0
 public static VertexPositionColor[] GetCubeWithDefaultFaces(int size)
 {
     return(GetCube(size, IntPoint3D.GetNeighbourPositions()));
 }