summaryrefslogtreecommitdiff
path: root/utils/hlfaceposer/ICloseCaptionManager.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 /utils/hlfaceposer/ICloseCaptionManager.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/hlfaceposer/ICloseCaptionManager.h')
-rw-r--r--utils/hlfaceposer/ICloseCaptionManager.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/utils/hlfaceposer/ICloseCaptionManager.h b/utils/hlfaceposer/ICloseCaptionManager.h
new file mode 100644
index 0000000..a82a019
--- /dev/null
+++ b/utils/hlfaceposer/ICloseCaptionManager.h
@@ -0,0 +1,33 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef ICLOSECAPTIONMANAGER_H
+#define ICLOSECAPTIONMANAGER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+typedef struct tagRECT RECT;
+class CSentence;
+class StudioModel;
+class CChoreoWidgetDrawHelper;
+
+class ICloseCaptionManager
+{
+public:
+ virtual void Reset( void ) = 0;
+
+ virtual void Process( char const *tokenname, float duration, int languageid ) = 0;
+
+ virtual bool LookupUnicodeText( int languageId, char const *token, wchar_t *outbuf, size_t count ) = 0;
+ // Same as above, except strips out <> command tokens
+ virtual bool LookupStrippedUnicodeText( int languageId, char const *token, wchar_t *outbuf, size_t count ) = 0;
+};
+
+extern ICloseCaptionManager *closecaptionmanager;
+
+#endif // ICLOSECAPTIONMANAGER_H