summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/model1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/model1.h')
-rw-r--r--src/mame/includes/model1.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/mame/includes/model1.h b/src/mame/includes/model1.h
index fe5e2ac9c92..f04d4b2843b 100644
--- a/src/mame/includes/model1.h
+++ b/src/mame/includes/model1.h
@@ -60,6 +60,48 @@ public:
{
}
+ void model1(machine_config &config);
+ void model1_hle(machine_config &config);
+
+ void vf(machine_config &config);
+ void vr(machine_config &config);
+ void vformula(machine_config &config);
+ void swa(machine_config &config);
+ void wingwar(machine_config &config);
+ void wingwar360(machine_config &config);
+ void netmerc(machine_config &config);
+
+ struct spoint_t
+ {
+ int32_t x, y;
+ };
+
+ struct point_t
+ {
+ float x, y, z;
+ float xx, yy;
+ spoint_t s;
+ };
+
+ class quad_t
+ {
+ public:
+ quad_t() { }
+ quad_t(int ccol, float cz, point_t* p0, point_t* p1, point_t* p2, point_t* p3)
+ : p{ p0, p1, p2, p3 }
+ , z(cz)
+ , col(ccol)
+ {
+ }
+
+ int compare(const quad_t* other) const;
+
+ point_t *p[4] = { nullptr, nullptr, nullptr, nullptr };
+ float z = 0;
+ int col = 0;
+ };
+
+private:
// Machine
DECLARE_MACHINE_START(model1);
DECLARE_MACHINE_RESET(model1);
@@ -130,36 +172,6 @@ public:
uint32_t screen_update_model1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(screen_vblank_model1);
- struct spoint_t
- {
- int32_t x, y;
- };
-
- struct point_t
- {
- float x, y, z;
- float xx, yy;
- spoint_t s;
- };
-
- class quad_t
- {
- public:
- quad_t() { }
- quad_t(int ccol, float cz, point_t* p0, point_t* p1, point_t* p2, point_t* p3)
- : p{ p0, p1, p2, p3 }
- , z(cz)
- , col(ccol)
- {
- }
-
- int compare(const quad_t* other) const;
-
- point_t *p[4] = { nullptr, nullptr, nullptr, nullptr };
- float z = 0;
- int col = 0;
- };
-
struct lightparam_t
{
float a = 0;
@@ -203,17 +215,6 @@ public:
lightparam_t lightparams[32];
};
- void model1(machine_config &config);
- void model1_hle(machine_config &config);
-
- void vf(machine_config &config);
- void vr(machine_config &config);
- void vformula(machine_config &config);
- void swa(machine_config &config);
- void wingwar(machine_config &config);
- void wingwar360(machine_config &config);
- void netmerc(machine_config &config);
-
void model1_io(address_map &map);
void model1_mem(address_map &map);
void model1_comm_mem(address_map &map);
@@ -226,7 +227,6 @@ public:
void polhemus_map(address_map &map);
-private:
// Machine
void irq_raise(int level);
void irq_init();