mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-18 01:15:26 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
30
Resource/cooker/CModelCooker.h
Normal file
30
Resource/cooker/CModelCooker.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef CMODELCOOKER_H
|
||||
#define CMODELCOOKER_H
|
||||
|
||||
#include "../model/CModel.h"
|
||||
#include "../EFormatVersion.h"
|
||||
#include <FileIO/FileIO.h>
|
||||
|
||||
class CModelCooker
|
||||
{
|
||||
CModel *mpModel;
|
||||
EGame mVersion;
|
||||
u32 mNumMatSets;
|
||||
u32 mNumSurfaces;
|
||||
u32 mNumVertices;
|
||||
u8 mVertexFormat;
|
||||
std::vector<CVertex> mVertices;
|
||||
EVertexDescription mVtxAttribs;
|
||||
|
||||
CModelCooker();
|
||||
void GenerateSurfaceData();
|
||||
void WriteEditorModel(COutputStream& Out);
|
||||
void WriteModelPrime(COutputStream& Out);
|
||||
|
||||
public:
|
||||
static void WriteCookedModel(CModel *pModel, EGame Version, COutputStream& Out);
|
||||
static void WriteUncookedModel(CModel *pModel, COutputStream& Out);
|
||||
static u32 GetCMDLVersion(EGame Version);
|
||||
};
|
||||
|
||||
#endif // CMODELCOOKER_H
|
||||
Reference in New Issue
Block a user