openMSX
Static Public Member Functions | Static Public Attributes | List of all members
openmsx::P2Policy Struct Reference

Static Public Member Functions

static byte readNameTable (V9990VRAM &vram, unsigned addr)
 
static byte readPatternTable (V9990VRAM &vram, unsigned addr)
 
static byte readSpriteAttr (V9990VRAM &vram, unsigned addr)
 
static unsigned spritePatOfst (byte spriteNo, byte spriteY)
 
template<typename Pixel >
static void draw1 (const Pixel *palette, Pixel *buffer, byte *info, size_t p)
 

Static Public Attributes

static constexpr bool DRAW_BACKDROP = true
 
static constexpr unsigned SCREEN_WIDTH = 512
 
static constexpr unsigned IMAGE_WIDTH = 2 * SCREEN_WIDTH
 
static constexpr unsigned NAME_CHARS = IMAGE_WIDTH / 8
 
static constexpr unsigned PATTERN_CHARS = SCREEN_WIDTH / 8
 

Detailed Description

Definition at line 65 of file V9990PxConverter.cc.

Member Function Documentation

◆ draw1()

template<typename Pixel >
static void openmsx::P2Policy::draw1 ( const Pixel palette,
Pixel buffer,
byte info,
size_t  p 
)
inlinestatic

Definition at line 79 of file V9990PxConverter.cc.

◆ readNameTable()

static byte openmsx::P2Policy::readNameTable ( V9990VRAM vram,
unsigned  addr 
)
inlinestatic

Definition at line 66 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMDirect().

◆ readPatternTable()

static byte openmsx::P2Policy::readPatternTable ( V9990VRAM vram,
unsigned  addr 
)
inlinestatic

Definition at line 69 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMBx().

◆ readSpriteAttr()

static byte openmsx::P2Policy::readSpriteAttr ( V9990VRAM vram,
unsigned  addr 
)
inlinestatic

Definition at line 72 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMDirect().

◆ spritePatOfst()

static unsigned openmsx::P2Policy::spritePatOfst ( byte  spriteNo,
byte  spriteY 
)
inlinestatic

Definition at line 75 of file V9990PxConverter.cc.

Member Data Documentation

◆ DRAW_BACKDROP

constexpr bool openmsx::P2Policy::DRAW_BACKDROP = true
staticconstexpr

Definition at line 86 of file V9990PxConverter.cc.

◆ IMAGE_WIDTH

constexpr unsigned openmsx::P2Policy::IMAGE_WIDTH = 2 * SCREEN_WIDTH
staticconstexpr

Definition at line 88 of file V9990PxConverter.cc.

◆ NAME_CHARS

constexpr unsigned openmsx::P2Policy::NAME_CHARS = IMAGE_WIDTH / 8
staticconstexpr

Definition at line 89 of file V9990PxConverter.cc.

◆ PATTERN_CHARS

constexpr unsigned openmsx::P2Policy::PATTERN_CHARS = SCREEN_WIDTH / 8
staticconstexpr

Definition at line 90 of file V9990PxConverter.cc.

◆ SCREEN_WIDTH

constexpr unsigned openmsx::P2Policy::SCREEN_WIDTH = 512
staticconstexpr

Definition at line 87 of file V9990PxConverter.cc.


The documentation for this struct was generated from the following file: