Home › Forums › Software Development › Using Stream Engine for DirectX c++ app
Tagged: stream engine c++ directx
- This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by Grant [Tobii].
- AuthorPosts
- 13/05/2021 at 04:02 #20370Jamie SteeleParticipant
Hey guys, I created the console app starter project that is posted in the stream engine “getting started” section, and it works fine in a console app, but I am trying to make a C++ directX app and the syntax no longer works for these two callback functions
tobii_enumerate_local_device_urls(api, url_receiver, url);
tobii_gaze_point_subscribe(device, gaze_point_callback, 0);if anyone knows a solution for this please let me know as I am really struggling to wrap my head around this
Thanks in advance13/05/2021 at 05:01 #20371Jamie SteeleParticipantOk so I have fixed the problem with function pointers by making the class functions static, all I need now is to be able to access the gaze point outside of these functions, which is difficult to do when they are static. Any tips?
13/05/2021 at 06:39 #20372Jamie SteeleParticipantOk, I have actually managed to fix these issues, it turns out I was not initialising the static variables correctly. Now I can access the gaze point anywhere in the program
13/05/2021 at 14:04 #20378Grant [Tobii]KeymasterHi @redstripekhan, thanks for letting us know you managed to resolve the issue. Do let us know if you think we can provide any further assistance. Best Wishes.
- AuthorPosts
- You must be logged in to reply to this topic.