diff options
Diffstat (limited to 'src/mame/video/atarirle.h')
-rw-r--r-- | src/mame/video/atarirle.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/mame/video/atarirle.h b/src/mame/video/atarirle.h index b1196887483..9d943fe6780 100644 --- a/src/mame/video/atarirle.h +++ b/src/mame/video/atarirle.h @@ -84,15 +84,15 @@ struct atari_rle_objects_config UINT16 m_rightclip; // right clip coordinate UINT16 m_palettebase; // base palette entry - entry m_code_entry; // mask for the code index - entry m_color_entry; // mask for the color - entry m_xpos_entry; // mask for the X position - entry m_ypos_entry; // mask for the Y position - entry m_scale_entry; // mask for the scale factor - entry m_hflip_entry; // mask for the horizontal flip - entry m_order_entry; // mask for the order - entry m_priority_entry; // mask for the priority - entry m_vram_entry; // mask for the VRAM target + entry m_code_entry; // mask for the code index + entry m_color_entry; // mask for the color + entry m_xpos_entry; // mask for the X position + entry m_ypos_entry; // mask for the Y position + entry m_scale_entry; // mask for the scale factor + entry m_hflip_entry; // mask for the horizontal flip + entry m_order_entry; // mask for the order + entry m_priority_entry; // mask for the priority + entry m_vram_entry; // mask for the VRAM target }; @@ -102,8 +102,8 @@ struct atari_rle_objects_config extern const device_type ATARI_RLE_OBJECTS; class atari_rle_objects_device : public device_t, - public device_video_interface, - public atari_rle_objects_config + public device_video_interface, + public atari_rle_objects_config { public: // construction/destruction @@ -111,14 +111,14 @@ public: // static configuration helpers static void static_set_config(device_t &device, const atari_rle_objects_config &config); - + // control handlers DECLARE_WRITE8_MEMBER(control_write); DECLARE_WRITE8_MEMBER(command_write); // render helpers void vblank_callback(screen_device &screen, bool state); - + // getters bitmap_ind16 &vram(int idx) { return m_vram[idx][(m_control_bits & ATARIRLE_CONTROL_FRAME) >> 2]; } @@ -140,9 +140,9 @@ private: UINT16 mask() const { return m_mask; } private: - UINT16 m_word; // word index - UINT16 m_shift; // shift amount - UINT16 m_mask; // final mask + UINT16 m_word; // word index + UINT16 m_shift; // shift amount + UINT16 m_mask; // final mask }; // internal structure describing each object in the ROMs @@ -156,7 +156,7 @@ private: const UINT16 * table; const UINT16 * data; }; - + // internal helpers inline int round_to_powerof2(int value); void build_rle_tables(); @@ -177,36 +177,36 @@ private: rectangle m_cliprect; // clipping rectangle // masks - sprite_parameter m_codemask; // mask for the code index - sprite_parameter m_colormask; // mask for the color - sprite_parameter m_xposmask; // mask for the X position - sprite_parameter m_yposmask; // mask for the Y position - sprite_parameter m_scalemask; // mask for the scale factor - sprite_parameter m_hflipmask; // mask for the horizontal flip - sprite_parameter m_ordermask; // mask for the order - sprite_parameter m_prioritymask; // mask for the priority - sprite_parameter m_vrammask; // mask for the VRAM target + sprite_parameter m_codemask; // mask for the code index + sprite_parameter m_colormask; // mask for the color + sprite_parameter m_xposmask; // mask for the X position + sprite_parameter m_yposmask; // mask for the Y position + sprite_parameter m_scalemask; // mask for the scale factor + sprite_parameter m_hflipmask; // mask for the horizontal flip + sprite_parameter m_ordermask; // mask for the order + sprite_parameter m_prioritymask; // mask for the priority + sprite_parameter m_vrammask; // mask for the VRAM target // ROM information - const UINT16 * m_rombase; // pointer to the base of the GFX ROM - int m_romlength; // length of the GFX ROM - int m_objectcount; // number of objects in the ROM + const UINT16 * m_rombase; // pointer to the base of the GFX ROM + int m_romlength; // length of the GFX ROM + int m_objectcount; // number of objects in the ROM dynamic_array<object_info> m_info; // list of info records // rendering state - bitmap_ind16 m_vram[2][2]; // pointers to VRAM bitmaps and backbuffers - int m_partial_scanline; // partial update scanline + bitmap_ind16 m_vram[2][2]; // pointers to VRAM bitmaps and backbuffers + int m_partial_scanline; // partial update scanline // control state - UINT8 m_control_bits; // current control bits - UINT8 m_command; // current command - UINT16 m_checksums[256]; // checksums for each 0x40000 bytes - memory_array m_ram; + UINT8 m_control_bits; // current control bits + UINT8 m_command; // current command + UINT16 m_checksums[256]; // checksums for each 0x40000 bytes + memory_array m_ram; // tables - UINT8 m_rle_bpp[8]; - UINT16 * m_rle_table[8]; - UINT16 m_rle_table_data[0x500]; + UINT8 m_rle_bpp[8]; + UINT16 * m_rle_table[8]; + UINT16 m_rle_table_data[0x500]; }; |