metaforce/Runtime/Particle/CDecalDataFactory.hpp

27 lines
929 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
#include <memory>
#include "Runtime/CFactoryMgr.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/IObj.hpp"
#include "Runtime/Streams/IOStreams.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/Particle/CDecalDescription.hpp"
2016-02-10 14:54:47 -08:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-02-10 14:54:47 -08:00
class CSimplePool;
2018-12-07 21:30:43 -08:00
class CDecalDataFactory {
static bool CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool);
static std::unique_ptr<CDecalDescription> CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
2018-12-07 21:30:43 -08:00
static void GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool, FourCC clsId, SQuadDescr& quad);
2017-02-13 13:29:00 -08:00
2016-02-10 14:54:47 -08:00
public:
static std::unique_ptr<CDecalDescription> GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
2016-02-10 14:54:47 -08:00
};
2017-02-13 13:29:00 -08:00
CFactoryFnReturn FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
CObjectReference*);
2021-04-10 01:42:06 -07:00
} // namespace metaforce