protected override void Initialize() { //Test_Time_Per_Style(); int x = 33; int y = x % 20; y = 1357 % 512; y = 583 % 499; DebugWindow.Initialise(this, graphics, spriteBatch); BuildTexture_Multitask = delegate() { GenerateTexture .Generate_Texture2D(); }; Make_FieldSet_Copy = delegate() { GenerateTexture.Update_NewFieldSet(); }; DoInitializeQuilt(); DoInitializeHexagon(); DoInitializeIcon1(); DoInitializeIcon3(); SetColors(true); mcount = new int[Width, Height]; freshFrame[0] = new Texture2D(GraphicsDevice, Width, Height); freshFrame[1] = new Texture2D(GraphicsDevice, Width, Height); freshFrame[0].SetData(new Color[Width * Height]); freshFrame[1].SetData(new Color[Width * Height]); itsPerFrame = _itersPerFrame; base.Initialize(); }
protected override void LoadContent() { font = Content.Load <SpriteFont>("Overlay"); TextHeight = (int)font.MeasureString("0").Y - 5; _1by1 = new Texture2D(GraphicsDevice, 1, 1); _1by1.SetData(new Color[1] { Color.White }); ColourScale = Catmul_Spline.Catmul_Init(graphics, _numColors); GenerateTexture.Initialise(_numColors, fieldN); }
private void QuickReset() { midX = _screenWid / 2 - Width / 2; midY = _screenHit / 2 - Height / 2; FirstPass = true; isPaused = false; fieldNscale = 1; MaxHitCount = 0; field = new float[fieldN, fieldN]; iterates = 0; oldIterates = 0; Randomized_Tries = 0; iterateGenerateFrame = NewFieldSetAvailable = false; GenerateTexture.Initialise(_numColors, fieldN); itsPerFrame = _itersPerFrame; frameCount = 0; }