#include <Mesh.h>
Inheritance diagram for NSMeshes::TMeshLoader:
Static Public Member Functions | |
static BOOL | LoadMeshFromFile (const TString &filename, TMeshHeader &header, TArray< char > &vertices, TArray< WORD > &indices) |
This method loads mesh from specified mesh file. | |
static BOOL | LoadMeshDataFromFile (const TString &filename, TMeshHeader &header, char **vertices, char **indices) |
This method loads mesh from specified mesh file. | |
static BOOL | SaveMeshToFile (const TString &filename, const TMeshHeader &header, const TArray< char > &vertices, const TArray< WORD > &indices) |
This method save specified mesh file. |
Definition at line 80 of file Mesh.h.
|
This method loads mesh from specified mesh file.
Definition at line 103 of file Mesh.cpp. References DBGTEXT, DBGTEXTF, FALSE, NSFileSystem::TFSFileSystem::GetFile(), TGlobalsSystem::GetFileSystem(), and TString::GetString(). Here is the call graph for this function: ![]() |
|
This method loads mesh from specified mesh file.
Definition at line 29 of file Mesh.cpp. References NSFileSystem::TVirtualFile::Close(), DBGNL, DBGTEXT, DBGTEXTF, FALSE, NSFileSystem::TFSFileSystem::GetFile(), TGlobalsSystem::GetFileSystem(), TString::GetString(), and NSFileSystem::TVirtualFile::Read(). Here is the call graph for this function: ![]() |
|
This method save specified mesh file. Caller must provide valid header and array with required number of vertices and indices. In both arrays there may exist more items, but minimum number of items is checked.
Definition at line 177 of file Mesh.cpp. References DBGTEXTF, FALSE, TArray< T, align, size, step >::GetSize(), NSMeshes::TMeshHeader::m_indexCount, NSMeshes::TMeshHeader::m_magic, NSMeshes::TMeshHeader::m_vertexCount, and NSMeshes::TMeshHeader::m_vertexSize. Here is the call graph for this function: ![]() |