コード例 #1
0
ファイル: Video.cs プロジェクト: Silenthal/gbemu
 private void InitializePalettes()
 {
     BackgroundPaletteData = 0xFC;
     ObjectPalette0Data = 0xFF;
     ObjectPalette1Data = 0xFF;
     BGPalette_DMG = new BGRAColor[4];
     DMGObjectPalettes = new BGRAColor[2][];
     DMGObjectPalettes[0] = new BGRAColor[4];
     DMGObjectPalettes[0][0] = DMGPredefColor.Colors[0];
     DMGObjectPalettes[1] = new BGRAColor[4];
     DMGObjectPalettes[1][0] = DMGPredefColor.Colors[0];
     UpdateBackgroundPalette();
     UpdateObjectPalette0();
     UpdateObjectPalette1();
 }
コード例 #2
0
ファイル: Video.cs プロジェクト: Silenthal/gbemu
 private void InitializePalettes()
 {
     BackgroundPaletteData = 0xFC;
     ObjectPalette0Data = 0xFF;
     ObjectPalette1Data = 0xFF;
     BGPalette_DMG = new BGRAColor[4];
     DMGObjectPalettes = new BGRAColor[2][];
     DMGObjectPalettes[0] = new BGRAColor[4];
     DMGObjectPalettes[0][0] = DMGPredefColor.Colors[0];
     DMGObjectPalettes[1] = new BGRAColor[4];
     DMGObjectPalettes[1][0] = DMGPredefColor.Colors[0];
     UpdateBackgroundPalette();
     UpdateObjectPalette0();
     UpdateObjectPalette1();
 }
コード例 #3
0
ファイル: Video.cs プロジェクト: Silenthal/gbemu
 /// <summary>
 /// Sets a pixel on the main screen.
 /// </summary>
 /// <param name="x">The X position of the pixel.</param>
 /// <param name="y">The Y position of the pixel.</param>
 /// <param name="color">The color of the pixel.</param>
 private void SetPixel(int x, int y, BGRAColor color)
 {
     LCDMap[(y * LCDStride) + x] = color.Value;
 }
コード例 #4
0
ファイル: Video.cs プロジェクト: Silenthal/gbemu
 /// <summary>
 /// Sets a pixel on the main screen.
 /// </summary>
 /// <param name="x">The X position of the pixel.</param>
 /// <param name="y">The Y position of the pixel.</param>
 /// <param name="color">The color of the pixel.</param>
 private void SetPixel(int x, int y, BGRAColor color)
 {
     LCDMap[(y * LCDStride) + x] = color.Value;
 }