-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDraw.h
49 lines (44 loc) · 1.42 KB
/
Draw.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include <Windows.h>
#include <string>
#include "ImGui/imgui.h"
#include "ImGui/imgui_internal.h"
#include "imgui_impl_dx11.h"
#include"Struct.h"
class DrawUtil
{
public:
static wchar_t* char2wchar(const char* cchar);//ÀàÐÍת»»
};
namespace Draw
{
extern RGBA ºìÉ«;
extern RGBA »ÆÉ«;
extern RGBA À¶É«;
extern RGBA ÂÌÉ«;
extern RGBA »ÒÉ«;
extern RGBA °×É«;
extern RGBA ºÚÉ«;
extern RGBA ²£Á§ºÚ;
extern RGBA ²£Á§À¶;
extern RGBA ²£Á§»Æ;
extern RGBA ÇàÂÌ;
extern RGBA Àî×Ó;
extern RGBA µÀ¶;
extern RGBA Ðɺì;
extern RGBA ²ÝƺÂÌ;
extern RGBA ²£Á§;
void DrawNewText(int x, int y, RGBA* color, const char* str);
void DrawStrokeText(int x, int y, RGBA* color, const char* str);
void DrawRect(int x, int y, int w, int h, RGBA* color, int thickness);
void DrawRectIm(int x, int y, int w, int h, ImVec4 color);
void DrawFilledRect(int x, int y, int w, int h, RGBA* color);
void DrawCircleFilled(int x, int y, int radius, RGBA* color, int segments);
void DrawCircle(int x, int y, int radius, RGBA* color, int segments);
void DrawTriangle(int x1, int y1, int x2, int y2, int x3, int y3, RGBA* color, float thickne);
void DrawTriangleFilled(int x1, int y1, int x2, int y2, int x3, int y3, RGBA* color);
void DrawLine(int x1, int y1, int x2, int y2, RGBA* color, int thickness);
void DrawLineIm(int x1, int y1, int x2, int y2, ImVec4 color);
void DrawXBloodBar(MRect r,float Hp);
void DrawYBloodBar(MRect r, float Hp);
}