diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tools/vmt/vmttool.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'tools/vmt/vmttool.h')
| -rw-r--r-- | tools/vmt/vmttool.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/vmt/vmttool.h b/tools/vmt/vmttool.h new file mode 100644 index 0000000..28e5ffe --- /dev/null +++ b/tools/vmt/vmttool.h @@ -0,0 +1,50 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: VMT tool; main UI smarts class +// +//============================================================================= + +#ifndef VMTTOOL_H +#define VMTTOOL_H + +#ifdef _WIN32 +#pragma once +#endif + + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +class CDmeEditorTypeDictionary; + + +//----------------------------------------------------------------------------- +// Singleton interfaces +//----------------------------------------------------------------------------- +extern CDmeEditorTypeDictionary *g_pEditorTypeDict; + + +//----------------------------------------------------------------------------- +// Allows the doc to call back into the VMT editor tool +//----------------------------------------------------------------------------- +class IVMTDocCallback +{ +public: + // Called by the doc when the data changes + virtual void OnDocChanged( const char *pReason, int nNotifySource, int nNotifyFlags ) = 0; + + // Update the editor dict based on the current material parameters + virtual void AddShaderParameter( const char *pParam, const char *pWidget, const char *pTextType ) = 0; + + // Update the editor dict based on the current material parameters + virtual void RemoveShaderParameter( const char *pParam ) = 0; + + // Adds flags, tool parameters + virtual void AddFlagParameter( const char *pParam ) = 0; + virtual void AddToolParameter( const char *pParam, const char *pWidget = NULL, const char *pTextType = NULL ) = 0; + virtual void RemoveAllFlagParameters() = 0; + virtual void RemoveAllToolParameters() = 0; +}; + + +#endif // VMTTOOL_H |