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.

53 lines
1.8 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Export functions from l_studio.cpp
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifndef L_STUDIO_H
  8. #define L_STUDIO_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "engine/ivmodelrender.h"
  13. #include "datacache/imdlcache.h"
  14. //-----------------------------------------------------------------------------
  15. // Forward declarations
  16. //-----------------------------------------------------------------------------
  17. struct LightDesc_t;
  18. class IStudioRender;
  19. struct vcollide_t;
  20. void UpdateStudioRenderConfig( void );
  21. void InitStudioRender( void );
  22. void ShutdownStudioRender( void );
  23. unsigned short& FirstShadowOnModelInstance( ModelInstanceHandle_t handle );
  24. //-----------------------------------------------------------------------------
  25. // Converts world lights to materialsystem lights
  26. //-----------------------------------------------------------------------------
  27. bool WorldLightToMaterialLight( dworldlight_t* worldlight, LightDesc_t& light );
  28. //-----------------------------------------------------------------------------
  29. // Computes the center of the studio model for illumination purposes
  30. //-----------------------------------------------------------------------------
  31. void R_ComputeLightingOrigin( IClientRenderable *pRenderable, studiohdr_t* pStudioHdr, const matrix3x4_t &matrix, Vector& center );
  32. void DrawSavedModelDebugOverlays( void );
  33. // Used to force the value of r_rootlod depending on if sv_cheats is 0 and if we're on a server.
  34. bool CheckVarRange_r_rootlod();
  35. bool CheckVarRange_r_lod();
  36. extern ConVar r_drawmodelstatsoverlay;
  37. extern ConVar r_drawmodelstatsoverlaydistance;
  38. extern ConVar r_lod;
  39. extern ConVar r_drawmodellightorigin;
  40. #endif