MCPcopy Create free account
hub / github.com/assimp/assimp / ReadColor

Function ReadColor

code/AssetLib/SIB/SIBImporter.cpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static aiColor3D ReadColor(StreamReaderLE *stream) {
155 float r = stream->GetF4();
156 float g = stream->GetF4();
157 float b = stream->GetF4();
158 stream->GetU4(); // Colors have an unused(?) 4th component.
159 return aiColor3D(r, g, b);
160}
161
162static void UnknownChunk(StreamReaderLE * /*stream*/, const SIBChunk &chunk) {
163 char temp[4] = {

Callers 2

ReadMaterialFunction · 0.70
ReadLightInfoFunction · 0.70

Calls 3

aiColor3DClass · 0.50
GetF4Method · 0.45
GetU4Method · 0.45

Tested by

no test coverage detected