Counter Strike : Global Offensive Source Code
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.

48 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DISP_IVP_H
  7. #define DISP_IVP_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "utlvector.h"
  12. #include "../../public/disp_tesselate.h"
  13. class CPhysCollisionEntry;
  14. struct dmodel_t;
  15. // This provides the template functions that the engine's tesselation code needs
  16. // so we can share the code in VBSP.
  17. class CVBSPTesselateHelper : public CBaseTesselateHelper
  18. {
  19. public:
  20. void EndTriangle()
  21. {
  22. m_pIndices->AddToTail( m_TempIndices[0] );
  23. m_pIndices->AddToTail( m_TempIndices[1] );
  24. m_pIndices->AddToTail( m_TempIndices[2] );
  25. }
  26. DispNodeInfo_t& GetNodeInfo( int iNodeBit )
  27. {
  28. // VBSP doesn't care about these. Give it back something to play with.
  29. static DispNodeInfo_t dummy;
  30. return dummy;
  31. }
  32. public:
  33. CUtlVector<unsigned short> *m_pIndices;
  34. };
  35. extern void Disp_AddCollisionModels( CUtlVector<CPhysCollisionEntry *> &collisionList, dmodel_t *pModel, int contentsMask );
  36. extern void Disp_BuildVirtualMesh( int contentsMask );
  37. #endif // DISP_IVP_H