trunk/src/emu/video/stvvdp2.c
| r21034 | r21035 | |
| 6467 | 6467 | //popmessage("%04x %04x %04x %04x %04x %04x",STV_VDP2_COAR,STV_VDP2_COAG,STV_VDP2_COAB,STV_VDP2_COBR,STV_VDP2_COBG,STV_VDP2_COBB); |
| 6468 | 6468 | } |
| 6469 | 6469 | |
| 6470 | | /****************************************************************************************** |
| 6471 | | |
| 6472 | | ST-V VDP2 window effect function version 0.04 |
| 6473 | | |
| 6474 | | How it works: returns 0 if the requested pixel is drawnable,1 if it isn't. |
| 6475 | | For tilemap and sprite layer, clipping rectangle is changed. |
| 6476 | | |
| 6477 | | Done: |
| 6478 | | -Basic support(w0 or w1),bitmaps only. |
| 6479 | | -W0 (outside) for tilemaps and sprite layer. |
| 6480 | | -Window logic. |
| 6481 | | |
| 6482 | | Not Done: |
| 6483 | | -Complete Windows on cells.A split between cells and bitmaps is in progress... |
| 6484 | | -w0 & w1 at the same time. |
| 6485 | | -Line window. |
| 6486 | | -Color Calculation. |
| 6487 | | -Rotation parameter Window (already done?). |
| 6488 | | |
| 6489 | | Window Registers are hooked up like this ATM: |
| 6490 | | x--- ---- UNUSED |
| 6491 | | -x-- ---- Sprite Window Area |
| 6492 | | --x- ---- Window 1 Area |
| 6493 | | ---x ---- Window 0 Area |
| 6494 | | (0 = Inside,1 = Outside) |
| 6495 | | ---- x--- Sprite Window Enable |
| 6496 | | ---- -x-- Window 1 Enable |
| 6497 | | ---- --x- Window 0 Enable |
| 6498 | | (0 = Disabled,1 = Enabled) |
| 6499 | | ---- ---x Window Logic |
| 6500 | | (0 = OR,1 = AND) |
| 6501 | | ******************************************************************************************/ |
| 6502 | | |
| 6503 | 6470 | void saturn_state::stv_vdp2_get_window0_coordinates(int *s_x, int *e_x, int *s_y, int *e_y) |
| 6504 | 6471 | { |
| 6505 | 6472 | /*W0*/ |