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

Static Public Member Functions

static byte readNameTable (const V9990VRAM &vram, unsigned addr)
 
static byte readPatternTable (const V9990VRAM &vram, unsigned addr)
 
static byte readSpriteAttr (const V9990VRAM &vram, unsigned addr)
 
static unsigned spritePatOfst (byte spriteNo, byte spriteY)
 
static void draw1 (std::span< const Pixel, 16 > 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 66 of file V9990PxConverter.cc.

Member Function Documentation

◆ draw1()

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

Definition at line 80 of file V9990PxConverter.cc.

◆ readNameTable()

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

Definition at line 67 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMDirect().

◆ readPatternTable()

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

Definition at line 70 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMBx().

◆ readSpriteAttr()

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

Definition at line 73 of file V9990PxConverter.cc.

References openmsx::V9990VRAM::readVRAMDirect().

◆ spritePatOfst()

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

Definition at line 76 of file V9990PxConverter.cc.

Member Data Documentation

◆ DRAW_BACKDROP

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

Definition at line 87 of file V9990PxConverter.cc.

◆ IMAGE_WIDTH

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

Definition at line 89 of file V9990PxConverter.cc.

◆ NAME_CHARS

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

Definition at line 90 of file V9990PxConverter.cc.

◆ PATTERN_CHARS

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

Definition at line 91 of file V9990PxConverter.cc.

◆ SCREEN_WIDTH

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

Definition at line 88 of file V9990PxConverter.cc.


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