~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/includes/lemmings.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "video/bufsprite.h"
1
2
 
2
3
class lemmings_state : public driver_device
3
4
{
4
5
public:
5
6
        lemmings_state(const machine_config &mconfig, device_type type, const char *tag)
6
 
                : driver_device(mconfig, type, tag) { }
7
 
 
8
 
        /* memory pointers */
9
 
        UINT16 *  m_pixel_0_data;
10
 
        UINT16 *  m_pixel_1_data;
11
 
        UINT16 *  m_vram_data;
12
 
        UINT16 *  m_control_data;
13
 
        UINT16 *  m_paletteram;
14
 
//  UINT16 *  m_spriteram;    // this currently uses generic buffered spriteram
15
 
//  UINT16 *  m_spriteram2;   // this currently uses generic buffered spriteram
 
7
                : driver_device(mconfig, type, tag),
 
8
                  m_bitmap0(2048, 256),
 
9
                  m_spriteram(*this, "spriteram"),
 
10
                  m_spriteram2(*this, "spriteram2") ,
 
11
                m_paletteram(*this, "paletteram"),
 
12
                m_control_data(*this, "control_data"),
 
13
                m_vram_data(*this, "vram_data"),
 
14
                m_pixel_0_data(*this, "pixel_0_data"),
 
15
                m_pixel_1_data(*this, "pixel_1_data"){ }
16
16
 
17
17
        /* video-related */
18
 
        bitmap_ind16 *m_bitmap0;
 
18
        bitmap_ind16 m_bitmap0;
19
19
        tilemap_t *m_vram_tilemap;
20
 
        UINT16 *m_sprite_triple_buffer_0;
21
 
        UINT16 *m_sprite_triple_buffer_1;
22
 
        UINT8 *m_vram_buffer;
23
 
 
 
20
        UINT16 m_sprite_triple_buffer_0[0x800];
 
21
        UINT16 m_sprite_triple_buffer_1[0x800];
 
22
        UINT8 m_vram_buffer[2048 * 64]; // 64 bytes per VRAM character
24
23
        /* devices */
25
24
        device_t *m_audiocpu;
 
25
        required_device<buffered_spriteram16_device> m_spriteram;
 
26
        required_device<buffered_spriteram16_device> m_spriteram2;
 
27
        /* memory pointers */
 
28
        required_shared_ptr<UINT16> m_paletteram;
 
29
        required_shared_ptr<UINT16> m_control_data;
 
30
        required_shared_ptr<UINT16> m_vram_data;
 
31
        required_shared_ptr<UINT16> m_pixel_0_data;
 
32
        required_shared_ptr<UINT16> m_pixel_1_data;
 
33
 
 
34
        DECLARE_WRITE16_MEMBER(lemmings_control_w);
 
35
        DECLARE_READ16_MEMBER(lemmings_trackball_r);
 
36
        DECLARE_READ16_MEMBER(lemmings_prot_r);
 
37
        DECLARE_WRITE16_MEMBER(lemmings_palette_24bit_w);
 
38
        DECLARE_WRITE16_MEMBER(lemmings_sound_w);
 
39
        DECLARE_WRITE8_MEMBER(lemmings_sound_ack_w);
 
40
        DECLARE_WRITE16_MEMBER(lemmings_pixel_0_w);
 
41
        DECLARE_WRITE16_MEMBER(lemmings_pixel_1_w);
 
42
        DECLARE_WRITE16_MEMBER(lemmings_vram_w);
26
43
};
27
44
 
28
45
 
29
46
/*----------- defined in video/lemmings.c -----------*/
30
47
 
31
 
WRITE16_HANDLER( lemmings_pixel_0_w );
32
 
WRITE16_HANDLER( lemmings_pixel_1_w );
33
 
WRITE16_HANDLER( lemmings_vram_w );
34
48
 
35
49
VIDEO_START( lemmings );
36
50
SCREEN_VBLANK( lemmings );