- fbx: add binary reading draft. Started from scratch after my first attempt had design flaws. The binary reader now sits on the lexer stage (really) and generates a (fake) token sequence similar to the text lexer's output - this means most parsing code can go unaffected.
This commit is contained in:
@@ -152,7 +152,13 @@ void FBXImporter::InternReadFile( const std::string& pFile,
|
||||
// syntax elements of FBX (brackets, commas, key:value mappings)
|
||||
TokenList tokens;
|
||||
try {
|
||||
Tokenize(tokens,begin);
|
||||
|
||||
if (!strncmp(begin,"Kaydara FBX Binary",18)) {
|
||||
TokenizeBinary(tokens,begin,contents.size());
|
||||
}
|
||||
else {
|
||||
Tokenize(tokens,begin);
|
||||
}
|
||||
|
||||
// use this information to construct a very rudimentary
|
||||
// parse-tree representing the FBX scope structure
|
||||
|
||||
Reference in New Issue
Block a user