Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygend3d9_swapchain.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS ReactX 00004 * FILE: dll/directx/d3d9/d3d9_swapchain.h 00005 * PURPOSE: Direct3D9's swap chain object 00006 * PROGRAMERS: Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com> 00007 */ 00008 #ifndef _D3D9_SWAPCHAIN_H_ 00009 #define _D3D9_SWAPCHAIN_H_ 00010 00011 #include "d3d9_common.h" 00012 #include <d3d9.h> 00013 #include <ddraw.h> 00014 #include "d3d9_baseobject.h" 00015 00016 struct _Direct3DDevice9_INT; 00017 00018 typedef struct _Direct3DSwapChain9_INT 00019 { 00020 /* 0x0000 */ D3D9BaseObject BaseObject; 00021 /* 0x0020 */ struct IDirect3DSwapChain9Vtbl* lpVtbl; 00022 /* 0x0024 */ DWORD dwUnknown0024; 00023 /* 0x0028 */ struct _D3D9Surface* pPrimarySurface; 00024 /* 0x002c */ struct _D3D9Surface* pExtendedPrimarySurface; 00025 /* 0x0030 */ DWORD dwUnknown0030; 00026 /* 0x0034 */ struct _D3D9DriverSurface** ppBackBufferList; 00027 /* 0x0038 */ DWORD dwNumBackBuffers; 00028 /* 0x003c */ DWORD ChainIndex; 00029 /* 0x0040 */ DWORD AdapterGroupIndex; 00030 /* 0x0044 */ D3DPRESENT_PARAMETERS PresentParameters; 00031 /* 0x007c */ DWORD dwUnknown007c; 00032 /* 0x0080 */ DWORD dwUnknown0080[2]; /* Extended format? */ 00033 /* 0x0088 */ struct _D3D9Cursor* pCursor; 00034 /* 0x008c */ DWORD dwUnknown008c[4]; 00035 /* 0x009c */ struct _D3D9_Unknown6BC* pUnknown6BC; 00036 /* 0x00a0 */ LPDWORD dwUnknown00a0; 00037 /* 0x00a4 */ DWORD dwUnknown00a4; 00038 /* 0x00a8 */ DWORD dwUnknown00a8; 00039 /* 0x00ac */ DWORD dwWidth; 00040 /* 0x00b0 */ DWORD dwHeight; 00041 /* 0x00b4 */ DWORD dwUnknown00b4; 00042 /* 0x00b8 */ DWORD dwUnknown00b8; 00043 /* 0x00bc */ DWORD dwUnknown00bc; 00044 /* 0x00c0 */ DWORD dwWidth2; 00045 /* 0x00c4 */ DWORD dwHeight2; 00046 /* 0x00c8 */ DWORD dwUnknown00c8; 00047 /* 0x00cc */ DWORD dwUnknown00cc; 00048 /* 0x00d0 */ DWORD dwUnknown00d0; 00049 /* 0x00d4 */ DWORD dwUnknown00d4; 00050 /* 0x00d8 */ DWORD dwUnknown00d8; 00051 /* 0x00dc */ DWORD dwUnknown00dc; 00052 /* 0x00e0 */ DWORD dwDevModeScale; 00053 /* 0x00e4 */ DWORD dwUnknown00e4; 00054 /* 0x00e8 */ DWORD dwUnknown00e8; 00055 /* 0x00ec */ DWORD dwUnknown00ec; 00056 /* 0x00f0 */ DWORD dwUnknown00f0[27]; 00057 00058 /* 0x015c */ LPVOID pUnknown015c; 00059 /* 0x0160 */ DWORD dwUnknown0160[4]; 00060 /* 0x0170 */ HRESULT hResult; 00061 00062 /* 0x0174 */ DWORD dwUnknown0174[26]; 00063 00064 /* 0x01DC */ DWORD dwUnknownFlags; /* 1 = Show frame rate, 2 = Flip without vsync */ 00065 /* 0x01E0 */ BOOL bForceRefreshRate; 00066 /* 0x01E4 */ DWORD dwUnknown01dc[4]; 00067 00068 /* 0x01f4 */ D3DSWAPEFFECT SwapEffect; 00069 /* 0x01f8 */ DWORD dwUnknown01f8; 00070 /* 0x01fc */ DWORD dwUnknown01fc; 00071 /* 0x0200 */ D3DGAMMARAMP GammaRamp; 00072 } Direct3DSwapChain9_INT, FAR* LPDIRECT3DSWAPCHAIN9_INT; 00073 00074 LPDIRECT3DSWAPCHAIN9_INT IDirect3DSwapChain9ToImpl(LPDIRECT3DSWAPCHAIN9 iface); 00075 Direct3DSwapChain9_INT* CreateDirect3DSwapChain9(enum REF_TYPE RefType, struct _Direct3DDevice9_INT* pBaseDevice, DWORD ChainIndex); 00076 00077 VOID Direct3DSwapChain9_SetDisplayMode(Direct3DSwapChain9_INT* pThisSwapChain, D3DPRESENT_PARAMETERS* pPresentationParameters); 00078 HRESULT Direct3DSwapChain9_Init(Direct3DSwapChain9_INT* pThisSwapChain, D3DPRESENT_PARAMETERS* pPresentationParameters); 00079 HRESULT Direct3DSwapChain9_Reset(Direct3DSwapChain9_INT* pThisSwapChain, D3DPRESENT_PARAMETERS* pPresentationParameters); 00080 VOID Direct3DSwapChain9_GetGammaRamp(Direct3DSwapChain9_INT* pThisSwapChain, D3DGAMMARAMP* pRamp); 00081 VOID Direct3DSwapChain9_SetGammaRamp(Direct3DSwapChain9_INT* pThisSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp); 00082 00083 #endif // _D3D9_SWAPCHAIN_H_ Generated on Sat May 26 2012 04:19:53 for ReactOS by
1.7.6.1
|