| 810 | } |
| 811 | |
| 812 | static unsigned char NormalizeColorComponent(float ColorComponent) |
| 813 | { |
| 814 | return (unsigned char)(std::clamp(ColorComponent, 0.0f, 1.0f) * 255.0f + 0.5f); // +0.5f to round to nearest |
| 815 | } |
| 816 | |
| 817 | void CGraphics_Threaded::SetColorVertex(const CColorVertex *pArray, size_t Num) |
| 818 | { |
no outgoing calls
no test coverage detected