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.

51 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #include "vrad.h"
  14. bool bOrigFacesTouched[MAX_MAP_FACES];
  15. //-----------------------------------------------------------------------------
  16. // Pupose: clear (reset) the bOrigFacesTouched list -- parellels the original
  17. // face list allowing an original face to only be processed once in
  18. // pairing edges!
  19. //-----------------------------------------------------------------------------
  20. void ResetOrigFacesTouched( void )
  21. {
  22. for( int i = 0; i < MAX_MAP_FACES; i++ )
  23. {
  24. bOrigFacesTouched[i] = false;
  25. }
  26. }
  27. //-----------------------------------------------------------------------------
  28. // Purpose: mark an original faces as touched (dirty)
  29. // Input: index - index of the original face touched
  30. //-----------------------------------------------------------------------------
  31. void SetOrigFaceTouched( int index )
  32. {
  33. bOrigFacesTouched[index] = true;
  34. }
  35. //-----------------------------------------------------------------------------
  36. // Purpose: return whether or not an original face has been touched
  37. // Input: index - index of the original face touched
  38. // Output: true/false
  39. //-----------------------------------------------------------------------------
  40. bool IsOrigFaceTouched( int index )
  41. {
  42. return bOrigFacesTouched[index];
  43. }