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.

38 lines
853 B

  1. //================ Copyright (c) 1996-2009 Valve Corporation. All Rights Reserved. =================
  2. //
  3. // Maps can have any number of cordons. They can be toggled independently, but
  4. // CMapDoc::m_bIsCordoning dictates whether culling against the active cordons is enabled or not.
  5. //
  6. //==================================================================================================
  7. #ifndef CORDON_H
  8. #define CORDON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <utlvector.h>
  13. #include <utlstring.h>
  14. #include "boundbox.h"
  15. #define DEFAULT_CORDON_NAME "cordon"
  16. //
  17. // Each cordon is a named collection of bounding boxes.
  18. //
  19. struct Cordon_t
  20. {
  21. inline Cordon_t()
  22. {
  23. m_bActive = false;
  24. }
  25. CUtlString m_szName;
  26. bool m_bActive; // True means cull using this cordon when cordoning is enabled.
  27. CUtlVector<BoundBox> m_Boxes;
  28. };
  29. #endif // CORDON_H