public WireframeNormalRenderer(Game game, EnvironmentRenderer environment) : base(game)
        {
            this.environment   = environment;
            _vertexDeclaration = new VertexDeclaration(VertexPositionNormalColored.VertexElements);

            EnabledChanged += EnabledToggled;
            Disposed       += (sender, args) => ClearBuffers();
        }
        public WireframeNormalRenderer(Game game, EnvironmentRenderer environment)
            : base(game)
        {
            this.environment = environment;
            _vertexDeclaration = new VertexDeclaration(VertexPositionNormalColored.VertexElements);

            EnabledChanged += EnabledToggled;
            Disposed += (sender, args) => ClearBuffers();
        }
示例#3
0
        public TileRenderer(Game game, TerrainTile tile) : base(game)
        {
            environs = new EnvironmentRenderer(game, tile);
            normals = new WireframeNormalRenderer(game, environs);
            liquids = new LiquidRenderer(game, tile);
            solidNavMesh = new SolidNavMeshRenderer(game, tile);
            wiredNavMesh = new WireframeNavMeshRenderer(game, tile);

            Game.Components.Add(environs);
            Game.Components.Add(normals);
            Game.Components.Add(liquids);
            Game.Components.Add(solidNavMesh);
            Game.Components.Add(wiredNavMesh);
            
            Disposed += (sender, args) => Cleanup();
            EnabledChanged += (sender, args) => EnabledToggled();
        }
示例#4
0
        public TileRenderer(Game game, TerrainTile tile) : base(game)
        {
            environs     = new EnvironmentRenderer(game, tile);
            normals      = new WireframeNormalRenderer(game, environs);
            liquids      = new LiquidRenderer(game, tile);
            solidNavMesh = new SolidNavMeshRenderer(game, tile);
            wiredNavMesh = new WireframeNavMeshRenderer(game, tile);

            Game.Components.Add(environs);
            Game.Components.Add(normals);
            Game.Components.Add(liquids);
            Game.Components.Add(solidNavMesh);
            Game.Components.Add(wiredNavMesh);

            Disposed       += (sender, args) => Cleanup();
            EnabledChanged += (sender, args) => EnabledToggled();
        }