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.

40 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, 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, CHunkMemory<unsigned char> > g_DispLightmapSamplePositions;
  26. CUtlVector<CDispGroup*> g_DispGroups;
  27. bool g_bDispOrthoRender = false;
  28. ConVar r_DrawDisp( "r_DrawDisp", "1", FCVAR_CHEAT, "Toggles rendering of displacment maps" );
  29. ConVar r_DispWalkable( "r_DispWalkable", "0", FCVAR_CHEAT );
  30. ConVar r_DispBuildable( "r_DispBuildable", "0", FCVAR_CHEAT );