blob: 2beeb99d30a8fd5d754ae17d8749418da507c64c (
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
|
//========= 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
|