C# Class NesHd.Core.PPU.Ppu

Mostra file Open project: afonsof/nes-hd Class Usage Examples

Public Properties

Property Type Description
BackgroundClipping bool
BackgroundVisibility bool
CheckZapperHit bool
ColorEmphasis ushort
CurrentScanLine int
ExecuteNMIonVBlank bool
FixScroll bool
FixScroll2 bool
FixScroll3 bool
HScroll byte
IsMapperMirroring bool
MonochromeMode bool
Palette int[]
PatternTableAddress8X8Sprites int
PatternTableAddressBackground int
PpuToggle bool
ReloadBits2000 byte
ScanlineOfVblank int
ScanlinesPerFrame int
SprRam byte[]
Sprite0Hit bool
SpriteClipping bool
SpriteCrossed int
SpriteRamAddress byte
SpriteSize bool
SpriteVisibility bool
TileY int
VBits int
VBlank bool
VRam byte[]
VRamAddress ushort
VRamAddressIncrement int
VRamReadBuffer byte
VRamTemp ushort
VScroll int
ZapperFrame int
ZapperX int
ZapperY int

Public Methods

Method Description
DoScanline ( ) : bool

True when NMI is needed

GetX ( int offset, int desl, int multi ) : int
GetY ( int offset, int w, int multi ) : int
Ppu ( TvFormat tv, PaletteFormat paletteFormat, NesEngine engine ) : System.Drawing

The picture unit

Read2002 ( ) : byte
Read2004 ( ) : byte
Read2007 ( ) : byte
SetTvFormat ( TvFormat format, PaletteFormat plFormat ) : void
Write2000 ( byte value ) : void
Write2001 ( byte value ) : void
Write2003 ( byte value ) : void
Write2004 ( byte value ) : void
Write2005 ( byte value ) : void
Write2006 ( byte value ) : void
Write2007 ( byte value ) : void
Write4014 ( byte value ) : void

Private Methods

Method Description
Draw8X16Sprite ( int i, byte yCoordinate ) : void
Draw8X8Sprite ( int i, byte yCoordinate ) : void
DrawHdTile ( int i, int spriteOffset, int lineToDraw ) : bool
RenderBackground ( ) : void
RenderSprites ( int behind ) : void

Method Details

DoScanline() public method

True when NMI is needed
public DoScanline ( ) : bool
return bool

GetX() public method

public GetX ( int offset, int desl, int multi ) : int
offset int
desl int
multi int
return int

GetY() public method

public GetY ( int offset, int w, int multi ) : int
offset int
w int
multi int
return int

Ppu() public method

The picture unit
public Ppu ( TvFormat tv, PaletteFormat paletteFormat, NesEngine engine ) : System.Drawing
tv TvFormat The tv format
paletteFormat PaletteFormat Palette Format
engine NesEngine Engine NES
return System.Drawing

Read2002() public method

public Read2002 ( ) : byte
return byte

Read2004() public method

public Read2004 ( ) : byte
return byte

Read2007() public method

public Read2007 ( ) : byte
return byte

SetTvFormat() public method

public SetTvFormat ( TvFormat format, PaletteFormat plFormat ) : void
format TvFormat
plFormat PaletteFormat
return void

Write2000() public method

public Write2000 ( byte value ) : void
value byte
return void

Write2001() public method

public Write2001 ( byte value ) : void
value byte
return void

Write2003() public method

public Write2003 ( byte value ) : void
value byte
return void

Write2004() public method

public Write2004 ( byte value ) : void
value byte
return void

Write2005() public method

public Write2005 ( byte value ) : void
value byte
return void

Write2006() public method

public Write2006 ( byte value ) : void
value byte
return void

Write2007() public method

public Write2007 ( byte value ) : void
value byte
return void

Write4014() public method

public Write4014 ( byte value ) : void
value byte
return void

Property Details

BackgroundClipping public_oe property

public bool BackgroundClipping
return bool

BackgroundVisibility public_oe property

public bool BackgroundVisibility
return bool

CheckZapperHit public_oe property

public bool CheckZapperHit
return bool

ColorEmphasis public_oe property

public ushort ColorEmphasis
return ushort

CurrentScanLine public_oe property

public int CurrentScanLine
return int

ExecuteNMIonVBlank public_oe property

public bool ExecuteNMIonVBlank
return bool

FixScroll public_oe property

public bool FixScroll
return bool

FixScroll2 public_oe property

public bool FixScroll2
return bool

FixScroll3 public_oe property

public bool FixScroll3
return bool

HScroll public_oe property

public byte HScroll
return byte

IsMapperMirroring public_oe property

public bool IsMapperMirroring
return bool

MonochromeMode public_oe property

public bool MonochromeMode
return bool

Palette public_oe property

public int[] Palette
return int[]

PatternTableAddress8X8Sprites public_oe property

public int PatternTableAddress8X8Sprites
return int

PatternTableAddressBackground public_oe property

public int PatternTableAddressBackground
return int

PpuToggle public_oe property

public bool PpuToggle
return bool

ReloadBits2000 public_oe property

public byte ReloadBits2000
return byte

ScanlineOfVblank public_oe property

public int ScanlineOfVblank
return int

ScanlinesPerFrame public_oe property

public int ScanlinesPerFrame
return int

SprRam public_oe property

public byte[] SprRam
return byte[]

Sprite0Hit public_oe property

public bool Sprite0Hit
return bool

SpriteClipping public_oe property

public bool SpriteClipping
return bool

SpriteCrossed public_oe property

public int SpriteCrossed
return int

SpriteRamAddress public_oe property

public byte SpriteRamAddress
return byte

SpriteSize public_oe property

public bool SpriteSize
return bool

SpriteVisibility public_oe property

public bool SpriteVisibility
return bool

TileY public_oe property

public int TileY
return int

VBits public_oe property

public int VBits
return int

VBlank public_oe property

public bool VBlank
return bool

VRam public_oe property

public byte[] VRam
return byte[]

VRamAddress public_oe property

public ushort VRamAddress
return ushort

VRamAddressIncrement public_oe property

public int VRamAddressIncrement
return int

VRamReadBuffer public_oe property

public byte VRamReadBuffer
return byte

VRamTemp public_oe property

public ushort VRamTemp
return ushort

VScroll public_oe property

public int VScroll
return int

ZapperFrame public_oe property

public int ZapperFrame
return int

ZapperX public_oe property

public int ZapperX
return int

ZapperY public_oe property

public int ZapperY
return int