ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

d3dx9_36_main.c
Go to the documentation of this file.
00001 /*
00002  * Direct3D X 9 main file
00003  *
00004  * Copyright (C) 2007 David Adam
00005  * Copyright (C) 2008 Tony Wasserka
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00020  *
00021  */
00022 
00023 #include "config.h"
00024 #include "wine/port.h"
00025 #include "initguid.h"
00026 
00027 #include <stdarg.h>
00028 
00029 #include "windef.h"
00030 #include "winbase.h"
00031 #include "wingdi.h"
00032 #include "winuser.h"
00033 
00034 #include "d3dx9.h"
00035 
00036 /***********************************************************************
00037  * DllMain.
00038  */
00039 BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
00040 {
00041     switch(reason)
00042     {
00043     case DLL_WINE_PREATTACH:
00044         return FALSE; /* prefer native version */
00045     case DLL_PROCESS_ATTACH:
00046         DisableThreadLibraryCalls(inst);
00047         break;
00048     case DLL_PROCESS_DETACH:
00049         break;
00050     }
00051     return TRUE;
00052 }
00053 
00054 /***********************************************************************
00055  * D3DXCheckVersion
00056  * Checks whether we are compiling against the correct d3d and d3dx library.
00057  */
00058 BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
00059 {
00060     if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==36)
00061         return TRUE;
00062     else
00063         return FALSE;
00064 }
00065 
00066 /***********************************************************************
00067  * D3DXDebugMute
00068  * Returns always FALSE for us.
00069  */
00070 BOOL WINAPI D3DXDebugMute(BOOL mute)
00071 {
00072     return FALSE;
00073 }
00074 
00075 /***********************************************************************
00076  * D3DXGetDriverLevel.
00077  * Returns always 900 (DX 9) for us
00078  */
00079 UINT WINAPI D3DXGetDriverLevel(LPDIRECT3DDEVICE9 device)
00080 {
00081     return 900;
00082 }

Generated on Sun May 27 2012 04:22:10 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.