| 1868 | namespace |
| 1869 | { |
| 1870 | std::pair<const granny_data_type_definition*, int32_t> FindGrannyComponent( const char* componentName, const granny_data_type_definition* vertexFormat ) |
| 1871 | { |
| 1872 | int32_t offset = 0; |
| 1873 | while( vertexFormat->Type != GrannyEndMember ) |
| 1874 | { |
| 1875 | if( strcmp( vertexFormat->Name, componentName ) == 0 ) |
| 1876 | { |
| 1877 | return std::make_pair( vertexFormat, offset ); |
| 1878 | } |
| 1879 | |
| 1880 | offset += GrannyGetMemberTypeSize( vertexFormat++ ); |
| 1881 | } |
| 1882 | return std::make_pair( nullptr, 0 ); |
| 1883 | } |
| 1884 | |
| 1885 | Vector3 ExtractVector3( const uint8_t* vertex, const std::pair<const granny_data_type_definition*, int32_t>& element ) |
| 1886 | { |
no outgoing calls
no test coverage detected