source-engine/game/client/c_point_camera.h

65 lines
1.3 KiB
C
Raw Normal View History

2023-10-03 17:23:56 +03:00
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
2020-04-22 12:56:21 -04:00
//
// 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; }
2023-10-03 17:23:56 +03:00
bool IsSkyEnabled() const { return !m_bNoSky; }
float GetBrightness() const { return m_fBrightness; }
2020-04-22 12:56:21 -04:00
virtual void GetToolRecordingState( KeyValues *msg );
2023-10-03 17:23:56 +03:00
protected:
2020-04-22 12:56:21 -04:00
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;
2023-10-03 17:23:56 +03:00
bool m_bNoSky;
float m_fBrightness;
2020-04-22 12:56:21 -04:00
public:
C_PointCamera *m_pNext;
};
C_PointCamera *GetPointCameraList();
#endif // C_POINTCAMERA_H