summaryrefslogtreecommitdiff
path: root/public/movieobjects/dmedccmakefile.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 /public/movieobjects/dmedccmakefile.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/movieobjects/dmedccmakefile.h')
-rw-r--r--public/movieobjects/dmedccmakefile.h131
1 files changed, 131 insertions, 0 deletions
diff --git a/public/movieobjects/dmedccmakefile.h b/public/movieobjects/dmedccmakefile.h
new file mode 100644
index 0000000..c8578ff
--- /dev/null
+++ b/public/movieobjects/dmedccmakefile.h
@@ -0,0 +1,131 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Describes the way to compile data in DCC files (describes an export step)
+//
+//===========================================================================//
+
+#ifndef DMEDCCMAKEFILE_H
+#define DMEDCCMAKEFILE_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "movieobjects/dmemakefile.h"
+
+
+//-----------------------------------------------------------------------------
+// Describes a source for DCC makefiles
+//-----------------------------------------------------------------------------
+class CDmeSourceDCCFile : public CDmeSource
+{
+ DEFINE_ELEMENT( CDmeSourceDCCFile, CDmeSource );
+
+public:
+ CDmaStringArray m_RootDCCObjects;
+ CDmaVar< int > m_ExportType; // 0 == model, 1 == skeletal animation
+ CDmaVar< float > m_FrameStart;
+ CDmaVar< float > m_FrameEnd;
+ CDmaVar< float > m_FrameIncrement;
+};
+
+
+//-----------------------------------------------------------------------------
+// Strictly here to customize OpenEditor
+//-----------------------------------------------------------------------------
+class CDmeSourceMayaFile : public CDmeSourceDCCFile
+{
+ DEFINE_ELEMENT( CDmeSourceMayaFile, CDmeSourceDCCFile );
+};
+
+class CDmeSourceMayaModelFile : public CDmeSourceMayaFile
+{
+ DEFINE_ELEMENT( CDmeSourceMayaModelFile, CDmeSourceMayaFile );
+};
+
+class CDmeSourceMayaAnimationFile : public CDmeSourceMayaFile
+{
+ DEFINE_ELEMENT( CDmeSourceMayaAnimationFile, CDmeSourceMayaFile );
+};
+
+class CDmeSourceXSIFile : public CDmeSourceDCCFile
+{
+ DEFINE_ELEMENT( CDmeSourceXSIFile, CDmeSourceDCCFile );
+};
+
+
+//-----------------------------------------------------------------------------
+// Describes a DCC asset
+//-----------------------------------------------------------------------------
+class CDmeDCCMakefile : public CDmeMakefile
+{
+ DEFINE_ELEMENT( CDmeDCCMakefile, CDmeMakefile );
+
+public:
+ virtual void GetOutputs( CUtlVector<CUtlString> &fullPaths );
+
+private:
+ virtual CDmElement *CreateOutputElement( );
+ virtual void DestroyOutputElement( CDmElement *pOutput );
+ virtual const char *GetOutputDirectoryID() { return "makefiledir:..\\dmx"; }
+ bool m_bFlushFile;
+};
+
+
+//-----------------------------------------------------------------------------
+// Describes a Maya asset
+//-----------------------------------------------------------------------------
+class CDmeMayaMakefile : public CDmeDCCMakefile
+{
+ DEFINE_ELEMENT( CDmeMayaMakefile, CDmeDCCMakefile );
+};
+
+
+//-----------------------------------------------------------------------------
+// Describes a XSI asset
+//-----------------------------------------------------------------------------
+class CDmeXSIMakefile : public CDmeDCCMakefile
+{
+ DEFINE_ELEMENT( CDmeXSIMakefile, CDmeDCCMakefile );
+
+public:
+ // Compiling is just exporting the data in the file
+ virtual DmeMakefileType_t *GetMakefileType();
+ virtual DmeMakefileType_t* GetSourceTypes();
+};
+
+
+//-----------------------------------------------------------------------------
+// Describes a Maya model/animation asset
+//-----------------------------------------------------------------------------
+class CDmeMayaModelMakefile : public CDmeMayaMakefile
+{
+ DEFINE_ELEMENT( CDmeMayaModelMakefile, CDmeMayaMakefile );
+
+public:
+ // Compiling is just exporting the data in the file
+ virtual DmeMakefileType_t *GetMakefileType();
+ virtual DmeMakefileType_t* GetSourceTypes();
+};
+
+class CDmeMayaAnimationMakefile : public CDmeMayaMakefile
+{
+ DEFINE_ELEMENT( CDmeMayaAnimationMakefile, CDmeMayaMakefile );
+
+public:
+ // Compiling is just exporting the data in the file
+ virtual DmeMakefileType_t *GetMakefileType();
+ virtual DmeMakefileType_t* GetSourceTypes();
+};
+
+
+//-----------------------------------------------------------------------------
+// Describes a XSI animation asset
+//-----------------------------------------------------------------------------
+class CDmeXSIAnimationMakefile : public CDmeXSIMakefile
+{
+ DEFINE_ELEMENT( CDmeXSIAnimationMakefile, CDmeXSIMakefile );
+};
+
+
+#endif // DMEDCCMAKEFILE_H