Example #1
0
        public GeometryManager(SurfaceManager surfaces)
        {
            this.Primitives = new PrimitiveGeometry(surfaces.Primitives);

            var font = Font.FromJsonFile("data/fonts/inconsolata.json");

            this.Text = new FontGeometry(surfaces.Text, font)
            {
                SizeCoefficient = new Vector2(1, -1)
            };
        }
        public GeometryManager(SurfaceManager surfaces)
        {
            this.Primitives = new PrimitiveGeometry(surfaces.Primitives);

            var font = Font.FromJsonFile("data/fonts/inconsolata.json");

            this.Text = new FontGeometry(surfaces.Text, font)
            {
                SizeCoefficient = new Vector2(1, -1)
            };

            this.Agents = new HeatmapGeometry(surfaces.Agents);

            this.Blueprint      = new Sprite2DGeometry(surfaces.Blueprint);
            this.Blueprint.Size = new Vector2(1.2f, -0.7f);
        }