Hi, ルフィさん
I just modify the source code and it should be no problem with GB2312 encode.
You can see the sanpshot here:
ttp://2.bp.blogspot.com/_RbSDW2RIDok/TBG6bJFm5FI/AAAAAAAAAw4/hEbgxiZ4vLY/s1600/DxLib_GB2312.png
Usage is same as function reference.
For example:
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
DxLib::SetGraphMode(640, 480, 32, 60);
DxLib::ChangeWindowMode(TRUE); // Window mode
if(DxLib::DxLib_Init() == -1)
{
return -1;
}
char GB2312Text[15] = {0x47, 0x42, 0x32, 0x33, 0x31, 0x32, 0xb1, 0xe0, 0xc2, 0xeb, 0xb2, 0xe2, 0xca, 0xd4, 0x00}; // test string for GB2312 encode
int FontHandle = DxLib::CreateFontToHandle("SimHei", 16, 1, -1, DX_CHARSET_GB2312);
DxLib::SetDrawScreen(DX_SCREEN_BACK);
while (!DxLib::ProcessMessage())
{
DxLib::ClearDrawScreen();
DxLib::DrawFormatStringToHandle(0, 0, DxLib::GetColor(255, 255, 255), FontHandle, GB2312Text);
DxLib::ScreenFlip();
}
DxLib::DxLib_End();
return 0;
}
I'll post how to modify DxLib source code soon.