| 131 | } |
| 132 | |
| 133 | unsigned int readInt32(FILE *file, bool littleEndian) { |
| 134 | int data = fgetc(file); |
| 135 | data = data << 8 | fgetc(file); |
| 136 | data = data << 8 | fgetc(file); |
| 137 | data = data << 8 | fgetc(file); |
| 138 | |
| 139 | return littleEndian ? endian_swap(static_cast<unsigned int>(data)) : data; |
| 140 | } |
| 141 | |
| 142 | // Move these to a native resource handler class |
| 143 | std::vector<CarModel> LoadOBJ(std::string obj_path) { |
no test coverage detected