blob: 8bca63af443c91dab0f8df16c65592f5fecdde3a (
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
57
58
59
60
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef C_POINTCAMERA_H
#define C_POINTCAMERA_H
#ifdef _WIN32
#pragma once
#endif
#include "c_baseentity.h"
#include "basetypes.h"
class C_PointCamera : public C_BaseEntity
{
public:
DECLARE_CLASS( C_PointCamera, C_BaseEntity );
DECLARE_CLIENTCLASS();
public:
C_PointCamera();
~C_PointCamera();
bool IsActive();
// C_BaseEntity.
virtual bool ShouldDraw();
float GetFOV();
float GetResolution();
bool IsFogEnabled();
void GetFogColor( unsigned char &r, unsigned char &g, unsigned char &b );
float GetFogStart();
float GetFogMaxDensity();
float GetFogEnd();
bool UseScreenAspectRatio() const { return m_bUseScreenAspectRatio; }
virtual void GetToolRecordingState( KeyValues *msg );
private:
float m_FOV;
float m_Resolution;
bool m_bFogEnable;
color32 m_FogColor;
float m_flFogStart;
float m_flFogEnd;
float m_flFogMaxDensity;
bool m_bActive;
bool m_bUseScreenAspectRatio;
public:
C_PointCamera *m_pNext;
};
C_PointCamera *GetPointCameraList();
#endif // C_POINTCAMERA_H
|