1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/game/client/fx_staticline.h

47 lines
1.1 KiB
C
Raw Normal View History

2013-06-27 06:22:04 +08:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#include "clientsideeffects.h"
#if !defined( FXSTATICLINE_H )
#define FXSTATICLINE_H
#ifdef _WIN32
#pragma once
#endif
#include "mathlib/vector.h"
class IMaterial;
#define FXSTATICLINE_FLIP_HORIZONTAL 0x00000001 //Swaps the TC's so the texture is flipped horizontally
#define FXSTATICLINE_FLIP_VERTICAL 0x00000002 //Swaps the TC's so the texture is flipped vertically
class CFXStaticLine : public CClientSideEffect
{
public:
CFXStaticLine( const char *name, const Vector& start, const Vector& end, float scale, float life, const char *shader, unsigned int flags );
~CFXStaticLine( void );
virtual void Draw( double frametime );
virtual bool IsActive( void );
virtual void Destroy( void );
virtual void Update( double frametime );
protected:
IMaterial *m_pMaterial;
Vector m_vecStart, m_vecEnd;
unsigned int m_uiFlags;
float m_fLife;
float m_fScale;
};
#endif