1双重缓冲区详解:
#include<iostream>
#include<Easyx.h>
using namespace std;
int main()
{
BeginBatchDraw();
while (running)
{
cleardevice();
fillcircle(110, 110, 100);
FlushBatchDraw();
Sleep(3000);
}
return 0;
}
GetTickCount()
DWOR time=GetTickCount()
获取程序自运行以来到现在的毫秒数
动画帧实现
#pragma comment (lib,"MSIMG32.LIB")
void putimage_alpha(int x, int y, IMAGE* img)
{
int w = img->getwidth(), h = img->getheight();
AlphaBlend(GetImageHDC(NULL), x, y, w, h,
GetImageHDC(img), 0, 0, w, h, { AC_SRC_OVER,0,255,AC_SRC_ALPHA });
}
关于字符集,宽窄字符,字符串拼接函数
wstring,LPCTSTR,TCHAR
_stprintf_s(目标缓冲区(LPCTSTR),缓冲区大小(size_t),格式字符串,插入到目标缓冲区(LPCTSTR)) 格式说明符:%d,%s……