diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/ispatialpartitioninternal.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/ispatialpartitioninternal.h')
| -rw-r--r-- | engine/ispatialpartitioninternal.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/engine/ispatialpartitioninternal.h b/engine/ispatialpartitioninternal.h new file mode 100644 index 0000000..adac0dd --- /dev/null +++ b/engine/ispatialpartitioninternal.h @@ -0,0 +1,56 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Revision: $ +// $NoKeywords: $ +//=============================================================================// + +#ifndef ISPATIALPARTITIONINTERNAL_H +#define ISPATIALPARTITIONINTERNAL_H + +#include "ispatialpartition.h" + + +//----------------------------------------------------------------------------- +// These methods of the spatial partition manager are only used in the engine +//----------------------------------------------------------------------------- +abstract_class ISpatialPartitionInternal : public ISpatialPartition +{ +public: + // Call this to clear out the spatial partition and to re-initialize + // it given a particular world size + virtual void Init( const Vector& worldmin, const Vector& worldmax ) = 0; + + virtual void DrawDebugOverlays() = 0; +}; + + +//----------------------------------------------------------------------------- +// Method to get at the singleton implementation of the spatial partition mgr +//----------------------------------------------------------------------------- +ISpatialPartitionInternal* SpatialPartition(); + +//----------------------------------------------------------------------------- +// Create/destroy a custom spatial partition +//----------------------------------------------------------------------------- +ISpatialPartition *CreateSpatialPartition( const Vector& worldmin, const Vector& worldmax ); +void DestroySpatialPartition( ISpatialPartition * ); + + +//----------------------------------------------------------------------------- +// Method to get at the singleton implementation of the spatial partition mgr +//----------------------------------------------------------------------------- +ISpatialPartitionInternal* SpatialPartitionOld(); + +//----------------------------------------------------------------------------- +// Create/destroy a custom spatial partition +//----------------------------------------------------------------------------- +ISpatialPartition *CreateSpatialPartitionOld( const Vector& worldmin, const Vector& worldmax ); +void DestroySpatialPartitionOld( ISpatialPartition * ); + + +#endif // ISPATIALPARTITIONINTERNAL_H + + + |