Head Tracker

- Adds in a more advanced head tracker that uses bone array to get the exact position of head
- Currently the circle changes size based on distance from player as the radius is set to a constant 5, this needs to be based off distance
This commit is contained in:
ifBars
2023-10-31 02:17:10 -06:00
parent 3a04238eec
commit a889a66554
2 changed files with 31 additions and 4 deletions
+11
View File
@@ -3,6 +3,17 @@
namespace render
{
void DrawCircle(HDC hdc, int x, int y, int radius, COLORREF color)
{
HBRUSH hBrush = CreateSolidBrush(color);
HBRUSH hOldBrush = (HBRUSH)SelectObject(hdc, hBrush);
Ellipse(hdc, x - radius, y - radius, x + radius, y + radius);
SelectObject(hdc, hOldBrush);
DeleteObject(hBrush);
}
void DrawBorderBox(HDC hdc, int x, int y, int w, int h, COLORREF borderColor)
{
HBRUSH hBorderBrush = CreateSolidBrush(borderColor);