| 154 | } |
| 155 | |
| 156 | void SetColor(TwBar* bar, Float3 color) |
| 157 | { |
| 158 | int32 rgb[3] = { int32(Saturate(color.x) * 255.0f), |
| 159 | int32(Saturate(color.y) * 255.0f), |
| 160 | int32(Saturate(color.z) * 255.0f) }; |
| 161 | TwCall(TwSetParam(bar, nullptr, "color", TW_PARAM_INT32, 3, rgb)); |
| 162 | } |
| 163 | |
| 164 | void SetAlpha(TwBar* bar, float alpha) |
| 165 | { |