Index: ddraw/trace.cpp |
— | — | @@ -48,6 +48,7 @@ |
49 | 49 | 26 - RECT pointer
|
50 | 50 | 27 - D3DRENDERSTATETYPE
|
51 | 51 | 28 - D3DTEXTURESTAGESTATETYPE
|
| 52 | +29 - D3DTRANSFORMSTATETYPE
|
52 | 53 | */
|
53 | 54 |
|
54 | 55 | #ifdef _TRACE
|
— | — | @@ -610,11 +611,11 @@ |
611 | 612 | WriteFile(outfile,str,strlen(str),&byteswritten,NULL);
|
612 | 613 | }
|
613 | 614 |
|
614 | | -static void trace_decode_d3dtexturestagestate(DWORD rs)
|
| 615 | +static void trace_decode_d3dtexturestagestate(DWORD ts)
|
615 | 616 | {
|
616 | 617 | DWORD byteswritten;
|
617 | 618 | char str[64];
|
618 | | - switch(rs)
|
| 619 | + switch(ts)
|
619 | 620 | {
|
620 | 621 | case D3DTSS_COLOROP:
|
621 | 622 | strcpy(str,"D3DTSS_COLOROP");
|
— | — | @@ -689,12 +690,67 @@ |
690 | 691 | strcpy(str,"D3DTSS_TEXTURETRANSFORMFLAGS");
|
691 | 692 | break;
|
692 | 693 | default:
|
693 | | - sprintf(str,"(D3DTEXTURESTAGESTATETYPE)%u",rs);
|
| 694 | + sprintf(str,"(D3DTEXTURESTAGESTATETYPE)%u",ts);
|
694 | 695 | break;
|
695 | 696 | }
|
696 | 697 | WriteFile(outfile,str,strlen(str),&byteswritten,NULL);
|
697 | 698 | }
|
698 | 699 |
|
| 700 | +static void trace_decode_d3dtransformstate(DWORD ts)
|
| 701 | +{
|
| 702 | + DWORD byteswritten;
|
| 703 | + char str[64];
|
| 704 | + switch(ts)
|
| 705 | + {
|
| 706 | + case D3DTRANSFORMSTATE_WORLD:
|
| 707 | + strcpy(str,"D3DTRANSFORMSTATE_WORLD");
|
| 708 | + break;
|
| 709 | + case D3DTRANSFORMSTATE_VIEW:
|
| 710 | + strcpy(str,"D3DTRANSFORMSTATE_VIEW");
|
| 711 | + break;
|
| 712 | + case D3DTRANSFORMSTATE_PROJECTION:
|
| 713 | + strcpy(str,"D3DTRANSFORMSTATE_PROJECTION");
|
| 714 | + break;
|
| 715 | + case D3DTRANSFORMSTATE_WORLD1:
|
| 716 | + strcpy(str,"D3DTRANSFORMSTATE_WORLD1");
|
| 717 | + break;
|
| 718 | + case D3DTRANSFORMSTATE_WORLD2:
|
| 719 | + strcpy(str,"D3DTRANSFORMSTATE_WORLD2");
|
| 720 | + break;
|
| 721 | + case D3DTRANSFORMSTATE_WORLD3:
|
| 722 | + strcpy(str,"D3DTRANSFORMSTATE_WORLD3");
|
| 723 | + break;
|
| 724 | + case D3DTRANSFORMSTATE_TEXTURE0:
|
| 725 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE0");
|
| 726 | + break;
|
| 727 | + case D3DTRANSFORMSTATE_TEXTURE1:
|
| 728 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE1");
|
| 729 | + break;
|
| 730 | + case D3DTRANSFORMSTATE_TEXTURE2:
|
| 731 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE2");
|
| 732 | + break;
|
| 733 | + case D3DTRANSFORMSTATE_TEXTURE3:
|
| 734 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE3");
|
| 735 | + break;
|
| 736 | + case D3DTRANSFORMSTATE_TEXTURE4:
|
| 737 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE4");
|
| 738 | + break;
|
| 739 | + case D3DTRANSFORMSTATE_TEXTURE5:
|
| 740 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE5");
|
| 741 | + break;
|
| 742 | + case D3DTRANSFORMSTATE_TEXTURE6:
|
| 743 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE6");
|
| 744 | + break;
|
| 745 | + case D3DTRANSFORMSTATE_TEXTURE7:
|
| 746 | + strcpy(str,"D3DTRANSFORMSTATE_TEXTURE7");
|
| 747 | + break;
|
| 748 | + default:
|
| 749 | + sprintf(str,"(D3DTRANSFORMSTATETYPE)%u",ts);
|
| 750 | + break;
|
| 751 | + }
|
| 752 | + WriteFile(outfile,str,strlen(str),&byteswritten,NULL);
|
| 753 | +}
|
| 754 | +
|
699 | 755 | static void trace_decode_guid(GUID *guid)
|
700 | 756 | {
|
701 | 757 | DWORD byteswritten;
|
— | — | @@ -938,6 +994,9 @@ |
939 | 995 | case 28: // D3DTEXTURESTAGESTATETYPE
|
940 | 996 | trace_decode_d3dtexturestagestate((DWORD)arg);
|
941 | 997 | break;
|
| 998 | + case 29: // D3DTRANSFORMSTATETYPE
|
| 999 | + trace_decode_d3dtransformstate((DWORD)arg);
|
| 1000 | + break;
|
942 | 1001 | default:
|
943 | 1002 | WriteFile(outfile,"Unknown type",12,&byteswritten,NULL);
|
944 | 1003 | break;
|