Assimp
v4.1. (December 2018)
|
Useful macrodefines. More...
Macros | |
#define | AMFIMPORTER_MACRO_HPP_INCLUDED |
#define | MACRO_ATTRREAD_CHECK_REF(pAttrName, pVarName, pFunction) |
Check curent attribute name and if it equal to requested then read value. More... | |
#define | MACRO_ATTRREAD_CHECK_RET(pAttrName, pVarName, pFunction) |
Check curent attribute name and if it equal to requested then read value. More... | |
#define | MACRO_ATTRREAD_LOOPBEG |
Begin of loop that read attributes values. More... | |
#define | MACRO_ATTRREAD_LOOPEND |
End of loop that read attributes values. More... | |
#define | MACRO_ATTRREAD_LOOPEND_WSKIP |
End of loop that read attributes values. More... | |
#define | MACRO_NODECHECK_LOOPBEGIN(pNodeName) |
Begin of loop of parsing child nodes. More... | |
#define | MACRO_NODECHECK_LOOPEND(pNodeName) |
End of loop of parsing child nodes. More... | |
#define | MACRO_NODECHECK_READCOMP_F(pNodeName, pReadFlag, pVarName) |
Check curent node name and if it equal to requested then read value. More... | |
#define | MACRO_NODECHECK_READCOMP_U32(pNodeName, pReadFlag, pVarName) |
Check curent node name and if it equal to requested then read value. More... | |
Useful macrodefines.
#define AMFIMPORTER_MACRO_HPP_INCLUDED |
#define MACRO_ATTRREAD_CHECK_REF | ( | pAttrName, | |
pVarName, | |||
pFunction | |||
) |
Check curent attribute name and if it equal to requested then read value.
Result write to output variable by reference. If result was read then "continue" will called.
[in] | pAttrName | - attribute name. |
[out] | pVarName | - output variable name. |
[in] | pFunction | - function which read attribute value and write it to pVarName. |
#define MACRO_ATTRREAD_CHECK_RET | ( | pAttrName, | |
pVarName, | |||
pFunction | |||
) |
Check curent attribute name and if it equal to requested then read value.
Result write to output variable using return value of pFunction. If result was read then "continue" will called.
[in] | pAttrName | - attribute name. |
[out] | pVarName | - output variable name. |
[in] | pFunction | - function which read attribute value and write it to pVarName. |
#define MACRO_ATTRREAD_LOOPBEG |
Begin of loop that read attributes values.
#define MACRO_ATTRREAD_LOOPEND |
End of loop that read attributes values.
#define MACRO_ATTRREAD_LOOPEND_WSKIP |
End of loop that read attributes values.
Difference from MACRO_ATTRREAD_LOOPEND in that: current macro skip unknown attributes, but MACRO_ATTRREAD_LOOPEND throw an exception.
#define MACRO_NODECHECK_LOOPBEGIN | ( | pNodeName | ) |
Begin of loop of parsing child nodes.
Do not add ';' at end.
[in] | pNodeName | - current node name. |
#define MACRO_NODECHECK_LOOPEND | ( | pNodeName | ) |
End of loop of parsing child nodes.
[in] | pNodeName | - current node name. |
#define MACRO_NODECHECK_READCOMP_F | ( | pNodeName, | |
pReadFlag, | |||
pVarName | |||
) |
Check curent node name and if it equal to requested then read value.
Result write to output variable of type "float". If result was read then "continue" will called. Also check if node data already read then raise exception.
[in] | pNodeName | - node name. |
[in,out] | pReadFlag | - read flag. |
[out] | pVarName | - output variable name. |
#define MACRO_NODECHECK_READCOMP_U32 | ( | pNodeName, | |
pReadFlag, | |||
pVarName | |||
) |
Check curent node name and if it equal to requested then read value.
Result write to output variable of type "uint32_t". If result was read then "continue" will called. Also check if node data already read then raise exception.
[in] | pNodeName | - node name. |
[in,out] | pReadFlag | - read flag. |
[out] | pVarName | - output variable name. |