Explorar o código

use precomp hdrs

cxgeorge %!s(int64=24) %!d(string=hai) anos
pai
achega
6f97ca49fa

+ 3 - 1
panda/src/wdxdisplay/Sources.pp

@@ -8,13 +8,15 @@
   #define TARGET wdxdisplay
   #define LOCAL_LIBS \
     dxgsg
-
+    
   #define SOURCES \
     config_wdxdisplay.cxx config_wdxdisplay.h wdxGraphicsPipe.cxx \
     wdxGraphicsPipe.h wdxGraphicsWindow.cxx wdxGraphicsWindow.h
 
   #define INSTALL_HEADERS \
     config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.h
+    
+  #define PRECOMPILED_HEADER wdxdisplay_headers.h 
 
 #end lib_target
 

+ 2 - 5
panda/src/wdxdisplay/config_wdxdisplay.cxx

@@ -16,11 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "config_wdxdisplay.h"
-#include "wdxGraphicsPipe.h"
-#include "wdxGraphicsWindow.h"
-
-#include <dconfig.h>
+#include "wdxdisplay_headers.h"
+#pragma hdrstop
 
 Configure(config_wdxdisplay);
 NotifyCategoryDef(wdxdisplay, "display");

+ 3 - 5
panda/src/wdxdisplay/wdxGraphicsPipe.cxx

@@ -15,11 +15,9 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
-#include "wdxGraphicsPipe.h"
-#include "config_wdxdisplay.h"
-#include <mouseButton.h>
-#include <keyboardButton.h>
-#include <dxfile.h>
+
+#include "wdxdisplay_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 4 - 0
panda/src/wdxdisplay/wdxGraphicsPipe.h

@@ -26,6 +26,10 @@
 #include <string>
 #include <interactiveGraphicsPipe.h>
 #include "wdxGraphicsWindow.h"
+
+#ifndef STRICT
+#define STRICT
+#endif
 #define WINDOWS_LEAN_AND_MEAN
 #include <windows.h>
 #undef WINDOWS_LEAN_AND_MEAN

+ 2 - 19
panda/src/wdxdisplay/wdxGraphicsWindow.cxx

@@ -15,26 +15,9 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
-#ifndef STRICT
-#define STRICT
-#endif
-#define D3D_OVERLOADS
-//#define  INITGUID  dont need this if linking w/dxguid.lib
-#include <d3d.h>
-#include "wdxGraphicsWindow.h"
-#include "wdxGraphicsPipe.h"
-#include "config_wdxdisplay.h"
-
-#include <keyboardButton.h>
-#include <mouseButton.h>
-#ifdef DO_PSTATS
-#include <pStatTimer.h>
-#endif
-#include "dxGraphicsStateGuardian.h"
 
-#include <errno.h>
-#include <time.h>
-#include <math.h>
+#include "wdxdisplay_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables