2
3
4
5
13
14
18
19
23
24
28
29
33
34
38
39
44
45
46
52
53
54
55
56
57
58 static bool Load(
const std::string& fileName,
MeshPack* outMeshPack);
63
64
65
66
67
71
72
73
74
75
79
80
81
82
83
87
88
89
90
91
92
93 static bool WriteSASSET(
int folderIndex,
const std::string& fileName,
const MeshPack* outMeshPack);
#define SPICES_PROFILE_ZONE
static bool FileLibrary_Read(const FileHandle *handle, uint64_t data_size, void *out_data, uint64_t *out_bytes_read)
Read Specific size of data form the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Write(const FileHandle *handle, uint64_t data_size, const void *data, uint64_t *out_bytes_written)
Write given data to the file handle pointer.
static bool FileLibrary_Open(const char *path, FileModes mode, bool binary, FileHandle *out_handle)
Open the file using given string.
static void FileLibrary_Close(FileHandle *handle)
Close the file by the file handle.
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.
File Static Function Library.
static bool Load(const std::string &fileName, MeshPack *outMeshPack)
Public called API, it is entrance.
static bool WriteSASSET(int folderIndex, const std::string &fileName, const MeshPack *outMeshPack)
Write the read data to the sasset file.
static bool LoadFromSASSET(const std::string &fileName, const MeshPack *outMeshPack)
Load data from a .sasset file.
static bool LoadFromFBX(const std::string &fileName, MeshPack *outMeshPack)
Load data from a .fbx file.
static bool LoadFromOBJ(const std::string &fileName, MeshPack *outMeshPack)
Load data from a .obj file.
MeshLoader Class. This class only defines static function for load data from mesh file.
MeshPack Class. This class defines some basic behaves and variables. This class need to be inherited ...
static void GenerateMeshLodClusterHierarchy(MeshPack *meshPack)
Generate Mesh Lod Resources.
Class for provide functions of process Meshpack.
static bool StringsEqual(const char *str0, const char *str1)
Determine if the strings given are equal. Platform Specific.
String Static Function Library.
const std::string defaultFBXMeshPath
Const variable: FBX Mesh File Path.
constexpr char MeshLoaderSignOver[100]
Const variable: Mesh File Confirm header over.
constexpr char MeshLoaderSignStart[100]
Const variable: Mesh File Confirm header staer.
const std::string defaultBinMeshPath
Const variable: Bin Mesh File Path.
const std::string defaultOBJMeshPath
Const variable: OBJ Mesh File Path.
@ FILE_MODE_READ
model : read
@ FILE_MODE_WRITE
model : write
MeshExtension
This enum defines tree types of mesh file.
This Struct is FILE* handle pointer Wrapper.
Meshlet Class. This class defines what Meshlet data.