diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/utils/vbsp/disp_ivp.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/utils/vbsp/disp_ivp.h')
| -rw-r--r-- | sp/src/utils/vbsp/disp_ivp.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/sp/src/utils/vbsp/disp_ivp.h b/sp/src/utils/vbsp/disp_ivp.h index 2c473f9a..c89daceb 100644 --- a/sp/src/utils/vbsp/disp_ivp.h +++ b/sp/src/utils/vbsp/disp_ivp.h @@ -1,49 +1,49 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef DISP_IVP_H
-#define DISP_IVP_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "utlvector.h"
-#include "../../public/disp_tesselate.h"
-
-
-class CPhysCollisionEntry;
-struct dmodel_t;
-
-
-// This provides the template functions that the engine's tesselation code needs
-// so we can share the code in VBSP.
-class CVBSPTesselateHelper : public CBaseTesselateHelper
-{
-public:
- void EndTriangle()
- {
- m_pIndices->AddToTail( m_TempIndices[0] );
- m_pIndices->AddToTail( m_TempIndices[1] );
- m_pIndices->AddToTail( m_TempIndices[2] );
- }
-
- DispNodeInfo_t& GetNodeInfo( int iNodeBit )
- {
- // VBSP doesn't care about these. Give it back something to play with.
- static DispNodeInfo_t dummy;
- return dummy;
- }
-
-public:
- CUtlVector<unsigned short> *m_pIndices;
-};
-
-
-extern void Disp_AddCollisionModels( CUtlVector<CPhysCollisionEntry *> &collisionList, dmodel_t *pModel, int contentsMask );
-extern void Disp_BuildVirtualMesh( int contentsMask );
-extern bool Disp_HasPower4Displacements();
-
-#endif // DISP_IVP_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef DISP_IVP_H +#define DISP_IVP_H +#ifdef _WIN32 +#pragma once +#endif + +#include "utlvector.h" +#include "../../public/disp_tesselate.h" + + +class CPhysCollisionEntry; +struct dmodel_t; + + +// This provides the template functions that the engine's tesselation code needs +// so we can share the code in VBSP. +class CVBSPTesselateHelper : public CBaseTesselateHelper +{ +public: + void EndTriangle() + { + m_pIndices->AddToTail( m_TempIndices[0] ); + m_pIndices->AddToTail( m_TempIndices[1] ); + m_pIndices->AddToTail( m_TempIndices[2] ); + } + + DispNodeInfo_t& GetNodeInfo( int iNodeBit ) + { + // VBSP doesn't care about these. Give it back something to play with. + static DispNodeInfo_t dummy; + return dummy; + } + +public: + CUtlVector<unsigned short> *m_pIndices; +}; + + +extern void Disp_AddCollisionModels( CUtlVector<CPhysCollisionEntry *> &collisionList, dmodel_t *pModel, int contentsMask ); +extern void Disp_BuildVirtualMesh( int contentsMask ); +extern bool Disp_HasPower4Displacements(); + +#endif // DISP_IVP_H |