Code file for helper functions.
More...
|
void | MakeWideFileName (_In_ const char *filename, _Out_ wchar_t *&wfilename) |
| Make wide file name from a narrow one. More...
|
|
XMFLOAT4 | HSVtoRGB (float h, float s, float v) |
| Convert color from HSV to RGB. More...
|
|
◆ HSVtoRGB()
XMFLOAT4 HSVtoRGB |
( |
float |
h, |
|
|
float |
s, |
|
|
float |
v |
|
) |
| |
Convert color in HSV format to RGB format. This is a helper function for generating a pseudorandom color. I snagged it from the interwebs.
- Parameters
-
h | Hue. |
s | Saturation. |
v | Value. |
- Returns
- Color in RGB format with an alpha value of 1.
◆ MakeWideFileName()
void MakeWideFileName |
( |
_In_ const char * |
filename, |
|
|
_Out_ wchar_t *& |
wfilename |
|
) |
| |
Helper function to make a wide file name out of a regular one. Creates a wide buffer and stores the wide version of a regular file name in it. Remember to delete the wide file name after it has been used.
- Parameters
-
filename | [in] The original file name. |
wfilename | [out] The wide file name. |