Assimp  v4.1. (December 2018)
3DSLoader.cpp File Reference

Implementation of the 3ds importer class. More...

Macros

#define ASSIMP_3DS_BEGIN_CHUNK()
 
#define ASSIMP_3DS_END_CHUNK()
 

Functions

D3DS::NodeFindNode (D3DS::Node *root, const std::string &name)
 
template<class T >
bool KeyUniqueCompare (const T &first, const T &second)
 

Variables

static const aiImporterDesc desc
 

Detailed Description

Implementation of the 3ds importer class.

http://www.the-labs.com/Blender/3DS-details.html

Macro Definition Documentation

◆ ASSIMP_3DS_BEGIN_CHUNK

#define ASSIMP_3DS_BEGIN_CHUNK ( )
Value:
while (true) { \
if (stream->GetRemainingSizeToLimit() < sizeof(Discreet3DS::Chunk)){ \
return; \
} \
Discreet3DS::Chunk chunk; \
ReadChunk(&chunk); \
int chunkSize = chunk.Size-sizeof(Discreet3DS::Chunk); \
if(chunkSize <= 0) \
continue; \
const unsigned int oldReadLimit = stream->SetReadLimit( \
stream->GetCurrentPos() + chunkSize); \

◆ ASSIMP_3DS_END_CHUNK

#define ASSIMP_3DS_END_CHUNK ( )
Value:
stream->SkipToReadLimit(); \
stream->SetReadLimit(oldReadLimit); \
if (stream->GetRemainingSizeToLimit() == 0) \
return; \
}

Function Documentation

◆ FindNode()

D3DS::Node* FindNode ( D3DS::Node root,
const std::string &  name 
)

◆ KeyUniqueCompare()

template<class T >
bool KeyUniqueCompare ( const T &  first,
const T &  second 
)

Variable Documentation

◆ desc

const aiImporterDesc desc
static
Initial value:
= {
"Discreet 3DS Importer",
"",
"",
"Limited animation support",
0,
0,
0,
0,
"3ds prj"
}
Assimp::D3DS::Discreet3DS::Chunk
data structure for a single chunk in a .3ds file
Definition: 3DSHelper.h:79
quicktest.stream
stream
Definition: debian/tests/quicktest.py:19
aiImporterFlags_SupportBinaryFlavour
@ aiImporterFlags_SupportBinaryFlavour
Indicates that there is a binary encoding of the file format; and that it is supported.
Definition: importerdesc.h:62