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.

55 lines
1.8 KiB

  1. //========= Copyright 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. extern IStudioRender *g_pStudioRender;
  21. void UpdateStudioRenderConfig( void );
  22. void InitStudioRender( void );
  23. void ShutdownStudioRender( void );
  24. unsigned short& FirstShadowOnModelInstance( ModelInstanceHandle_t handle );
  25. //-----------------------------------------------------------------------------
  26. // Converts world lights to materialsystem lights
  27. //-----------------------------------------------------------------------------
  28. bool WorldLightToMaterialLight( dworldlight_t* worldlight, LightDesc_t& light );
  29. //-----------------------------------------------------------------------------
  30. // Computes the center of the studio model for illumination purposes
  31. //-----------------------------------------------------------------------------
  32. void R_ComputeLightingOrigin( IClientRenderable *pRenderable, studiohdr_t* pStudioHdr, const matrix3x4_t &matrix, Vector& center );
  33. void DrawSavedModelDebugOverlays( void );
  34. // Used to force the value of r_rootlod depending on if sv_cheats is 0 and if we're on a server.
  35. bool CheckVarRange_r_rootlod();
  36. bool CheckVarRange_r_lod();
  37. extern ConVar r_drawmodelstatsoverlay;
  38. extern ConVar r_drawmodelstatsoverlaydistance;
  39. extern ConVar r_lod;
  40. extern ConVar r_drawmodellightorigin;
  41. #endif