| 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 | } |
no outgoing calls
no test coverage detected