Exemple #1
0
        public void initRenderer(GraphicsDevice graphicsDevice)
        {
            if (this.renderer == null)
            {
                this.renderer = new ChunkRenderer(graphicsDevice, this);
            }

            this.renderer.createVertices();
        }
Exemple #2
0
        public void initRenderer(GraphicsDevice graphicsDevice, bool testVertices)
        {
            if (this.renderer == null)
            {
                this.renderer = new ChunkRenderer(graphicsDevice, this);
            }

            if (testVertices)
            {
                this.renderer.createTestVertices();
            }
            else
            {
                this.renderer.createVertices();
            }
        }