forked from Diavonir/Overwatch-2-Cheat-Aimbot-Esp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRender.h
28 lines (22 loc) · 1.13 KB
/
Render.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <imgui.h>
#include <string>
#include <functional>
#include "Vector.h"
extern ImFont* m_pTahomaFont;
extern ImFont* m_pTahomaFontLarge;
class Renderer
{
public:
void Initialize(ImFont* Font, ImFont* LargeFont);
void BeginScene();
void EndScene();
float RenderText(const std::string& text, const ImVec2& position, float size, uint32_t color, bool center = false, bool Large = false);
void RenderLine(const ImVec2& from, const ImVec2& to, uint32_t color, float thickness = 1.0f);
void RenderCircle(const ImVec2& position, float radius, uint32_t color, float thickness = 1.0f, uint32_t segments = 16);
void RenderCircleFilled(const ImVec2& position, float radius, uint32_t color, uint32_t segments = 16);
void RenderRect(const ImVec2& from, const ImVec2& to, uint32_t color, float rounding = 0.0f, uint32_t roundingCornersFlags = ImDrawCornerFlags_All, float thickness = 1.0f);
void RenderRectFilled(const ImVec2& from, const ImVec2& to, uint32_t color, float rounding = 0.0f, uint32_t roundingCornersFlags = ImDrawCornerFlags_All);
};
extern Renderer* g_Renderer;
Vector FromHSB(float hue, float saturation, float brightness);