コード例 #1
0
ファイル: Main.cs プロジェクト: Authgaron/SOMclustering
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            logfont = Content.Load<SpriteFont>("logfont");
            // TODO: use this.Content to load your game content here

            log = new Log(new Rectangle(600,0,300,500), logfont, Color.Green, Color.Black);
            GetData.readFiles();
            int dimensions = GetData.inputs[0].Count;
            int numpoints = 2;

            g = new Thread(delegate() { grid = new Grid(numpoints, dimensions, new Rectangle(50, 50, 400, 400)); });
            g.Start();
            buttons = new Buttons(dimensions, new Rectangle(500, 0, 100, 500));
            t = new Thread(delegate() { while (true) { buttons.Update(); } });
            t.Start();
        }
コード例 #2
0
ファイル: Grid.cs プロジェクト: Authgaron/SOMclustering
 public Grid Reset()
 {
     Grid newgrid = new Grid(gridsize, gdimensions, new Rectangle((int)topleft.X, (int)topleft.Y, (int)rdimensions.X, (int)rdimensions.Y));
     return newgrid;
 }