コード例 #1
0
        internal PixelProcessingUnitContext(IRandomAccessMemory mainMemory)
        {
            _mainMemory = mainMemory;

            _stateMachine = new PPUStateMachine(this);

            SpriteTable       = new SpriteTable();
            _spritesToBeDrawn = new List <Sprite>();

            FirstTileMap  = new byte[32 * 32];
            SecondTileMap = new byte[32 * 32];
            TileData      = new byte[6144];

            _screenBuffer0 = new byte[Common.Constants.Video.ScreenWidth * Common.Constants.Video.ScreenHeight * 3];
            _screenBuffer1 = new byte[Common.Constants.Video.ScreenWidth * Common.Constants.Video.ScreenHeight * 3];

            LcdControl = 0x91;
        }
コード例 #2
0
 public OamScanState(PixelProcessingUnitContext context, PPUStateMachine stateMachine)
     : base(context, stateMachine)
 {
 }
コード例 #3
0
 public PixelWritingState(PixelProcessingUnitContext context, PPUStateMachine stateMachine)
     : base(context, stateMachine)
 {
 }