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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user