#pragma once

#pragma once

#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#include <dwmapi.h>
#pragma comment(lib, "dwmapi.lib")

#include <iostream>
#include<Windows.h>

using namespace std;

static MARGINS Margin;
static LPDIRECT3D9              g_pD3D = NULL;
static LPDIRECT3DDEVICE9        g_pd3dDevice = NULL;
static D3DPRESENT_PARAMETERS    g_d3dpp = {};
static ID3DXLine* pLine = 0;
static ID3DXFont* Font;

static HWND ھ, GameHwnd;
static RECT ھ;
static int ڿ, ڸ;

//עᴰҪõĴ
static WNDCLASSEX wClass;


//Σ֮ĵ
typedef void(*Draw)();
static Draw Render;


//Ϣ
LRESULT WinProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam);

bool ʼD3D();

void ͸(HWND Ϸھ, Draw ƺ);

void Ϣѭ();

void (D3DCOLOR Color, float X1, float Y1, float X2, float Y2, float Width);

void (float X, float Y, const char* Str, D3DCOLOR Color);

void (float X, float Y, float W, float H, float Width, D3DCOLOR Color);

void ƿʼ();

void ƽ();





