summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hng64.c
diff options
context:
space:
mode:
author davidhay <davidhay@localhost>2009-04-24 19:28:54 +0000
committer davidhay <davidhay@localhost>2009-04-24 19:28:54 +0000
commit962fede4c51e0454e9b1ce9c3123f983328b3b60 (patch)
tree049a4f8ab19b48e691a853efcbb291cdf31a71be /src/mame/drivers/hng64.c
parentf87e6a3c26a9d23ab8b545fd42cac0a1eb21a854 (diff)
added a large gfx decode using macros to allow the textures on hng64 to be viewed, handy for verifying the dumps.
Diffstat (limited to 'src/mame/drivers/hng64.c')
-rw-r--r--src/mame/drivers/hng64.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c
index f14d238327e..ef0d2d7465d 100644
--- a/src/mame/drivers/hng64.c
+++ b/src/mame/drivers/hng64.c
@@ -1412,6 +1412,31 @@ static const gfx_layout hng64_16_layout =
};
+static const UINT32 texlayout_xoffset[1024] =
+{
+ STEP1024(0,8),
+
+};
+
+static const UINT32 texlayout_yoffset[512] =
+{
+ STEP512(0,8192),
+};
+
+static const gfx_layout hng64_texlayout =
+{
+ 1024, 512,
+ RGN_FRAC(1,1),
+ 8,
+ { 0,1,2,3,4,5,6,7 },
+ EXTENDED_XOFFS,
+ EXTENDED_YOFFS,
+ 1024*512*8,
+ texlayout_xoffset,
+ texlayout_yoffset
+};
+
+
static GFXDECODE_START( hng64 )
GFXDECODE_ENTRY( "gfx1", 0, hng64_4_even_layout, 0x0, 0x100 ) /* scrolltiles */
GFXDECODE_ENTRY( "gfx1", 0, hng64_4_odd_layout, 0x0, 0x100 ) /* scrolltiles */
@@ -1419,6 +1444,7 @@ static GFXDECODE_START( hng64 )
GFXDECODE_ENTRY( "gfx1", 0, hng64_16_layout, 0x0, 0x10 ) /* scroll tiles */
GFXDECODE_ENTRY( "gfx2", 0, hng64_4_16_layout, 0x0, 0x100 ) /* sprite tiles */
GFXDECODE_ENTRY( "gfx2", 0, hng64_16_layout, 0x0, 0x10 ) /* sprite tiles */
+ GFXDECODE_ENTRY( "gfx3", 0, hng64_texlayout, 0x0, 0x10 ) /* textures */
GFXDECODE_END
static DRIVER_INIT( hng64 )