赞
踩
头文件
- #include <d3d9.h>
- #include <d3dx9.h>
- #include <dwmapi.h>
- #pragma comment(lib, "d3d9.lib")
- #pragma comment(lib, "d3dx9.lib")
- #pragma comment(lib, "dwmapi.lib")
-
-
- #include "imgui/imgui.h"
- #include "imgui/imgui_impl_dx9.h"
- #include "imgui/imgui_impl_win32.h"
-
-
- typedef struct {
- BYTE R, G, B, A;
- }RGBA;
-
- //画矩形,文字之类的单独放在这个函数里
- typedef void(*Draw)();
- static Draw Render;
- static Draw DrawMenu;
-
- #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
-
- extern void CreateWindowAndInitImGui(HWND GameHwnd, Draw WndDraw, Draw DrawMenu);
- void MessageWhile();
- void DrawBox(int x, int y, int w, int h, RGBA color, float T);
- void DrawCircle(int x, int y, float r, RGBA color, float T);
- void DrawLine(int x1, int y1, int x2, int y2, RGBA color, float T);
- void Draw_Text(int x, int y, const char* str, RGBA color);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。