blob: adac0dd6188e5030df85499e27581549d12663d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
|