struct ImVec4
{
float x, y, z, w;
constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { }
constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { }
};
#define EXPORT extern "C" __declspec (dllexport)
//这里声明函数
EXPORT void test(const ImVec4 pos);
//函数 把接收到的数据打印出来看看
void test(const ImVec4 pos) {
TCHAR szBuffer[1024];
LPCTSTR str = TEXT("X: %d, Y: %d, Z: %d, W: %d");
wsprintf(szBuffer, str, pos.x, pos.y, pos.z, pos.w);
::MessageBox(NULL, szBuffer, TEXT("demo"), MB_OK);
}
4.45 MB, 下载次数: 7
欢迎光临 精易论坛 (https://125.confly.eu.org/) | Powered by Discuz! X3.4 |