initial
This commit is contained in:
40
game/client/c_tracer.h
Normal file
40
game/client/c_tracer.h
Normal file
@ -0,0 +1,40 @@
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef C_TRACER_H
|
||||
#define C_TRACER_H
|
||||
|
||||
class Vector;
|
||||
class ParticleDraw;
|
||||
class CMeshBuilder;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Tracer_Draw(): draws a tracer, assuming the modelview matrix is identity
|
||||
// This function accepts all arguments in CAMERA (pre-projected) space
|
||||
//
|
||||
// arguments
|
||||
// [in] Vector& : The origin of the tracer (CAMERA space)
|
||||
// [in] Vector& : The direction and length of the tracer (CAMERA space)
|
||||
// [in] float : The tracer width (CAMERA space)
|
||||
// [in] float* : r, g, b, a (0 - 1)
|
||||
//-----------------------------------------------------------------------------
|
||||
void Tracer_Draw( ParticleDraw* pDraw, Vector const& start, Vector const& delta,
|
||||
float width, float* color, float startV = 0.0, float endV = 1.0 );
|
||||
|
||||
void Tracer_Draw( CMeshBuilder *pMeshBuilder, Vector const& start, Vector const& delta, float width, float* color, float startV = 0.0, float endV = 1.0 );
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Computes the four verts to draw the tracer with, in the following order:
|
||||
// start vertex left side, start vertex right side
|
||||
// end vertex left side, end vertex right side
|
||||
// returne false if the tracer is offscreen
|
||||
//-----------------------------------------------------------------------------
|
||||
bool Tracer_ComputeVerts( const Vector &start, const Vector &delta, float width, Vector *pVerts );
|
||||
|
||||
#endif // C_TRACER_H
|
Reference in New Issue
Block a user