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.

26 lines
668 B

  1. //===== Copyright � Valve Corporation, All rights reserved. ========//
  2. #ifndef BSP_LOG_HDR
  3. #define BSP_LOG_HDR
  4. #include "filesystem.h"
  5. struct cbrushside_t;
  6. class CBspDebugLog
  7. {
  8. FileHandle_t m_File;
  9. int m_nBaseVertex;
  10. bool m_bFlush;
  11. int m_nBrushCount;
  12. int m_nBoxCount;
  13. public:
  14. CBspDebugLog( const char *pName );
  15. ~CBspDebugLog();
  16. void AddBox( const char *pName, const char *pMtl, const Vector &mins, const Vector &maxs );
  17. void AddBrush( const char *pName, const char *pMtl, cbrushside_t * RESTRICT pSides, int nSides );
  18. int GetPrimCount()const { return m_nBrushCount + m_nBoxCount; }
  19. void ResetPrimCount() { m_nBrushCount = m_nBoxCount = 0; }
  20. };
  21. #endif