Skip to content

Instantly share code, notes, and snippets.

@kairess
Created November 20, 2017 04:32
Show Gist options
  • Save kairess/6fa8512784bd2525744e3699d854337a to your computer and use it in GitHub Desktop.
Save kairess/6fa8512784bd2525744e3699d854337a to your computer and use it in GitHub Desktop.
// 1. PiPeClientTest.dll 파일 추가
#pragma comment(lib,"VREX_WIN.lib")
// 2. 헤더 파일 추가
#include "VREX.h"
using namespace std;
// 3. Gaze Point를 받는 콜백함수 작성
void getGazePt(float x, float y) {
_tprintf(_T("getGazePt %f %f \n"),x,y);
}
int _tmain(int argc, TCHAR* argv[]) {
// 4 .Client 생성
VREX_Client *client = CreateClient();
// 5.register Callback
setCallback(client, getGazePt);
// 6. 아이트랙킹 앱 실행
start(client);
while (true) {
}
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment