Enables saving and loading flexbodies from/to binary file.
More...
#include <FlexFactory.h>
Enables saving and loading flexbodies from/to binary file.
FILE STRUCTURE:
- Signature
- Metadata
- See also
- FlexBodyFileMetadata
- Flexbodies a. Header
- See also
- FlexBodyRecordHeader b. Data (not present if flexbody has flags IS_FAULTY==true or IS_ENABLED==false)
- Locator list
- Positions buffer
- Normals buffer
- Colors buffer (only present if flag HAS_TEXTURE_BLEND == true)
Definition at line 97 of file FlexFactory.h.
◆ ResultCode
Enumerator |
---|
RESULT_CODE_OK | |
RESULT_CODE_GENERAL_ERROR | |
RESULT_CODE_ERR_FOPEN_FAILED | |
RESULT_CODE_ERR_SIGNATURE_MISMATCH | |
RESULT_CODE_ERR_VERSION_MISMATCH | |
RESULT_CODE_ERR_CACHE_NUMBER_UNDEFINED | |
RESULT_CODE_FREAD_OUTPUT_INCOMPLETE | |
RESULT_CODE_FWRITE_OUTPUT_INCOMPLETE | |
Definition at line 100 of file FlexFactory.h.
◆ FlexBodyFileIO()
FlexBodyFileIO::FlexBodyFileIO |
( |
| ) |
|
◆ AddItemToSave()
void RoR::FlexBodyFileIO::AddItemToSave |
( |
FlexBody * |
fb | ) |
|
|
inline |
◆ CloseFile()
void RoR::FlexBodyFileIO::CloseFile |
( |
| ) |
|
|
inlineprivate |
◆ GetList()
std::vector<FlexBody*>& RoR::FlexBodyFileIO::GetList |
( |
| ) |
|
◆ GetLoadedItem()
◆ LoadFile()
◆ OpenFile()
void FlexBodyFileIO::OpenFile |
( |
const char * |
fopen_mode | ) |
|
|
private |
◆ ReadAndCheckSignature()
void FlexBodyFileIO::ReadAndCheckSignature |
( |
| ) |
|
|
private |
◆ ReadFlexbodyColorsBuffer()
◆ ReadFlexbodyHeader()
◆ ReadFlexbodyLocatorList()
◆ ReadFlexbodyNormalsBuffer()
◆ ReadFlexbodyPositionsBuffer()
◆ ReadFromFile()
void FlexBodyFileIO::ReadFromFile |
( |
void * |
dest, |
|
|
size_t |
length |
|
) |
| |
|
private |
◆ ReadMetadata()
◆ SaveFile()
◆ WriteFlexbodyColorsBuffer()
void FlexBodyFileIO::WriteFlexbodyColorsBuffer |
( |
FlexBody * |
flexbody | ) |
|
|
private |
◆ WriteFlexbodyHeader()
void FlexBodyFileIO::WriteFlexbodyHeader |
( |
FlexBody * |
flexbody | ) |
|
|
private |
◆ WriteFlexbodyLocatorList()
void FlexBodyFileIO::WriteFlexbodyLocatorList |
( |
FlexBody * |
flexbody | ) |
|
|
private |
◆ WriteFlexbodyNormalsBuffer()
void FlexBodyFileIO::WriteFlexbodyNormalsBuffer |
( |
FlexBody * |
flexbody | ) |
|
|
private |
◆ WriteFlexbodyPositionsBuffer()
void FlexBodyFileIO::WriteFlexbodyPositionsBuffer |
( |
FlexBody * |
flexbody | ) |
|
|
private |
◆ WriteMetadata()
void FlexBodyFileIO::WriteMetadata |
( |
| ) |
|
|
private |
◆ WriteSignature()
void FlexBodyFileIO::WriteSignature |
( |
| ) |
|
|
private |
◆ WriteToFile()
void FlexBodyFileIO::WriteToFile |
( |
void * |
source, |
|
|
size_t |
length |
|
) |
| |
|
private |
◆ FILE_FORMAT_VERSION
const unsigned int RoR::FlexBodyFileIO::FILE_FORMAT_VERSION = 1 |
|
static |
◆ m_cache_entry_number
int RoR::FlexBodyFileIO::m_cache_entry_number |
|
private |
◆ m_file
FILE* RoR::FlexBodyFileIO::m_file |
|
private |
◆ m_fileformat_version
unsigned int RoR::FlexBodyFileIO::m_fileformat_version |
|
private |
◆ m_items_to_save
std::vector<FlexBody*> RoR::FlexBodyFileIO::m_items_to_save |
|
private |
◆ m_loaded_items
◆ SIGNATURE
const char * FlexBodyFileIO::SIGNATURE = "RoR FlexBody" |
|
static |
The documentation for this class was generated from the following files: