winmain.h

来自「一个基于向量方法的追逐躲避AI算法」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef _WINMAINHEADER
#define _WINMAINHEADER

// Windows Header Files:
#include <windows.h>
#include <windef.h>
#include <commctrl.h>
#include <commdlg.h>
#include <wingdi.h> 

#define	_WINWIDTH	1024
#define	_WINHEIGHT	768

extern	bool	ShowTrails;
extern	bool	ShowVectors;
extern	bool	BasicChase;
extern	bool	BasicEvade;
extern	bool	InterceptChase;
extern	bool	PotentialChase;

void	CopyBackBufferToWindow(void);
void	DrawLine(int x1, int y1, int x2, int y2, int thk, COLORREF clr);
void	DrawRectangle(RECT *r, int thk, COLORREF borderCLR, COLORREF fillCLR);
void	DrawEllipse(RECT *r, int thk, COLORREF clr);
void	ClearBackBuffer(void);
BOOL	IsKeyDown(short KeyCode);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?