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.
64 lines
1.3 KiB
64 lines
1.3 KiB
//========= Copyright © 1996-2005, 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; } |
|
bool IsSkyEnabled() const { return !m_bNoSky; } |
|
float GetBrightness() const { return m_fBrightness; } |
|
|
|
virtual void GetToolRecordingState( KeyValues *msg ); |
|
|
|
protected: |
|
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; |
|
bool m_bNoSky; |
|
float m_fBrightness; |
|
|
|
public: |
|
C_PointCamera *m_pNext; |
|
}; |
|
|
|
C_PointCamera *GetPointCameraList(); |
|
|
|
#endif // C_POINTCAMERA_H
|
|
|