metaforce/DataSpec/DNAMP1/CMDL.hpp

47 lines
1.4 KiB
C++
Raw Normal View History

2015-07-25 03:43:49 +00:00
#ifndef _DNAMP1_CMDL_HPP_
#define _DNAMP1_CMDL_HPP_
2018-06-29 20:21:36 +00:00
#include "DataSpec/DNACommon/DNACommon.hpp"
#include "DataSpec/DNACommon/CMDL.hpp"
2015-07-25 03:43:49 +00:00
#include "CMDLMaterials.hpp"
#include "DNAMP1.hpp"
2015-08-13 07:29:00 +00:00
#include "CINF.hpp"
#include "CSKR.hpp"
2015-07-25 03:43:49 +00:00
2016-03-04 23:04:53 +00:00
#include <athena/FileReader.hpp>
2015-10-21 01:34:35 +00:00
2017-12-29 08:08:12 +00:00
namespace DataSpec::DNAMP1
2015-07-25 03:43:49 +00:00
{
2015-07-28 02:24:36 +00:00
struct CMDL
2015-07-25 03:43:49 +00:00
{
2015-08-05 21:46:07 +00:00
static bool Extract(const SpecBase& dataSpec,
PAKEntryReadStream& rs,
2016-03-04 23:04:53 +00:00
const hecl::ProjectPath& outPath,
PAKRouter<PAKBridge>& pakRouter,
2015-08-11 23:32:02 +00:00
const PAK::Entry& entry,
bool force,
2017-12-29 08:08:12 +00:00
hecl::blender::Token& btok,
std::function<void(const hecl::SystemChar*)> fileChanged);
2015-10-07 01:17:17 +00:00
static void Name(const SpecBase& dataSpec,
PAKEntryReadStream& rs,
PAKRouter<PAKBridge>& pakRouter,
PAK::Entry& entry)
{
DNACMDL::NameCMDL<PAKRouter<PAKBridge>, MaterialSet>(rs, pakRouter, entry, dataSpec);
}
2016-03-04 23:04:53 +00:00
static bool Cook(const hecl::ProjectPath& outPath,
const hecl::ProjectPath& inPath,
2017-12-29 08:08:12 +00:00
const DNACMDL::Mesh& mesh);
2015-11-14 02:28:45 +00:00
2016-03-04 23:04:53 +00:00
static bool HMDLCook(const hecl::ProjectPath& outPath,
const hecl::ProjectPath& inPath,
2017-12-29 08:08:12 +00:00
const DNACMDL::Mesh& mesh);
2015-07-25 03:43:49 +00:00
};
}
#endif // _DNAMP1_CMDL_HPP_