The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
Functions
Helpers.cpp File Reference

Code file for helper functions. More...

#include "Helpers.h"

Functions

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...
 

Function Documentation

◆ 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
hHue.
sSaturation.
vValue.
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.