forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIOcclusionSystem.h
More file actions
55 lines (41 loc) · 1.51 KB
/
IOcclusionSystem.h
File metadata and controls
55 lines (41 loc) · 1.51 KB
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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#ifndef IOCCLUSIONSYSTEM_H
#define IOCCLUSIONSYSTEM_H
#ifdef _WIN32
#pragma once
#endif
class Vector;
class VMatrix;
struct model_t;
class VPlane;
class CUtlBuffer;
//-----------------------------------------------------------------------------
// Occlusion system interface
//-----------------------------------------------------------------------------
class IOcclusionSystem
{
public:
// Activate/deactivate an occluder brush model
virtual void ActivateOccluder( int nOccluderIndex, bool bActive ) = 0;
// Sets the view transform
virtual void SetView( const Vector &vecCameraPos, float flFOV, const VMatrix &worldToCamera,
const VMatrix &cameraToProjection, const VPlane &nearClipPlane ) = 0;
// Test for occlusion (bounds specified in abs space)
virtual bool IsOccluded( const Vector &vecAbsMins, const Vector &vecAbsMaxs ) = 0;
// Sets global occlusion parameters
virtual void SetOcclusionParameters( float flMaxOccludeeArea, float flMinOccluderArea ) = 0;
virtual float MinOccluderArea() const = 0;
// Render debugging overlay
virtual void DrawDebugOverlays() = 0;
};
//-----------------------------------------------------------------------------
// Singleton accessor
//-----------------------------------------------------------------------------
IOcclusionSystem *OcclusionSystem();
#endif // IOCCLUSIONSYSTEM_H