public Block(GraphicsDevice graphicsDevice, IntPoint3D position) { this.graphicsDevice = graphicsDevice; Position = position.ToVector() * BlockSize; vertices = CubeFactory.GetCube(BlockSize, IntPoint3D.GetNeighbourPositions()); effect = new BasicEffect(graphicsDevice); }
public static VertexPositionColor[] GetCubeWithDefaultFaces(int size) { return(GetCube(size, IntPoint3D.GetNeighbourPositions())); }