Class Hardware
- Namespace
- GB
- Assembly
- GBSharp.Framework.dll
The hardware, as values you can name.
public static class Hardware
- Inheritance
-
Hardware
- Inherited Members
Remarks
Game code brings these into scope with using static GB.Hardware; and
then writes Sprites[0].X = x.
These are fields rather than properties, and the indexer below returns by reference, because C# has no static indexers and will not let a property be assigned through an rvalue. None of it survives compilation: every member here is NativeIdentityAttribute and erases during lowering, leaving only the sprite index in the generated C.
Fields
BackgroundPalettes
The eight Game Boy Color background palettes.
public static BackgroundPaletteTable BackgroundPalettes
Field Value
SpritePalettes
The eight Game Boy Color sprite palettes.
public static SpritePaletteTable SpritePalettes
Field Value
Sprites
The 40 hardware sprites in OAM.
public static SpriteTable Sprites