Cxbx-Reloaded/Source/Win32/CxbxKrnl/D3D8.1.0.4134.inl

309 lines
10 KiB
Plaintext
Raw Normal View History

2003-07-19 02:13:56 +00:00
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->CxbxKrnl->D3D8.1.0.4134.cpp
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them under the terms of the GNU General Public
// * License as published by the Free Software Foundation; either
// * version 2 of the license, or (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
2003-07-21 22:19:17 +00:00
// ******************************************************************
// * IDirect3DDevice8_SetTextureState_TexCoordIndex
// ******************************************************************
SOOVPA<10> IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4134 =
{
0, // Large == 0
10, // Count == 10
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetTextureState_TexCoordIndex+0x13 : shl eax, 0x07
{ 0x13, 0xC1 }, // (Offset,Value)-Pair #1
{ 0x14, 0xE0 }, // (Offset,Value)-Pair #2
{ 0x15, 0x07 }, // (Offset,Value)-Pair #3
// IDirect3DDevice8_SetTextureState_TexCoordIndex+0x25 : cmp eax, ecx
{ 0x25, 0x3B }, // (Offset,Value)-Pair #4
{ 0x26, 0xC1 }, // (Offset,Value)-Pair #5
// IDirect3DDevice8_SetTextureState_TexCoordIndex+0x6C : mov edi, 0x2400
{ 0x6C, 0xBF }, // (Offset,Value)-Pair #6
{ 0x6E, 0x24 }, // (Offset,Value)-Pair #7
// IDirect3DDevice8_SetTextureState_TexCoordIndex+0xB3 : shl edx, 0x04
{ 0xB4, 0xC1 }, // (Offset,Value)-Pair #8
{ 0xB5, 0xE2 }, // (Offset,Value)-Pair #9
{ 0xB6, 0x04 }, // (Offset,Value)-Pair #10
}
};
2003-07-19 02:13:56 +00:00
// ******************************************************************
// * IDirect3DDevice8_SetRenderState_CullMode
// ******************************************************************
SOOVPA<13> IDirect3DDevice8_SetRenderState_CullMode_1_0_4134 =
{
0, // Large == 0
13, // Count == 13
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetRenderState_CullMode+0x19 : mov dword ptr [eax], 0x40308
{ 0x19, 0xC7 }, // (Offset,Value)-Pair #1
{ 0x1B, 0x08 }, // (Offset,Value)-Pair #2
{ 0x1C, 0x03 }, // (Offset,Value)-Pair #3
{ 0x1D, 0x04 }, // (Offset,Value)-Pair #4
// IDirect3DDevice8_SetRenderState_CullMode+0x24 : add eax, 8
{ 0x24, 0x83 }, // (Offset,Value)-Pair #5
{ 0x25, 0xC0 }, // (Offset,Value)-Pair #6
{ 0x26, 0x08 }, // (Offset,Value)-Pair #7
// IDirect3DDevice8_SetRenderState_CullMode+0x30 : retn 4
{ 0x30, 0xC2 }, // (Offset,Value)-Pair #8
{ 0x31, 0x04 }, // (Offset,Value)-Pair #9
// IDirect3DDevice8_SetRenderState_CullMode+0x53 : add edx, 0x404
{ 0x53, 0x81 }, // (Offset,Value)-Pair #10
{ 0x54, 0xC2 }, // (Offset,Value)-Pair #11
{ 0x55, 0x04 }, // (Offset,Value)-Pair #12
{ 0x56, 0x04 }, // (Offset,Value)-Pair #13
}
};
2003-07-21 22:19:17 +00:00
// ******************************************************************
// * IDirect3DDevice8_SetTransform
// ******************************************************************
SOOVPA<10> IDirect3DDevice8_SetTransform_1_0_4134 =
{
0, // Large == 0
10, // Count == 10
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetTransform+0x16 : lea edi, [ecx+ebx+0x750]
{ 0x16, 0x8D }, // (Offset,Value)-Pair #1
{ 0x17, 0xBC }, // (Offset,Value)-Pair #2
{ 0x18, 0x19 }, // (Offset,Value)-Pair #3
// IDirect3DDevice8_SetTransform+0x24 : repe movsd
{ 0x24, 0xF3 }, // (Offset,Value)-Pair #4
{ 0x25, 0xA5 }, // (Offset,Value)-Pair #5
// IDirect3DDevice8_SetTransform+0x78 : fld [edx+0x3C]
{ 0x78, 0xD9 }, // (Offset,Value)-Pair #6
{ 0x79, 0x42 }, // (Offset,Value)-Pair #7
{ 0x7A, 0x3C }, // (Offset,Value)-Pair #8
// IDirect3DDevice8_SetTransform+0x92 : jmp +0x10
{ 0x92, 0xEB }, // (Offset,Value)-Pair #9
{ 0x93, 0x10 }, // (Offset,Value)-Pair #10
}
};
// ******************************************************************
// * IDirect3DDevice8_SetRenderState_FogColor
// ******************************************************************
SOOVPA<10> IDirect3DDevice8_SetRenderState_FogColor_1_0_4134 =
{
0, // Large == 0
10, // Count == 10
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_SetRenderState_FogColor+0x07 : mov eax, [esi]
{ 0x07, 0x8B }, // (Offset,Value)-Pair #1
{ 0x08, 0x06 }, // (Offset,Value)-Pair #2
// IDirect3DDevice8_SetRenderState_FogColor+0x09 : cmp eax, [esi+4]
{ 0x09, 0x3B }, // (Offset,Value)-Pair #3
{ 0x0A, 0x46 }, // (Offset,Value)-Pair #4
{ 0x0B, 0x04 }, // (Offset,Value)-Pair #5
// IDirect3DDevice8_SetRenderState_FogColor+0x25 : shl edi, 0x10
{ 0x25, 0xC1 }, // (Offset,Value)-Pair #6
{ 0x26, 0xE7 }, // (Offset,Value)-Pair #7
{ 0x27, 0x10 }, // (Offset,Value)-Pair #8
// IDirect3DDevice8_SetRenderState_FogColor+0x40 : mov [esi], eax
{ 0x40, 0x89 }, // (Offset,Value)-Pair #9
{ 0x41, 0x06 }, // (Offset,Value)-Pair #10
}
};
// ******************************************************************
// * IDirect3DDevice8_Swap
// ******************************************************************
SOOVPA<11> IDirect3DDevice8_Swap_1_0_4134 =
{
0, // Large == 0
11, // Count == 11
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_Swap+0x10 : mov ebx, 5
{ 0x10, 0xBB }, // (Offset,Value)-Pair #1
{ 0x11, 0x05 }, // (Offset,Value)-Pair #2
// IDirect3DDevice8_Swap+0x1D : test bl, 3
{ 0x1D, 0xF6 }, // (Offset,Value)-Pair #3
{ 0x1E, 0xC3 }, // (Offset,Value)-Pair #4
{ 0x1F, 0x03 }, // (Offset,Value)-Pair #5
// IDirect3DDevice8_Swap+0x46 : inc dword ptr [esi+0x2ABC]
{ 0x46, 0xFF }, // (Offset,Value)-Pair #6
{ 0x47, 0x86 }, // (Offset,Value)-Pair #7
{ 0x48, 0xBC }, // (Offset,Value)-Pair #8
{ 0x49, 0x2A }, // (Offset,Value)-Pair #9
// IDirect3DDevice8_Swap+0xAE : retn 4
{ 0xAE, 0xC2 }, // (Offset,Value)-Pair #10
{ 0xAF, 0x04 }, // (Offset,Value)-Pair #11
}
};
// ******************************************************************
// * IDirect3DDevice8_Clear
// ******************************************************************
LOOVPA<9> IDirect3DDevice8_Clear_1_0_4134 =
{
1, // Large == 1
9, // Count == 9
-1, // XRef Not Saved
0, // XRef Not Used
{
// IDirect3DDevice8_Clear+0x0000 : sub esp, 38h
{ 0x0000, 0x83 }, // (Offset,Value)-Pair #1
{ 0x0001, 0xEC }, // (Offset,Value)-Pair #2
{ 0x0002, 0x38 }, // (Offset,Value)-Pair #3
// IDirect3DDevice8_Clear+0x000B : mov ebx, [ebp+0x2074]
{ 0x000B, 0x8B }, // (Offset,Value)-Pair #4
{ 0x000C, 0x9D }, // (Offset,Value)-Pair #5
{ 0x000D, 0x74 }, // (Offset,Value)-Pair #6
{ 0x000E, 0x20 }, // (Offset,Value)-Pair #7
// IDirect3DDevice8_Clear+0x0399 : retn 0x18
{ 0x0399, 0xC2 }, // (Offset,Value)-Pair #8
{ 0x039A, 0x18 }, // (Offset,Value)-Pair #9
}
};
2003-07-19 02:13:56 +00:00
// ******************************************************************
// * D3D8_1_0_4134
// ******************************************************************
OOVPATable D3D8_1_0_4134[] =
{
// IDirect3D8::CreateDevice (* unchanged since 1.0.3925 *)
{
(OOVPA*)&IDirect3D8_CreateDevice_1_0_3925,
XTL::EmuIDirect3D8_CreateDevice,
#ifdef _DEBUG_TRACE
"EmuIDirect3D8_CreateDevice"
#endif
},
2003-07-21 22:19:17 +00:00
// IDirect3DDevice8::SetRenderState_TexCoordIndex
{
(OOVPA*)&IDirect3DDevice8_SetTextureState_TexCoordIndex_1_0_4134,
XTL::EmuIDirect3DDevice8_SetTextureState_TexCoordIndex,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTextureState_TexCoordIndex"
#endif
},
2003-07-19 02:13:56 +00:00
// IDirect3DDevice8::SetRenderState_CullMode
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_CullMode_1_0_4134,
XTL::EmuIDirect3DDevice8_SetRenderState_CullMode,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_CullMode"
#endif
},
2003-07-21 22:19:17 +00:00
// IDirect3DDevice8::SetTransform
{
(OOVPA*)&IDirect3DDevice8_SetTransform_1_0_4134,
XTL::EmuIDirect3DDevice8_SetTransform,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetTransform"
#endif
},
// IDirect3DDevice8::SetRenderState_FogColor
{
(OOVPA*)&IDirect3DDevice8_SetRenderState_FogColor_1_0_4134,
XTL::EmuIDirect3DDevice8_SetRenderState_FogColor,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_SetRenderState_FogColor"
#endif
},
// IDirect3DDevice8::Swap
{
(OOVPA*)&IDirect3DDevice8_Swap_1_0_4134,
XTL::EmuIDirect3DDevice8_Swap,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_Swap"
#endif
},
// IDirect3DDevice8::Clear
{
(OOVPA*)&IDirect3DDevice8_Clear_1_0_4134,
XTL::EmuIDirect3DDevice8_Clear,
#ifdef _DEBUG_TRACE
"EmuIDirect3DDevice8_Clear"
#endif
},
2003-07-19 02:13:56 +00:00
};
// ******************************************************************
// * D3D8_1_0_4134_SIZE
// ******************************************************************
uint32 D3D8_1_0_4134_SIZE = sizeof(D3D8_1_0_4134);