summaryrefslogtreecommitdiff
path: root/engine/DevShotGenerator.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/DevShotGenerator.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'engine/DevShotGenerator.h')
-rw-r--r--engine/DevShotGenerator.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/engine/DevShotGenerator.h b/engine/DevShotGenerator.h
new file mode 100644
index 0000000..96cdb23
--- /dev/null
+++ b/engine/DevShotGenerator.h
@@ -0,0 +1,58 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef DEVSHOTGENERATOR_H
+#define DEVSHOTGENERATOR_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "filesystem.h"
+#include "utlvector.h"
+#include "utlsymbol.h"
+#include "MapReslistGenerator.h"
+
+// initialization
+void DevShotGenerator_Init();
+void DevShotGenerator_Shutdown();
+void DevShotGenerator_BuildMapList();
+
+//-----------------------------------------------------------------------------
+// Purpose: Takes development screenshots at camera positions over a set of levels
+//-----------------------------------------------------------------------------
+class CDevShotGenerator
+{
+public:
+ CDevShotGenerator();
+
+ // initializes the object to enable devshot generation
+ void EnableDevShotGeneration( bool usemaplistfile );
+
+ // starts the dev shot generation (starts cycling maps)
+ void StartDevShotGeneration();
+
+ void BuildMapList();
+ void NextMap();
+
+ void Shutdown();
+
+ // returns true if reslist generation is enabled
+ bool IsEnabled() { return m_bDevShotsEnabled; }
+
+private:
+ bool m_bDevShotsEnabled;
+ int m_iCurrentMap;
+ bool m_bUsingMapList;
+
+ // list of all maps to scan
+ CUtlVector<maplist_map_t> m_Maps;
+};
+
+// singleton accessor
+CDevShotGenerator &DevShotGenerator();
+
+
+#endif // DEVSHOTGENERATOR_H