Exemple #1
0
        public CubeDrawer(Game game, float heightOfCubes) : base(game)
        {
            HeightOfCubes = heightOfCubes;

            cubeMeshPart = Cube.LoadModel(Game.GraphicsDevice);
            cubeEffect   = new CubeEffect(Game); /*DESIGN: Content better handler, not here*/
            cubeScale    = Matrix.CreateScale(heightOfCubes);
        }
        public CubeChunkDrawer(Game game, float heightOfCubes) : base(game)
        {
            CubeHeight = heightOfCubes;

            cubeMeshPart = Cube.LoadModel(Game.GraphicsDevice);
            cubeEffect   = new CubeEffect(Game);
            cubeScale    = Matrix.CreateScale(CubeHeight);
        }
Exemple #3
0
 public CubeChunkGrid(Nocubeless nocubeless) : base(nocubeless)
 {
     cubeEffect = new CubeEffect(Game);
 }