trunk/src/mame/drivers/namcos23.c
| r249084 | r249085 | |
| 1266 | 1266 | |
| 1267 | 1267 | enum { RENDER_MAX_ENTRIES = 1000, POLY_MAX_ENTRIES = 10000 }; |
| 1268 | 1268 | |
| 1269 | | class namcos23_state; |
| 1270 | | struct namcos23_render_data; |
| 1271 | | |
| 1272 | | class namcos23_renderer : public poly_manager<float, namcos23_render_data, 4, POLY_MAX_ENTRIES> |
| 1273 | | { |
| 1274 | | public: |
| 1275 | | namcos23_renderer(namcos23_state &state); |
| 1276 | | |
| 1277 | | void render_flush(bitmap_rgb32& bitmap); |
| 1278 | | void render_scanline(INT32 scanline, const extent_t& extent, const namcos23_render_data& object, int threadid); |
| 1279 | | |
| 1280 | | private: |
| 1281 | | namcos23_state& m_state; |
| 1282 | | bitmap_rgb32 m_bitmap; |
| 1283 | | }; |
| 1284 | | |
| 1285 | | typedef namcos23_renderer::vertex_t poly_vertex; |
| 1286 | | |
| 1287 | | |
| 1288 | 1269 | struct namcos23_render_entry |
| 1289 | 1270 | { |
| 1290 | 1271 | int type; |
| r249084 | r249085 | |
| 1308 | 1289 | UINT32 (*texture_lookup)(running_machine &machine, const pen_t *pens, float x, float y); |
| 1309 | 1290 | }; |
| 1310 | 1291 | |
| 1292 | class namcos23_state; |
| 1293 | |
| 1294 | class namcos23_renderer : public poly_manager<float, namcos23_render_data, 4, POLY_MAX_ENTRIES> |
| 1295 | { |
| 1296 | public: |
| 1297 | namcos23_renderer(namcos23_state &state); |
| 1298 | |
| 1299 | void render_flush(bitmap_rgb32& bitmap); |
| 1300 | void render_scanline(INT32 scanline, const extent_t& extent, const namcos23_render_data& object, int threadid); |
| 1301 | |
| 1302 | private: |
| 1303 | namcos23_state& m_state; |
| 1304 | bitmap_rgb32 m_bitmap; |
| 1305 | }; |
| 1306 | |
| 1307 | typedef namcos23_renderer::vertex_t poly_vertex; |
| 1308 | |
| 1311 | 1309 | struct namcos23_poly_entry |
| 1312 | 1310 | { |
| 1313 | 1311 | namcos23_render_data rd; |
| r249084 | r249085 | |
| 1317 | 1315 | poly_vertex pv[16]; |
| 1318 | 1316 | }; |
| 1319 | 1317 | |
| 1318 | |
| 1320 | 1319 | struct c417_t |
| 1321 | 1320 | { |
| 1322 | 1321 | UINT16 ram[0x10000]; |