summaryrefslogtreecommitdiff
path: root/engine/l_studio.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/l_studio.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'engine/l_studio.h')
-rw-r--r--engine/l_studio.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/engine/l_studio.h b/engine/l_studio.h
new file mode 100644
index 0000000..56c4c15
--- /dev/null
+++ b/engine/l_studio.h
@@ -0,0 +1,55 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Export functions from l_studio.cpp
+//
+// $NoKeywords: $
+//===========================================================================//
+
+#ifndef L_STUDIO_H
+#define L_STUDIO_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "engine/ivmodelrender.h"
+#include "datacache/imdlcache.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+struct LightDesc_t;
+class IStudioRender;
+struct vcollide_t;
+
+extern IStudioRender *g_pStudioRender;
+
+void UpdateStudioRenderConfig( void );
+void InitStudioRender( void );
+void ShutdownStudioRender( void );
+unsigned short& FirstShadowOnModelInstance( ModelInstanceHandle_t handle );
+
+//-----------------------------------------------------------------------------
+// Converts world lights to materialsystem lights
+//-----------------------------------------------------------------------------
+bool WorldLightToMaterialLight( dworldlight_t* worldlight, LightDesc_t& light );
+
+//-----------------------------------------------------------------------------
+// Computes the center of the studio model for illumination purposes
+//-----------------------------------------------------------------------------
+void R_ComputeLightingOrigin( IClientRenderable *pRenderable, studiohdr_t* pStudioHdr, const matrix3x4_t &matrix, Vector& center );
+
+void DrawSavedModelDebugOverlays( void );
+
+// Used to force the value of r_rootlod depending on if sv_cheats is 0 and if we're on a server.
+bool CheckVarRange_r_rootlod();
+bool CheckVarRange_r_lod();
+
+extern ConVar r_drawmodelstatsoverlay;
+extern ConVar r_drawmodelstatsoverlaydistance;
+extern ConVar r_lod;
+extern ConVar r_drawmodellightorigin;
+
+#endif
+