MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / VectorColorToRGBA_TempToVector4

Function VectorColorToRGBA_TempToVector4

TombEngine/Math/Utils.cpp:175–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 Vector4 VectorColorToRGBA_TempToVector4(Vector4 c)
176 {
177 return c;
178
179 /*
180 auto to8 = [](float v) -> unsigned int {
181 float x = std::clamp(v, 0.0f, 1.0f) * 255.0f;
182 return static_cast<unsigned int>(std::lround(x));
183 };
184
185 unsigned int R = to8(c.x);
186 unsigned int G = to8(c.y);
187 unsigned int B = to8(c.z);
188 unsigned int A = to8(c.w);
189
190 return (R) | (G << 8) | (B << 16) | (A << 24);*/
191 }
192}

Callers 15

DrawLines2DMethod · 0.85
DrawLines3DMethod · 0.85
DrawTriangles3DMethod · 0.85
DrawSortedFacesMethod · 0.85
DrawSpritesMethod · 0.85
DrawSingleSpriteMethod · 0.85
DrawOverlaysMethod · 0.85
DrawDisplaySpritesMethod · 0.85
DrawFullScreenQuadMethod · 0.85
DrawFullScreenSpriteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected