コード例 #1
0
        public void StartEmulator(IRenderer Renderer)
        {
            System.Action OnRenderFrame = () => {
                this.framesRendered++;
            };
            System.Action OnPresent = () => {
            };

            this.arm7         = new Arm7Processor(this.memory);
            this.videoManager = new VideoManager(this.memory, Renderer, OnRenderFrame, OnPresent);
            this.soundManager = new SoundManager(this.memory, 44100);


            this.iterations = 0;
            this.ResetTimeSecs();

            vramCycles = 0;
            inHblank   = false;
        }
コード例 #2
0
        public GbaManager(CoreComm comm)
        {
            _corecomm = comm;

            this.memory              = new Memory();
            this.arm7                = new Arm7Processor(this.memory);
            this.videoManager        = new VideoManager(this);
            this.videoManager.Memory = this.memory;
            this.soundManager        = new SoundManager(this.memory, 44100);

            this.framesRendered = 0;
            Renderer renderer = new Renderer();

            renderer.Initialize(null);
            VideoManager.Renderer = renderer;

            videoManager.Presenter = delegate(uint[] data)
            {
                Buffer.BlockCopy(data, 0, this.vbuf, 0, 240 * 160 * 4);
            };
        }
コード例 #3
0
ファイル: GbaManager.cs プロジェクト: CadeLaRen/BizHawk
		public GbaManager(CoreComm comm)
		{
			_corecomm = comm;

			this.memory = new Memory();
			this.arm7 = new Arm7Processor(this.memory);
			this.videoManager = new VideoManager(this);
			this.videoManager.Memory = this.memory;
			this.soundManager = new SoundManager(this.memory, 44100);
		
			this.framesRendered = 0;
			Renderer renderer = new Renderer();
			renderer.Initialize(null);
			VideoManager.Renderer = renderer;

			videoManager.Presenter = delegate(uint[] data)
			{
				Buffer.BlockCopy(data, 0, this.vbuf, 0, 240 * 160 * 4);
			};
		}