Browse Source

use precomp hdrs

cxgeorge 24 years ago
parent
commit
8fb0e507e2

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

@@ -1,6 +1,6 @@
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
                    dtoolutil:c dtoolbase:c dtool:m
-				   
+                   
 #begin lib_target
   #define TARGET cull
   #define LOCAL_LIBS \
@@ -34,6 +34,8 @@
     geomBinUnsorted.h
 
   #define IGATESCAN all
+  
+  #define PRECOMPILED_HEADER cull_headers.h
 
 #end lib_target
 

+ 2 - 13
panda/src/cull/config_cull.cxx

@@ -16,19 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "config_cull.h"
-#include "cullTraverser.h"
-#include "geomBin.h"
-#include "geomBinUnsorted.h"
-#include "geomBinBackToFront.h"
-#include "geomBinGroup.h"
-#include "geomBinNormal.h"
-#include "geomBinTransition.h"
-#include "geomBinAttribute.h"
-#include "geomBinFixed.h"
-#include "directRenderTransition.h"
-
-#include <dconfig.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 ConfigureDef(config_cull);
 NotifyCategoryDef(cull, "");

+ 2 - 6
panda/src/cull/cullState.cxx

@@ -16,12 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "cullState.h"
-#include "config_cull.h"
-
-#include <indent.h>
-#include <graphicsStateGuardian.h>
-#include <allAttributesWrapper.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 //     Function: CullState::check_currency

+ 2 - 5
panda/src/cull/cullStateLookup.cxx

@@ -16,11 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "cullStateLookup.h"
-#include "cullState.h"
-#include "cullStateSubtree.h"
-
-#include <indent.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 //     Function: CullStateLookup::Destructor

+ 2 - 2
panda/src/cull/cullStateSubtree.cxx

@@ -16,8 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "cullStateSubtree.h"
-#include "config_cull.h"
+#include "cull_headers.h"
+#pragma hdrstop
 
 
 ////////////////////////////////////////////////////////////////////

+ 2 - 22
panda/src/cull/cullTraverser.cxx

@@ -16,28 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "cullTraverser.h"
-#include "geomBinTransition.h"
-#include "geomBinAttribute.h"
-#include "cullStateSubtree.h"
-#include "geomBinNormal.h"
-#include "geomBinFixed.h"
-#include "directRenderTransition.h"
-#include "config_cull.h"
-
-#include <wrt.h>
-#include <frustumCullTraverser.h>
-#include <graphicsStateGuardian.h>
-#include <decalTransition.h>
-#include <pruneTransition.h>
-#include <transformTransition.h>
-#include <nodeTransitionWrapper.h>
-#include <switchNode.h>
-#include <indent.h>
-#include <config_sgraphutil.h>  // for implicit_app_traversal
-#include <config_sgattrib.h>    // for support_decals
-#include <string_utils.h>
-#include <pStatTimer.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle CullTraverser::_type_handle;
 

+ 59 - 0
panda/src/cull/cull_headers.h

@@ -0,0 +1,59 @@
+// Filename: cull_headers.h
+// Created by:  georges (30May01)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
+//
+// All use of this software is subject to the terms of the Panda 3d
+// Software license.  You should have received a copy of this license
+// along with this source code; you will also find a current copy of
+// the license at http://www.panda3d.org/license.txt .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include <allAttributesWrapper.h>
+#include <config_sgattrib.h>    // for support_decals
+#include <config_sgraphutil.h>  // for implicit_app_traversal
+#include <dconfig.h>
+#include <decalTransition.h>
+#include <directRenderTraverser.h>
+#include <frustumCullTraverser.h>
+#include <geometricBoundingVolume.h>
+#include <graphicsStateGuardian.h>
+#include <graphicsStateGuardianBase.h>
+#include <indent.h>
+#include <nodeAttributes.h>
+#include <nodeTransitionWrapper.h>
+#include <pruneTransition.h>
+#include <pStatTimer.h>
+#include <string.h>
+#include <string_utils.h>
+#include <switchNode.h>
+#include <transformAttribute.h>
+#include <transformTransition.h>
+#include <transparencyAttribute.h>
+#include <transparencyTransition.h>
+#include <wrt.h>
+
+#include "config_cull.h"
+#include "cullState.h"
+#include "cullStateLookup.h"
+#include "cullStateSubtree.h"
+#include "cullTraverser.h"
+#include "directRenderTransition.h"
+#include "geomBin.h"
+#include "geomBinAttribute.h"
+#include "geomBinBackToFront.h"
+#include "geomBinFixed.h"
+#include "geomBinGroup.h"
+#include "geomBinNormal.h"
+#include "geomBinTransition.h"
+#include "geomBinUnsorted.h"
+
+#pragma hdrstop
+

+ 2 - 3
panda/src/cull/directRenderTransition.cxx

@@ -16,9 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "directRenderTransition.h"
-
-#include <indent.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle DirectRenderTransition::_type_handle;
 

+ 2 - 12
panda/src/cull/geomBin.cxx

@@ -16,18 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBin.h"
-#include "cullTraverser.h"
-#include "config_cull.h"
-#include "geomBinNormal.h"
-#include "geomBinUnsorted.h"
-#include "geomBinFixed.h"
-#include "geomBinBackToFront.h"
-
-#include <indent.h>
-#include <nodeAttributes.h>
-#include <graphicsStateGuardian.h>
-#include <string_utils.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBin::_type_handle;
 

+ 2 - 7
panda/src/cull/geomBinAttribute.cxx

@@ -16,13 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinAttribute.h"
-#include "geomBinTransition.h"
-
-#include <graphicsStateGuardianBase.h>
-#include <indent.h>
-
-#include <string.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinAttribute::_type_handle;
 

+ 2 - 9
panda/src/cull/geomBinBackToFront.cxx

@@ -16,15 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinBackToFront.h"
-#include "cullTraverser.h"
-
-#include <nodeAttributes.h>
-#include <graphicsStateGuardian.h>
-#include <transformTransition.h>
-#include <transformAttribute.h>
-#include <geometricBoundingVolume.h>
-#include <pStatTimer.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinBackToFront::_type_handle;
 

+ 2 - 10
panda/src/cull/geomBinFixed.cxx

@@ -16,16 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinFixed.h"
-#include "cullTraverser.h"
-
-#include <nodeAttributes.h>
-#include <graphicsStateGuardian.h>
-#include <transformTransition.h>
-#include <transformAttribute.h>
-#include <geometricBoundingVolume.h>
-#include <directRenderTraverser.h>
-#include <pStatTimer.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinFixed::_type_handle;
 

+ 2 - 6
panda/src/cull/geomBinGroup.cxx

@@ -16,12 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinGroup.h"
-#include "cullTraverser.h"
-
-#include <indent.h>
-#include <nodeAttributes.h>
-#include <graphicsStateGuardian.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinGroup::_type_handle;
 

+ 2 - 7
panda/src/cull/geomBinNormal.cxx

@@ -16,13 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinNormal.h"
-#include "geomBinUnsorted.h"
-#include "geomBinBackToFront.h"
-
-#include <transparencyTransition.h>
-#include <transparencyAttribute.h>
-#include <nodeAttributes.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinNormal::_type_handle;
 

+ 2 - 6
panda/src/cull/geomBinTransition.cxx

@@ -16,12 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinTransition.h"
-#include "geomBinAttribute.h"
-
-#include <indent.h>
-
-#include <string.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinTransition::_type_handle;
 

+ 2 - 7
panda/src/cull/geomBinUnsorted.cxx

@@ -16,13 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "geomBinUnsorted.h"
-#include "cullTraverser.h"
-
-#include <indent.h>
-#include <nodeAttributes.h>
-#include <graphicsStateGuardian.h>
-#include <pStatTimer.h>
+#include "cull_headers.h"
+#pragma hdrstop
 
 TypeHandle GeomBinUnsorted::_type_handle;
 

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

@@ -1,6 +1,6 @@
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
                    dtoolutil:c dtoolbase:c dtool:m
-				   
+                   
 #begin lib_target
   #define TARGET device
   #define LOCAL_LIBS \
@@ -35,6 +35,8 @@
     trackerData.I trackerData.h \
     trackerNode.I trackerNode.h
 
+  #define PRECOMPILED_HEADER device_headers.h
+
   #define IGATESCAN all
 
 #end lib_target

+ 2 - 2
panda/src/device/analogNode.cxx

@@ -16,8 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "analogNode.h"
-#include "config_device.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 2 - 4
panda/src/device/buttonNode.cxx

@@ -16,10 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "buttonNode.h"
-#include "config_device.h"
-
-#include <buttonEventDataTransition.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 2 - 3
panda/src/device/clientAnalogDevice.cxx

@@ -16,9 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientAnalogDevice.h"
-
-#include <indent.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientAnalogDevice::_type_handle;
 

+ 2 - 2
panda/src/device/clientBase.cxx

@@ -16,8 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientBase.h"
-#include "config_device.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientBase::_type_handle;
 

+ 2 - 3
panda/src/device/clientButtonDevice.cxx

@@ -16,9 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientButtonDevice.h"
-
-#include <indent.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientButtonDevice::_type_handle;
 

+ 2 - 4
panda/src/device/clientDevice.cxx

@@ -16,10 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientDevice.h"
-#include "clientBase.h"
-
-#include <indent.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientDevice::_type_handle;
 

+ 2 - 3
panda/src/device/clientDialDevice.cxx

@@ -16,9 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientDialDevice.h"
-
-#include <indent.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientDialDevice::_type_handle;
 

+ 2 - 1
panda/src/device/clientTrackerDevice.cxx

@@ -16,6 +16,7 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "clientTrackerDevice.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 TypeHandle ClientTrackerDevice::_type_handle;

+ 2 - 14
panda/src/device/config_device.cxx

@@ -16,20 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "config_device.h"
-#include "analogNode.h"
-#include "buttonNode.h"
-#include "clientAnalogDevice.h"
-#include "clientBase.h"
-#include "clientButtonDevice.h"
-#include "clientDevice.h"
-#include "clientDialDevice.h"
-#include "clientTrackerDevice.h"
-#include "dialNode.h"
-#include "mouse.h"
-#include "trackerNode.h"
-
-#include <dconfig.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 Configure(config_device);
 NotifyCategoryDef(device, "");

+ 41 - 0
panda/src/device/device_headers.h

@@ -0,0 +1,41 @@
+// Filename: device_headers.h
+// Created by:  georges (30May01)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
+//
+// All use of this software is subject to the terms of the Panda 3d
+// Software license.  You should have received a copy of this license
+// along with this source code; you will also find a current copy of
+// the license at http://www.panda3d.org/license.txt .
+//
+// To contact the maintainers of this program write to
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include <buttonEvent.h>
+#include <buttonEventDataTransition.h>
+#include <buttonHandle.h>
+#include <dconfig.h>
+#include <indent.h>
+#include <mouseData.h>
+
+#include "analogNode.h"
+#include "buttonNode.h"
+#include "clientAnalogDevice.h"
+#include "clientBase.h"
+#include "clientButtonDevice.h"
+#include "clientDevice.h"
+#include "clientDialDevice.h"
+#include "clientTrackerDevice.h"
+#include "config_device.h"
+#include "dialNode.h"
+#include "mouse.h"
+#include "trackerData.h"
+#include "trackerNode.h"
+
+#pragma hdrstop
+

+ 2 - 2
panda/src/device/dialNode.cxx

@@ -16,8 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "dialNode.h"
-#include "config_device.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 2 - 5
panda/src/device/mouse.cxx

@@ -15,11 +15,8 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
-#include "mouse.h"
-
-#include <mouseData.h>
-#include <buttonHandle.h>
-#include <buttonEvent.h>
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 2 - 1
panda/src/device/trackerData.cxx

@@ -16,7 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "trackerData.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 //     Function: TrackerData::Copy Assignment Operator

+ 2 - 2
panda/src/device/trackerNode.cxx

@@ -16,8 +16,8 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "trackerNode.h"
-#include "config_device.h"
+#include "device_headers.h"
+#pragma hdrstop
 
 ////////////////////////////////////////////////////////////////////
 // Static variables