Team Fortress 2 Source Code as on 22/4/2020
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.

41 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "disp_defs.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. // ---------------------------------------------------------------------- //
  11. // Global tables.
  12. // ---------------------------------------------------------------------- //
  13. // These map CCoreDispSurface neighbor orientations (which are actually edge indices)
  14. // into our 'degrees of rotation' representation.
  15. int g_CoreDispNeighborOrientationMap[4][4] =
  16. {
  17. {ORIENTATION_CCW_180, ORIENTATION_CCW_270, ORIENTATION_CCW_0, ORIENTATION_CCW_90},
  18. {ORIENTATION_CCW_90, ORIENTATION_CCW_180, ORIENTATION_CCW_270, ORIENTATION_CCW_0},
  19. {ORIENTATION_CCW_0, ORIENTATION_CCW_90, ORIENTATION_CCW_180, ORIENTATION_CCW_270},
  20. {ORIENTATION_CCW_270, ORIENTATION_CCW_0, ORIENTATION_CCW_90, ORIENTATION_CCW_180}
  21. };
  22. // ---------------------------------------------------------------------- //
  23. // Global variables.
  24. // ---------------------------------------------------------------------- //
  25. CUtlVector<unsigned char> g_DispLMAlpha;
  26. CUtlVector<unsigned char, CHunkMemory<unsigned char> > g_DispLightmapSamplePositions;
  27. CUtlVector<CDispGroup*> g_DispGroups;
  28. bool g_bDispOrthoRender = false;
  29. ConVar r_DrawDisp( "r_DrawDisp", "1", FCVAR_CHEAT, "Toggles rendering of displacment maps" );
  30. ConVar r_DispWalkable( "r_DispWalkable", "0", FCVAR_CHEAT );
  31. ConVar r_DispBuildable( "r_DispBuildable", "0", FCVAR_CHEAT );