Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Revision: $
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #ifndef ISPATIALPARTITIONINTERNAL_H
  9. #define ISPATIALPARTITIONINTERNAL_H
  10. #include "ispatialpartition.h"
  11. //-----------------------------------------------------------------------------
  12. // These methods of the spatial partition manager are only used in the engine
  13. //-----------------------------------------------------------------------------
  14. abstract_class ISpatialPartitionInternal : public ISpatialPartition
  15. {
  16. public:
  17. // Call this to clear out the spatial partition and to re-initialize
  18. // it given a particular world size
  19. virtual void Init( const Vector& worldmin, const Vector& worldmax ) = 0;
  20. virtual void DrawDebugOverlays() = 0;
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Method to get at the singleton implementation of the spatial partition mgr
  24. //-----------------------------------------------------------------------------
  25. ISpatialPartitionInternal* SpatialPartition();
  26. //-----------------------------------------------------------------------------
  27. // Create/destroy a custom spatial partition
  28. //-----------------------------------------------------------------------------
  29. ISpatialPartition *CreateSpatialPartition( const Vector& worldmin, const Vector& worldmax );
  30. void DestroySpatialPartition( ISpatialPartition * );
  31. //-----------------------------------------------------------------------------
  32. // Method to get at the singleton implementation of the spatial partition mgr
  33. //-----------------------------------------------------------------------------
  34. ISpatialPartitionInternal* SpatialPartitionOld();
  35. //-----------------------------------------------------------------------------
  36. // Create/destroy a custom spatial partition
  37. //-----------------------------------------------------------------------------
  38. ISpatialPartition *CreateSpatialPartitionOld( const Vector& worldmin, const Vector& worldmax );
  39. void DestroySpatialPartitionOld( ISpatialPartition * );
  40. #endif // ISPATIALPARTITIONINTERNAL_H