Exemple #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);
        }
Exemple #2
0
 public static VertexPositionColor[] GetCubeWithDefaultFaces(int size)
 {
     return(GetCube(size, IntPoint3D.GetNeighbourPositions()));
 }